[vlc-commits] fourcc: add d3d* fallbacks
Thomas Guillem
git at videolan.org
Mon Nov 13 13:12:10 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov 9 16:09:24 2017 +0100| [4b365462d11abd069bbed9c981833a93ba1e2ba8] | committer: Thomas Guillem
fourcc: add d3d* fallbacks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b365462d11abd069bbed9c981833a93ba1e2ba8
---
src/misc/fourcc.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 76bc49194c..53e59d866a 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -394,6 +394,18 @@ static const vlc_fourcc_t p_VAAPI_420_10BPP_fallback[] = {
VLC_CODEC_VAAPI_420_10BPP, VLC_CODEC_P010, VLC_CODEC_I420, 0,
};
+static const vlc_fourcc_t p_D3D9_OPAQUE_fallback[] = {
+ VLC_CODEC_D3D9_OPAQUE, VLC_CODEC_I420, 0,
+};
+
+static const vlc_fourcc_t p_D3D11_OPAQUE_fallback[] = {
+ VLC_CODEC_D3D11_OPAQUE, VLC_CODEC_NV12, 0,
+};
+
+static const vlc_fourcc_t p_D3D11_OPAQUE_10B_fallback[] = {
+ VLC_CODEC_D3D11_OPAQUE_10B, VLC_CODEC_P010, 0,
+};
+
static const vlc_fourcc_t p_I440_fallback[] = {
VLC_CODEC_I440,
VLC_CODEC_YUV_PLANAR_420,
@@ -479,6 +491,9 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
p_CVPX_VIDEO_I420_fallback,
p_VAAPI_420_fallback,
p_VAAPI_420_10BPP_fallback,
+ p_D3D9_OPAQUE_fallback,
+ p_D3D11_OPAQUE_fallback,
+ p_D3D11_OPAQUE_10B_fallback,
NULL,
};
@@ -504,6 +519,10 @@ static const vlc_fourcc_t p_list_YUV[] = {
VLC_CODEC_CVPX_I420,
VLC_CODEC_VAAPI_420,
VLC_CODEC_VAAPI_420_10BPP,
+ VLC_CODEC_D3D9_OPAQUE,
+ VLC_CODEC_D3D9_OPAQUE_10B,
+ VLC_CODEC_D3D11_OPAQUE,
+ VLC_CODEC_D3D11_OPAQUE_10B,
0,
};
More information about the vlc-commits
mailing list