[MPlayer-cvslog] r23216 - trunk/gui/bitmap.c

reimar subversion at mplayerhq.hu
Wed May 2 18:38:22 CEST 2007


Author: reimar
Date: Wed May  2 18:38:22 2007
New Revision: 23216

Log:
Simplify bgr2rgb


Modified:
   trunk/gui/bitmap.c

Modified: trunk/gui/bitmap.c
==============================================================================
--- trunk/gui/bitmap.c	(original)
+++ trunk/gui/bitmap.c	Wed May  2 18:38:22 2007
@@ -93,15 +93,10 @@ static int conv24to32( txSample * bf )
 
 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 )



More information about the MPlayer-cvslog mailing list