Mercurial > mplayer.hg
changeset 23198:1009d14500d1
Simplify bgr2rgb
author | reimar |
---|---|
date | Wed, 02 May 2007 16:38:22 +0000 |
parents | 0e32cc1dda92 |
children | e1d0d26f5e3c |
files | gui/bitmap.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/bitmap.c Wed May 02 16:26:58 2007 +0000 +++ b/gui/bitmap.c Wed May 02 16:38:22 2007 +0000 @@ -93,15 +93,10 @@ static void bgr2rgb( txSample * bf ) { - unsigned char c; int i; for ( i=0;i < (int)bf->ImageSize;i+=4 ) - { - c=bf->Image[i]; - bf->Image[i]=bf->Image[i+2]; - bf->Image[i+2]=c; - } + FFSWAP(uint8_t, bf->Image[i], bf->Image[i+2]); } static void Normalize( txSample * bf )