[vlc-commits] direct3d9: add support for YUY2 (4:2:2 8 bit) rendering

Steve Lhomme git at videolan.org
Fri Mar 13 10:28:51 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 11 11:53:47 2020 +0100| [9b7df42f0d9071b747ff3e936847c648bcf85c4d] | committer: Steve Lhomme

direct3d9: add support for YUY2 (4:2:2 8 bit) rendering

Via DXVA-HD conversion to RGB or possibly StretchRect if it supports it.

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

 modules/video_output/win32/direct3d9.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index b6e01edd70..553d4be8c3 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1351,6 +1351,7 @@ static const d3d9_format_t d3d_formats[] = {
     { "YV12",       MAKEFOURCC('Y','V','1','2'),    VLC_CODEC_J420,  0,0,0 },
     { "NV12",       MAKEFOURCC('N','V','1','2'),    VLC_CODEC_NV12,  0,0,0 },
     { "DXA9",       MAKEFOURCC('N','V','1','2'),    VLC_CODEC_D3D9_OPAQUE,  0,0,0 },
+    { "DXA9_422",   MAKEFOURCC('Y','U','Y','2'),    VLC_CODEC_D3D9_OPAQUE,  0,0,0 },
     { "DXA9_10",    MAKEFOURCC('P','0','1','0'),    VLC_CODEC_D3D9_OPAQUE_10B, 0,0,0 },
     { "UYVY",       D3DFMT_UYVY,    VLC_CODEC_UYVY,  0,0,0 },
     { "YUY2",       D3DFMT_YUY2,    VLC_CODEC_YUYV,  0,0,0 },



More information about the vlc-commits mailing list