[MPlayer-cvslog] r34658 - trunk/libvo/vo_x11.c

cehoyos subversion at mplayerhq.hu
Tue Feb 7 22:56:46 CET 2012


Author: cehoyos
Date: Tue Feb  7 22:56:45 2012
New Revision: 34658

Log:
X11 non-native RGB/BGR "emulation" only works for 32bit.

Modified:
   trunk/libvo/vo_x11.c

Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c	Tue Feb  7 15:52:23 2012	(r34657)
+++ trunk/libvo/vo_x11.c	Tue Feb  7 22:56:45 2012	(r34658)
@@ -425,9 +425,8 @@ static int config(uint32_t width, uint32
             draw_alpha_fnc = draw_alpha_null;
     }
     out_offset = 0;
-    // for these formats conversion is currently not support and
-    // we can easily "emulate" them.
-    if (out_format & 64 && (IMGFMT_IS_RGB(out_format) || IMGFMT_IS_BGR(out_format))) {
+    // We can easily "emulate" non-native RGB32 and BGR32
+    if (out_format == (IMGFMT_BGR32 | 64) || out_format == (IMGFMT_RGB32 | 64)) {
       out_format &= ~64;
 #if HAVE_BIGENDIAN
       out_offset = 1;


More information about the MPlayer-cvslog mailing list