summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-20 10:57:39 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-20 10:57:39 +0000
commit6a197759bd87a47d98679a047f8a652150f183db (patch)
tree6c35be241157d3e0494722305d0e929724752f94 /libvo
parentc0dbf2e39f1f1a0c60f4271cab104dffacfc3199 (diff)
downloadmpv-6a197759bd87a47d98679a047f8a652150f183db.tar.bz2
mpv-6a197759bd87a47d98679a047f8a652150f183db.tar.xz
4 and 8 bit formats use a palette, so we cannot really support them (atm).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13994 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 2c07b1b7ed..458ca4189d 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -126,10 +126,14 @@ static int find_gl_format (uint32_t format)
gl_type = GL_UNSIGNED_BYTE;
break;
#ifdef GL_VERSION_1_2
+#if 0
+ // we do not support palettized formats, although the format the
+ // swscale produces works
case IMGFMT_RGB8:
gl_format = GL_RGB;
gl_type = GL_UNSIGNED_BYTE_2_3_3_REV;
break;
+#endif
case IMGFMT_RGB15:
gl_format = GL_RGBA;
gl_type = GL_UNSIGNED_SHORT_1_5_5_5_REV;
@@ -138,6 +142,7 @@ static int find_gl_format (uint32_t format)
gl_format = GL_RGB;
gl_type = GL_UNSIGNED_SHORT_5_6_5_REV;
break;
+#if 0
case IMGFMT_BGR8:
// special case as red and blue have a differen number of bits.
// GL_BGR and GL_UNSIGNED_BYTE_3_3_2 isn't supported at least
@@ -146,6 +151,7 @@ static int find_gl_format (uint32_t format)
gl_format = GL_RGB;
gl_type = GL_UNSIGNED_BYTE_3_3_2;
break;
+#endif
case IMGFMT_BGR15:
gl_format = GL_BGRA;
gl_type = GL_UNSIGNED_SHORT_1_5_5_5_REV;