[vlc-commits] d3d11_quad: fix support for rendering for some basic DXGI_FORMAT types
Steve Lhomme
git at videolan.org
Tue Aug 7 13:43:54 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 7 13:14:35 2018 +0200| [88a4aef9b59e48f4918303ab2f1f31f5bbdf716d] | committer: Steve Lhomme
d3d11_quad: fix support for rendering for some basic DXGI_FORMAT types
If they are mentioned in dxgi_fmt they also have to be here (except for
DXGI_FORMAT_420_OPAQUE).
Ref #20681
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88a4aef9b59e48f4918303ab2f1f31f5bbdf716d
---
modules/video_output/win32/d3d11_quad.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_output/win32/d3d11_quad.c b/modules/video_output/win32/d3d11_quad.c
index 871dc5c644..24ea952861 100644
--- a/modules/video_output/win32/d3d11_quad.c
+++ b/modules/video_output/win32/d3d11_quad.c
@@ -866,6 +866,8 @@ void D3D11_UpdateViewport(d3d_quad_t *quad, const RECT *rect, const d3d_format_t
case DXGI_FORMAT_B5G6R5_UNORM:
case DXGI_FORMAT_R10G10B10A2_UNORM:
case DXGI_FORMAT_R16G16B16A16_UNORM:
+ case DXGI_FORMAT_YUY2:
+ case DXGI_FORMAT_AYUV:
if ( display->formatTexture == DXGI_FORMAT_NV12 ||
display->formatTexture == DXGI_FORMAT_P010 )
{
More information about the vlc-commits
mailing list