[Mplayer-cvslog] CVS: main/postproc swscale.c,1.81,1.82
Michael Niedermayer
michael at mplayer.dev.hu
Thu Feb 21 17:57:37 CET 2002
Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv27514/postproc
Modified Files:
swscale.c
Log Message:
unscaled yuv2rgb fix for big-endian systems
Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- swscale.c 10 Feb 2002 23:57:47 -0000 1.81
+++ swscale.c 21 Feb 2002 16:57:34 -0000 1.82
@@ -35,11 +35,12 @@
YV12/I420 -> BGR16
YV12 -> YV12
BGR15 -> BGR16
+ BGR16 -> BGR16
untested special converters
- YV12/I420/IYUV -> BGR15/BGR24/BGR32 (its the yuv2rgb stuff, so it should be ok)
- YV12/I420/IYUV -> YV12/I420/IYUV
- YUY2/BGR15/BGR16/BGR24/BGR32/RGB24/RGB32 -> same format
+ YV12/I420 -> BGR15/BGR24/BGR32 (its the yuv2rgb stuff, so it should be ok)
+ YV12/I420 -> YV12/I420
+ YUY2/BGR15/BGR24/BGR32/RGB24/RGB32 -> same format
BGR24 -> BGR32 & RGB24 -> RGB32
BGR32 -> BGR24 & RGB32 -> RGB24
BGR24 -> YV12
@@ -1408,7 +1409,11 @@
if(isPlanarYUV(srcFormat) && isBGR(dstFormat))
{
// FIXME multiple yuv2rgb converters wont work that way cuz that thing is full of globals&statics
+#ifdef WORDS_BIGENDIAN
+ yuv2rgb_init( dstFormat&0xFF /* =bpp */, MODE_BGR);
+#else
yuv2rgb_init( dstFormat&0xFF /* =bpp */, MODE_RGB);
+#endif
c->swScale= planarYuvToBgr;
if(flags&SWS_PRINT_INFO)
More information about the MPlayer-cvslog
mailing list