Mercurial > mplayer.hg
changeset 29902:85aaba93adf1
Support RGB48NE format in OpenGL vos (only really useful once they are modified
to actually use GLX/WGL visuals with more than 8 bits per component if available).
author | reimar |
---|---|
date | Sat, 21 Nov 2009 18:59:52 +0000 |
parents | 801650929968 |
children | 391e683541a7 |
files | libvo/gl_common.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.c Sat Nov 21 18:58:03 2009 +0000 +++ b/libvo/gl_common.c Sat Nov 21 18:59:52 2009 +0000 @@ -196,6 +196,10 @@ *bpp = IMGFMT_IS_BGR(fmt)?IMGFMT_BGR_DEPTH(fmt):IMGFMT_RGB_DEPTH(fmt); *gl_texfmt = 3; switch (fmt) { + case IMGFMT_RGB48NE: + *gl_format = GL_RGB; + *gl_type = GL_UNSIGNED_SHORT; + break; case IMGFMT_RGB24: *gl_format = GL_RGB; *gl_type = GL_UNSIGNED_BYTE;