[vlc-devel] [PATCH] direct3d11: map the DXVA2 opaque to the right amount of bits per channel

Steve Lhomme robux4 at videolabs.io
Mon Aug 1 10:24:08 CEST 2016


---
 modules/video_output/win32/direct3d11.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index c8a05fa..9e47df1 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1008,6 +1008,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
     switch(fmt->i_chroma)
     {
     case VLC_CODEC_D3D11_OPAQUE_10B:
+    case VLC_CODEC_D3D9_OPAQUE_10B:
         scd.Format = DXGI_FORMAT_R10G10B10A2_UNORM;
         break;
     default:
@@ -1173,9 +1174,11 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
         switch (i_src_chroma)
         {
         case VLC_CODEC_D3D11_OPAQUE:
+        case VLC_CODEC_D3D9_OPAQUE:
             bits_per_channel = 8;
             break;
         case VLC_CODEC_D3D11_OPAQUE_10B:
+        case VLC_CODEC_D3D9_OPAQUE_10B:
             bits_per_channel = 10;
             break;
         default:
-- 
2.8.2



More information about the vlc-devel mailing list