[MPlayer-cvslog] r28040 - trunk/libvo/vo_direct3d.c

reimar subversion at mplayerhq.hu
Wed Nov 26 17:27:40 CET 2008


Author: reimar
Date: Wed Nov 26 17:27:39 2008
New Revision: 28040

Log:
Add support for RGB formats to vo_direct3d

Modified:
   trunk/libvo/vo_direct3d.c

Modified: trunk/libvo/vo_direct3d.c
==============================================================================
--- trunk/libvo/vo_direct3d.c	(original)
+++ trunk/libvo/vo_direct3d.c	Wed Nov 26 17:27:39 2008
@@ -90,6 +90,12 @@ static const struct_fmt_table fmt_table[
     {IMGFMT_YVU9, MAKEFOURCC('Y','V','U','9')},
     {IMGFMT_YUY2, MAKEFOURCC('Y','U','Y','2')},
     {IMGFMT_UYVY, MAKEFOURCC('U','Y','V','Y')},
+    {IMGFMT_BGR32, D3DFMT_X8R8G8B8},
+    {IMGFMT_RGB32, D3DFMT_X8B8G8R8},
+    {IMGFMT_BGR24, D3DFMT_R8G8B8}, //untested
+    {IMGFMT_BGR16, D3DFMT_R5G6B5},
+    {IMGFMT_BGR15, D3DFMT_X1R5G5B5},
+    {IMGFMT_BGR8 , D3DFMT_R3G3B2}, //untested
 };
 
 #define DISPLAY_FORMAT_TABLE_ENTRIES \



More information about the MPlayer-cvslog mailing list