[vlc-commits] core: add packed YUVA

Steve Lhomme git at videolan.org
Tue Feb 20 14:01:49 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Dec  4 11:37:53 2017 +0100| [8d62b7f0b128a16b6d9d539dd89ea82f08d15cd2] | committer: Steve Lhomme

core: add packed YUVA

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

 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 1639a78330..bd38e0a25f 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 73cda84045..a43c68aa4d 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -732,6 +732,7 @@ static const struct
     { { VLC_CODEC_RGBA, VLC_CODEC_ARGB,
         VLC_CODEC_BGRA, VLC_CODEC_RGBA10 },    PACKED_FMT(4, 32) },
     { { VLC_CODEC_RGBA64, 0 },                 PACKED_FMT(8, 64) },
+    { { 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 ed28b1f30b..0848481667 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -839,6 +839,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