# HG changeset patch # User reimar # Date 1305097191 0 # Node ID 9b1c1b141f04c2db00b5929cfb7aac1cd2f2ee5e # Parent 706871635af745d44d0b3233b6a43142f08d6a7b Request GL_LUMINANCE16 as internal format for > 8 bit YUV formats. Have yet to find a system that actually provides that though. diff -r 706871635af7 -r 9b1c1b141f04 libvo/gl_common.c --- a/libvo/gl_common.c Tue May 10 17:51:39 2011 +0000 +++ b/libvo/gl_common.c Wed May 11 06:59:51 2011 +0000 @@ -182,7 +182,7 @@ MAP(GL_R3_G3_B2), MAP(GL_RGB4), MAP(GL_RGB5), MAP(GL_RGB8), MAP(GL_RGB10), MAP(GL_RGB12), MAP(GL_RGB16), MAP(GL_RGBA2), MAP(GL_RGBA4), MAP(GL_RGB5_A1), MAP(GL_RGBA8), MAP(GL_RGB10_A2), - MAP(GL_RGBA12), MAP(GL_RGBA16), MAP(GL_LUMINANCE8), + MAP(GL_RGBA12), MAP(GL_RGBA16), MAP(GL_LUMINANCE8), MAP(GL_LUMINANCE16), // format MAP(GL_RGB), MAP(GL_RGBA), MAP(GL_RED), MAP(GL_GREEN), MAP(GL_BLUE), @@ -281,7 +281,7 @@ break; case IMGFMT_420P16: supported = 0; // no native YUV support - *gl_texfmt = 1; + *gl_texfmt = GL_LUMINANCE16; *bpp = 16; *gl_format = GL_LUMINANCE; *gl_type = GL_UNSIGNED_SHORT; diff -r 706871635af7 -r 9b1c1b141f04 libvo/gl_common.h --- a/libvo/gl_common.h Tue May 10 17:51:39 2011 +0000 +++ b/libvo/gl_common.h Wed May 11 06:59:51 2011 +0000 @@ -264,6 +264,9 @@ #ifndef GL_FLOAT_RGB32_NV #define GL_FLOAT_RGB32_NV 0x8889 #endif +#ifndef GL_LUMINANCE16 +#define GL_LUMINANCE16 0x8042 +#endif #ifndef GL_UNPACK_CLIENT_STORAGE_APPLE #define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 #endif