[vlc-commits] d3d11va: try to decode to P010 with 10 bits decoders

Steve Lhomme git at videolan.org
Mon Feb 19 18:10:57 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 19 15:24:41 2018 +0100| [083278b3f984c0c3df8089f4cbbea7b1c0881acf] | committer: Steve Lhomme

d3d11va: try to decode to P010 with 10 bits decoders

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=083278b3f984c0c3df8089f4cbbea7b1c0881acf
---

 modules/codec/avcodec/d3d11va.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 0ffb06ad9c..bf6dcf5b0c 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -530,6 +530,7 @@ static int DxGetInputList(vlc_va_t *va, input_list_t *p_list)
 }
 
 extern const GUID DXVA_ModeHEVC_VLD_Main10;
+extern const GUID DXVA_ModeVP9_VLD_10bit_Profile2;
 static bool CanUseIntelHEVC(vlc_va_t *va)
 {
     vlc_va_sys_t *sys = va->sys;
@@ -569,6 +570,8 @@ static int DxSetupOutput(vlc_va_t *va, const GUID *input, const video_format_t *
     int idx = 0;
     if ( sys->render != DXGI_FORMAT_UNKNOWN )
         processorInput[idx++] = sys->render;
+    if (IsEqualGUID(input, &DXVA_ModeHEVC_VLD_Main10) || IsEqualGUID(input, &DXVA_ModeVP9_VLD_10bit_Profile2))
+        processorInput[idx++] = DXGI_FORMAT_P010;
     processorInput[idx++] = DXGI_FORMAT_NV12;
     processorInput[idx++] = DXGI_FORMAT_420_OPAQUE;
     processorInput[idx++] = DXGI_FORMAT_UNKNOWN;



More information about the vlc-commits mailing list