[vlc-commits] fourcc: add fallbacks for CVPX chromas
Thomas Guillem
git at videolan.org
Fri Jun 2 18:44:24 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 2 11:41:47 2017 +0200| [5149ccb617506e99e2b64f238d90f5a2337946b2] | committer: Thomas Guillem
fourcc: add fallbacks for CVPX chromas
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5149ccb617506e99e2b64f238d90f5a2337946b2
---
src/misc/fourcc.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 6083e9a7ae..21b9cf97b2 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -376,6 +376,17 @@ static const vlc_fourcc_t p_VDPAU_VIDEO_444_fallback[] = {
VLC_CODEC_VDPAU_VIDEO_444, 0
};
+/* Fallbacks for cvpx */
+static const vlc_fourcc_t p_CVPX_VIDEO_NV12_fallback[] = {
+ VLC_CODEC_CVPX_NV12, VLC_CODEC_I420, 0,
+};
+static const vlc_fourcc_t p_CVPX_VIDEO_UYVY_fallback[] = {
+ VLC_CODEC_CVPX_UYVY, VLC_CODEC_I420, 0,
+};
+static const vlc_fourcc_t p_CVPX_VIDEO_I420_fallback[] = {
+ VLC_CODEC_CVPX_I420, VLC_CODEC_I420, 0,
+};
+
static const vlc_fourcc_t p_I440_fallback[] = {
VLC_CODEC_I440,
VLC_CODEC_YUV_PLANAR_420,
@@ -458,8 +469,9 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
p_VDPAU_VIDEO_420_fallback,
p_VDPAU_VIDEO_422_fallback,
p_VDPAU_VIDEO_444_fallback,
-
-
+ p_CVPX_VIDEO_NV12_fallback,
+ p_CVPX_VIDEO_UYVY_fallback,
+ p_CVPX_VIDEO_I420_fallback,
NULL,
};
@@ -479,6 +491,9 @@ static const vlc_fourcc_t p_list_YUV[] = {
VLC_CODEC_VDPAU_VIDEO_420,
VLC_CODEC_VDPAU_VIDEO_422,
VLC_CODEC_VDPAU_VIDEO_444,
+ VLC_CODEC_CVPX_NV12,
+ VLC_CODEC_CVPX_UYVY,
+ VLC_CODEC_CVPX_I420,
0,
};
@@ -529,6 +544,7 @@ static const vlc_fourcc_t *pp_RGB_fallback[] = {
p_RGB16_fallback,
p_RGB15_fallback,
p_RGB8_fallback,
+
NULL,
};
More information about the vlc-commits
mailing list