[vlc-commits] direct3d11: use the most appropriate format to render nvdec input
Steve Lhomme
git at videolan.org
Tue Oct 15 14:58:28 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 15 14:43:29 2019 +0200| [220467e1a7ed276b92adb05fcedbbb9e9c470d85] | committer: Steve Lhomme
direct3d11: use the most appropriate format to render nvdec input
The pixel description will not give any information about the chroma.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=220467e1a7ed276b92adb05fcedbbb9e9c470d85
---
modules/video_output/win32/direct3d11.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index e7d9b1ceab..94c6d7fbfd 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -960,6 +960,7 @@ static int SetupOutputFormat(vout_display_t *vd, video_format_t *fmt)
switch (fmt->i_chroma)
{
case VLC_CODEC_D3D11_OPAQUE:
+ case VLC_CODEC_NVDEC_OPAQUE:
bits_per_channel = 8;
widthDenominator = heightDenominator = 2;
break;
@@ -969,9 +970,14 @@ static int SetupOutputFormat(vout_display_t *vd, video_format_t *fmt)
widthDenominator = heightDenominator = 1;
break;
case VLC_CODEC_D3D11_OPAQUE_10B:
+ case VLC_CODEC_NVDEC_OPAQUE_10B:
bits_per_channel = 10;
widthDenominator = heightDenominator = 2;
break;
+ case VLC_CODEC_NVDEC_OPAQUE_16B:
+ bits_per_channel = 16;
+ widthDenominator = heightDenominator = 2;
+ break;
default:
{
const vlc_chroma_description_t *p_format = vlc_fourcc_GetChromaDescription(fmt->i_chroma);
More information about the vlc-commits
mailing list