changeset 13993:9e331a5299b2

4 and 8 bit formats use a palette, so we cannot really support them (atm).
author reimar
date Sat, 20 Nov 2004 10:57:39 +0000
parents 702acff80c44
children a3a16a50b314
files libvo/vo_gl.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sat Nov 20 10:53:04 2004 +0000
+++ b/libvo/vo_gl.c	Sat Nov 20 10:57:39 2004 +0000
@@ -126,10 +126,14 @@
       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 @@
       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 @@
       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;