[MPlayer-cvslog] r36203 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Wed May 1 20:52:40 CEST 2013


Author: reimar
Date: Wed May  1 20:52:40 2013
New Revision: 36203

Log:
Support determining texture format for XYZ format.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Wed May  1 20:52:39 2013	(r36202)
+++ trunk/libvo/gl_common.c	Wed May  1 20:52:40 2013	(r36203)
@@ -274,6 +274,15 @@ int glFindFormat(uint32_t fmt, int *bpp,
   }
 
   *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:


More information about the MPlayer-cvslog mailing list