[vlc-commits] direct3d11: use the most appropriate format to render nvdec 4:4:4 8bit

Steve Lhomme git at videolan.org
Fri Dec 13 17:28:14 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Dec 13 15:50:42 2019 +0100| [3d659e1a49cd1e5ff5dd61c222d921d6381048d0] | committer: Steve Lhomme

direct3d11: use the most appropriate format to render nvdec 4:4:4 8bit

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

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

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index d42c477c15..743b8f7613 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -873,6 +873,10 @@ static int SetupOutputFormat(vout_display_t *vd, video_format_t *fmt)
             bits_per_channel = 16;
             widthDenominator = heightDenominator = 2;
             break;
+        case VLC_CODEC_NVDEC_OPAQUE_444:
+            bits_per_channel = 8;
+            widthDenominator = heightDenominator = 1;
+            break;
         default:
             {
                 const vlc_chroma_description_t *p_format = vlc_fourcc_GetChromaDescription(fmt->i_chroma);



More information about the vlc-commits mailing list