# HG changeset patch # User reimar # Date 1100948259 0 # Node ID 9e331a5299b2f1f46dd6a16cecf9c038a2fb1c9f # Parent 702acff80c446ab49b525cfdcec4e7ac8c287585 4 and 8 bit formats use a palette, so we cannot really support them (atm). diff -r 702acff80c44 -r 9e331a5299b2 libvo/vo_gl.c --- 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;