[vlc-commits] core: add packed YUVA
Steve Lhomme
git at videolan.org
Wed Oct 17 12:02:23 CEST 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Dec 4 11:37:53 2017 +0100| [c6e65aeabb9d85109637ede100dd0dc223bed08d] | committer: Steve Lhomme
core: add packed YUVA
(cherry picked from commit 52bc3a57cca59c8bfef0c6d98d37154ea9714e18)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c6e65aeabb9d85109637ede100dd0dc223bed08d
---
include/vlc_fourcc.h | 2 ++
src/misc/fourcc.c | 1 +
src/misc/fourcc_list.h | 3 +++
3 files changed, 6 insertions(+)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 486fae1849..39b8a02107 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -304,6 +304,8 @@
#define VLC_CODEC_V210 VLC_FOURCC('v','2','1','0')
/* I420 packed for RTP (RFC 4175) */
#define VLC_CODEC_R420 VLC_FOURCC('r','4','2','0')
+/* Packed YUV 4:4:4 V:U:Y:A */
+#define VLC_CODEC_VUYA VLC_FOURCC('V','U','Y','A')
/* RGB */
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 0171c47c9f..bc2a22891f 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -740,6 +740,7 @@ static const struct
{ { VLC_CODEC_RGB32, 0 }, PACKED_FMT(4, 24) },
{ { VLC_CODEC_RGBA, VLC_CODEC_ARGB,
VLC_CODEC_BGRA, }, PACKED_FMT(4, 32) },
+ { { VLC_CODEC_VUYA, 0 }, PACKED_FMT(4, 32) },
{ { VLC_CODEC_Y211, 0 }, { 1, { {{1,4}, {1,1}} }, 4, 32 } },
{ { VLC_CODEC_XYZ12, 0 }, PACKED_FMT(6, 48) },
diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
index 0826c521dd..45c4eda7e6 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -836,6 +836,9 @@ static const staticentry_t p_list_video[] = {
B(VLC_CODEC_V210, "10-bit 4:2:2 Component YCbCr"),
A("v210"),
+ B(VLC_CODEC_VUYA, "Packed YUV 4:4:4, V:U:Y:A"),
+ A("VUYA"),
+
B(VLC_CODEC_NV12, "Biplanar 4:2:0 Y/UV"),
A("NV12"),
B(VLC_CODEC_NV21, "Biplanar 4:2:0 Y/VU"),
More information about the vlc-commits
mailing list