[Mplayer-cvslog] CVS: main/libmpcodecs vf_palette.c,1.10,1.11
Joey Parrish CVS
joey at mplayerhq.hu
Sun Nov 23 18:11:11 CET 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv4108
Modified Files:
vf_palette.c
Log Message:
fix for vf_palette, because paletted 8-bit to BGR{15,16} conversion is incorrect.
the conversion should be rewritten as a better fix.
Index: vf_palette.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_palette.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vf_palette.c 15 Mar 2003 18:01:02 -0000 1.10
+++ vf_palette.c 23 Nov 2003 17:09:59 -0000 1.11
@@ -14,18 +14,22 @@
//===========================================================================//
+// commented out 16 and 15 bit output support, because the conversion
+// routines are incorrrect. they assume the palette to be of the same
+// depth as the output, which is incorrect. --Joey
+
static unsigned int bgr_list[]={
IMGFMT_BGR32,
IMGFMT_BGR24,
- IMGFMT_BGR16,
- IMGFMT_BGR15,
+// IMGFMT_BGR16,
+// IMGFMT_BGR15,
0
};
static unsigned int rgb_list[]={
IMGFMT_RGB32,
IMGFMT_RGB24,
- IMGFMT_RGB16,
- IMGFMT_RGB15,
+// IMGFMT_RGB16,
+// IMGFMT_RGB15,
0
};
More information about the MPlayer-cvslog
mailing list