[vlc-devel] [PATCH 3/5] fourcc: add VLC_CODEC_D3D11_OPAQUE_10B to decode 10-bit 4:2:0

Steve Lhomme robux4 at videolabs.io
Wed Jul 27 17:46:24 CEST 2016


---
 include/vlc_fourcc.h | 3 ++-
 src/misc/fourcc.c    | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 71cf71f..d6fd34a 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -349,7 +349,8 @@
 #define VLC_CODEC_D3D9_OPAQUE     VLC_FOURCC('D','X','A','9')
 
 /* D3D11VA opaque video surface for use with D3D11 */
-#define VLC_CODEC_D3D11_OPAQUE    VLC_FOURCC('D','X','1','1')
+#define VLC_CODEC_D3D11_OPAQUE          VLC_FOURCC('D','X','1','1') /* 4:2:0  8 bpc */
+#define VLC_CODEC_D3D11_OPAQUE_10B      VLC_FOURCC('D','X','1','0') /* 4:2:0 10 bpc */
 
 /* CVPixelBuffer opaque buffer type */
 #define VLC_CODEC_CVPX_OPAQUE     VLC_FOURCC('C','V','P','X')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 251ff87..45ac301 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -664,6 +664,8 @@ static const struct
     { { VLC_CODEC_ANDROID_OPAQUE, VLC_CODEC_MMAL_OPAQUE,
         VLC_CODEC_D3D9_OPAQUE,    VLC_CODEC_D3D11_OPAQUE },
                                                FAKE_FMT() },
+    { { VLC_CODEC_D3D11_OPAQUE_10B },
+                                               FAKE_FMT() },
     { { VLC_CODEC_CVPX_OPAQUE },               FAKE_FMT() },
 
     { { 0 },                                   FAKE_FMT() }
-- 
2.8.2



More information about the vlc-devel mailing list