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

reimar subversion at mplayerhq.hu
Sat Nov 21 19:59:52 CET 2009


Author: reimar
Date: Sat Nov 21 19:59:52 2009
New Revision: 29944

Log:
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).

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat Nov 21 19:58:03 2009	(r29943)
+++ trunk/libvo/gl_common.c	Sat Nov 21 19:59:52 2009	(r29944)
@@ -196,6 +196,10 @@ int glFindFormat(uint32_t fmt, int *bpp,
   *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;


More information about the MPlayer-cvslog mailing list