[vlc-devel] [PATCH 11/12] dxgi_fmt: add support for DXGI_FORMAT_420_OPAQUE decoding

Steve Lhomme robux4 at gmail.com
Fri Apr 28 17:46:25 CEST 2017


From: Steve Lhomme <robux4 at videolabs.io>

Via the normal picture flow, not some hacks in the decoder.
It will be decoded as any other format and then transformed into something
that can be rendered via the vout video processor.
---
 modules/video_chroma/dxgi_fmt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_chroma/dxgi_fmt.c b/modules/video_chroma/dxgi_fmt.c
index 9fbf702584..67a98779f7 100644
--- a/modules/video_chroma/dxgi_fmt.c
+++ b/modules/video_chroma/dxgi_fmt.c
@@ -86,6 +86,7 @@ static const d3d_format_t d3d_formats[] = {
     { "VA_BGRA",  DXGI_FORMAT_B8G8R8A8_UNORM, VLC_CODEC_D3D11_OPAQUE,  8, 1, 1, { DXGI_FORMAT_B8G8R8A8_UNORM } },
     { "R8G8B8X8", DXGI_FORMAT_B8G8R8X8_UNORM, VLC_CODEC_RGB32,         8, 1, 1, { DXGI_FORMAT_B8G8R8X8_UNORM } },
     { "B5G6R5",   DXGI_FORMAT_B5G6R5_UNORM,   VLC_CODEC_RGB16,         5, 1, 1, { DXGI_FORMAT_B5G6R5_UNORM } },
+    { "42OPAQUE", DXGI_FORMAT_420_OPAQUE,     VLC_CODEC_D3D11_OPAQUE,  8, 2, 2, { DXGI_FORMAT_UNKNOWN } },
 
     { NULL, 0, 0, 0, 0, 0, {} }
 };
-- 
2.12.1



More information about the vlc-devel mailing list