[MPlayer-cvslog] r23022 - trunk/libswscale/rgb2rgb_template.c
ivo
subversion at mplayerhq.hu
Wed Apr 18 18:40:58 CEST 2007
Author: ivo
Date: Wed Apr 18 18:40:58 2007
New Revision: 23022
Modified:
trunk/libswscale/rgb2rgb_template.c
Log:
preserve alpha channel when converting rgb32 to bgr32 in plain C
Modified: trunk/libswscale/rgb2rgb_template.c
==============================================================================
--- trunk/libswscale/rgb2rgb_template.c (original)
+++ trunk/libswscale/rgb2rgb_template.c Wed Apr 18 18:40:58 2007
@@ -1423,7 +1423,7 @@ static inline void RENAME(rgb32tobgr32)(
: "memory");
#endif
for (; idx<15; idx+=4) {
- register int v = *(uint32_t *)&s[idx], g = v & 0xff00;
+ register int v = *(uint32_t *)&s[idx], g = v & 0xff00ff00;
v &= 0xff00ff;
*(uint32_t *)&d[idx] = (v>>16) + g + (v<<16);
}
More information about the MPlayer-cvslog
mailing list