Mercurial > mplayer.hg
changeset 36109:4b69c31e8e77
Support determining texture format for XYZ format.
author | reimar |
---|---|
date | Wed, 01 May 2013 18:52:40 +0000 |
parents | 8d23fb99091b |
children | c6215f816368 |
files | libvo/gl_common.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.c Wed May 01 18:52:39 2013 +0000 +++ b/libvo/gl_common.c Wed May 01 18:52:40 2013 +0000 @@ -274,6 +274,15 @@ } *bpp = IMGFMT_IS_BGR(fmt)?IMGFMT_BGR_DEPTH(fmt):IMGFMT_RGB_DEPTH(fmt); + if (IMGFMT_IS_XYZ(fmt)) { + supported = 0; // no native XYZ support + *bpp = 24; + fmt = IMGFMT_RGB24; + if (IMGFMT_XYZ_DEPTH(fmt) > 8) { + *bpp = 48; + fmt = IMGFMT_RGB48NE; + } + } *gl_texfmt = GL_RGB; switch (fmt) { case IMGFMT_RGB64NE: