[Mplayer-cvslog] CVS: main/postproc rgb2rgb_template.c,1.56,1.57
Michael Niedermayer
michael at mplayerhq.hu
Thu Oct 24 01:53:00 CEST 2002
Update of /cvsroot/mplayer/main/postproc
In directory mail:/var/tmp.root/cvs-serv8987
Modified Files:
rgb2rgb_template.c
Log Message:
fixing RGB32->RGB16 on big endian patch by (Colin Leroy <colin at colino dot net>)
Index: rgb2rgb_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb_template.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- rgb2rgb_template.c 16 Sep 2002 19:39:57 -0000 1.56
+++ rgb2rgb_template.c 23 Oct 2002 23:52:57 -0000 1.57
@@ -364,11 +364,20 @@
#endif
while(s < end)
{
+#ifndef WORDS_BIGENDIAN
const int b= *s++;
const int g= *s++;
const int r= *s++;
+#else
+ const int a= *s++; /*skip*/
+ const int r= *s++;
+ const int g= *s++;
+ const int b= *s++;
+#endif
*d++ = (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8);
+#ifndef WORDS_BIGENDIAN
s++;
+#endif
}
}
More information about the MPlayer-cvslog
mailing list