changeset 28006:c06e8f1eec97

Add support for RGB formats to vo_direct3d
author reimar
date Wed, 26 Nov 2008 16:27:39 +0000
parents 2c2ae7d535d7
children 16b39ef63bb5
files libvo/vo_direct3d.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_direct3d.c	Wed Nov 26 13:04:10 2008 +0000
+++ b/libvo/vo_direct3d.c	Wed Nov 26 16:27:39 2008 +0000
@@ -90,6 +90,12 @@
     {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 \