[vlc-commits] fourcc: add more CVPX fourcc
Thomas Guillem
git at videolan.org
Thu Feb 2 09:52:50 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 27 14:34:51 2017 +0100| [0aa2985fa23ee56105e7de62627bc0df13ac6e11] | committer: Thomas Guillem
fourcc: add more CVPX fourcc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0aa2985fa23ee56105e7de62627bc0df13ac6e11
---
include/vlc_fourcc.h | 3 +++
src/misc/fourcc.c | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index a0f07b2..810c579 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -363,6 +363,9 @@
/* CVPixelBuffer opaque buffer type */
#define VLC_CODEC_CVPX_NV12 VLC_FOURCC('C','V','P','N')
+#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')
/* 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 99f3894..b448beb 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -676,7 +676,10 @@ static const struct
FAKE_FMT() },
{ { VLC_CODEC_D3D11_OPAQUE_10B, VLC_CODEC_D3D9_OPAQUE_10B },
FAKE_FMT() },
- { { VLC_CODEC_CVPX_NV12 }, FAKE_FMT() },
+
+ { { VLC_CODEC_CVPX_NV12, VLC_CODEC_CVPX_UYVY,
+ VLC_CODEC_CVPX_I420, VLC_CODEC_CVPX_BGRA },
+ FAKE_FMT() },
{ { 0 }, FAKE_FMT() }
};
More information about the vlc-commits
mailing list