[vlc-commits] fourcc: add VLC_CODEC_CVPX_P010

Thomas Guillem git at videolan.org
Fri Feb 9 18:44:01 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  9 15:21:32 2018 +0100| [7a79d8be457e6dbe8137c473bf634bb24f671df6] | committer: Thomas Guillem

fourcc: add VLC_CODEC_CVPX_P010

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

 include/vlc_fourcc.h | 1 +
 src/misc/fourcc.c    | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 0a4f82046c..e8a317d706 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -373,6 +373,7 @@
 #define VLC_CODEC_CVPX_UYVY       VLC_FOURCC('C','V','P','Y')
 #define VLC_CODEC_CVPX_I420       VLC_FOURCC('C','V','P','I')
 #define VLC_CODEC_CVPX_BGRA       VLC_FOURCC('C','V','P','B')
+#define VLC_CODEC_CVPX_P010       VLC_FOURCC('C','V','P','P')
 
 /* Image codec (video) */
 #define VLC_CODEC_PNG             VLC_FOURCC('p','n','g',' ')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 2afa58c943..1b18ea29d0 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -385,6 +385,9 @@ static const vlc_fourcc_t p_CVPX_VIDEO_I420_fallback[] = {
 static const vlc_fourcc_t p_CVPX_VIDEO_BGRA_fallback[] = {
     VLC_CODEC_CVPX_BGRA, VLC_CODEC_BGRA, 0,
 };
+static const vlc_fourcc_t p_CVPX_VIDEO_P010_fallback[] = {
+    VLC_CODEC_CVPX_P010, VLC_CODEC_P010, VLC_CODEC_I420_10B, 0
+};
 
 static const vlc_fourcc_t p_VAAPI_420_fallback[] = {
     VLC_CODEC_VAAPI_420, VLC_CODEC_I420, 0,
@@ -489,6 +492,7 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
     p_CVPX_VIDEO_NV12_fallback,
     p_CVPX_VIDEO_UYVY_fallback,
     p_CVPX_VIDEO_I420_fallback,
+    p_CVPX_VIDEO_P010_fallback,
     p_VAAPI_420_fallback,
     p_VAAPI_420_10BPP_fallback,
     p_D3D9_OPAQUE_fallback,
@@ -740,6 +744,8 @@ static const struct
         VLC_CODEC_CVPX_I420, VLC_CODEC_CVPX_BGRA },
                                                FAKE_FMT() },
 
+    { { VLC_CODEC_CVPX_P010, 0 },              FAKE_FMT() },
+
     { { VLC_CODEC_VAAPI_420, VLC_CODEC_VAAPI_420_10BPP },
                                                FAKE_FMT() },
 



More information about the vlc-commits mailing list