[vlc-commits] fourcc: add VLC_CODEC_P010 fallbacks

Thomas Guillem git at videolan.org
Tue Nov 7 12:19:26 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov  7 08:44:32 2017 +0100| [45e1492841390906ecadc66c19f9e7fb4e749253] | committer: Thomas Guillem

fourcc: add VLC_CODEC_P010 fallbacks

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

 src/misc/fourcc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index c1924b2c15..76bc49194c 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -218,6 +218,9 @@ const char *vlc_fourcc_GetDescription(int cat, vlc_fourcc_t fourcc)
 #define VLC_CODEC_YUV_PLANAR_420_16 \
     VLC_CODEC_I420_16L, VLC_CODEC_I420_16B, VLC_CODEC_I420_12L, VLC_CODEC_I420_12B, VLC_CODEC_I420_10L, VLC_CODEC_I420_10B, VLC_CODEC_I420_9L, VLC_CODEC_I420_9B
 
+#define VLC_CODEC_YUV_SEMIPLANAR_420_16 \
+    VLC_CODEC_P010
+
 #define VLC_CODEC_YUV_PLANAR_422 \
     VLC_CODEC_I422, VLC_CODEC_J422
 
@@ -289,6 +292,9 @@ static const vlc_fourcc_t p_I420_16L_fallback[] = {
 static const vlc_fourcc_t p_I420_16B_fallback[] = {
     VLC_CODEC_I420_16B, VLC_CODEC_I420_16L, VLC_CODEC_FALLBACK_420_16, 0
 };
+static const vlc_fourcc_t p_P010_fallback[] = {
+    VLC_CODEC_P010, VLC_CODEC_FALLBACK_420_16, 0
+};
 
 
 #define VLC_CODEC_FALLBACK_422 \
@@ -467,6 +473,7 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
     p_UYVY_fallback,
     p_VYUY_fallback,
     p_NV12_fallback,
+    p_P010_fallback,
     p_CVPX_VIDEO_NV12_fallback,
     p_CVPX_VIDEO_UYVY_fallback,
     p_CVPX_VIDEO_I420_fallback,
@@ -486,6 +493,7 @@ static const vlc_fourcc_t p_list_YUV[] = {
     VLC_CODEC_YUV_PACKED,
     VLC_CODEC_I411, VLC_CODEC_YUV_PLANAR_410, VLC_CODEC_Y211,
     VLC_CODEC_YUV_PLANAR_420_16,
+    VLC_CODEC_YUV_SEMIPLANAR_420_16,
     VLC_CODEC_YUV_PLANAR_422_16,
     VLC_CODEC_YUV_PLANAR_444_16,
     VLC_CODEC_VDPAU_VIDEO_420,



More information about the vlc-commits mailing list