summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_palette.c
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-23 17:09:59 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-23 17:09:59 +0000
commit6d4dcace072ba12866c719ab86d9ea304be0bdd9 (patch)
treef44c1e54b8e995b85825e69dfffbe675a8e2a732 /libmpcodecs/vf_palette.c
parent7afe24f691c90eff63fe08c299c3af21bf6be162 (diff)
downloadmpv-6d4dcace072ba12866c719ab86d9ea304be0bdd9.tar.bz2
mpv-6d4dcace072ba12866c719ab86d9ea304be0bdd9.tar.xz
fix for vf_palette, because paletted 8-bit to BGR{15,16} conversion is incorrect.
the conversion should be rewritten as a better fix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11513 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_palette.c')
-rw-r--r--libmpcodecs/vf_palette.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libmpcodecs/vf_palette.c b/libmpcodecs/vf_palette.c
index 51d69405dc..d0cb8fffb3 100644
--- a/libmpcodecs/vf_palette.c
+++ b/libmpcodecs/vf_palette.c
@@ -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
};