[vlc-commits] fourcc: add Y410 chroma

Steve Lhomme git at videolan.org
Wed Oct 16 09:13:08 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 14 14:56:35 2019 +0200| [bf7031830f7cf3a9bbd6325d6b4deae799e6032b] | committer: Steve Lhomme

fourcc: add Y410 chroma

32 bits packed 4:4:4 with 2 bits for the alpha

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

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

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index ef5e31545a..cc298b4b83 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -316,6 +316,8 @@
 #define VLC_CODEC_Y210            VLC_FOURCC('Y','2','1','0')
 /* Packed YUV 4:4:4 V:U:Y:A */
 #define VLC_CODEC_VUYA            VLC_FOURCC('V','U','Y','A')
+/* 10-bit Packed YUV 4:4:4 V10:U10:Y10:A2 */
+#define VLC_CODEC_Y410            VLC_FOURCC('Y','4','1','0')
 
 
 /* RGB */
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 8f7a130f54..8c5fad84b8 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -800,7 +800,8 @@ 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, VLC_CODEC_Y210, 0 },   PACKED_FMT(4, 32) },
+    { { VLC_CODEC_VUYA, VLC_CODEC_Y210,
+        VLC_CODEC_Y410, 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 a8a97ce2b7..5b857755f8 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -867,6 +867,8 @@ static const staticentry_t p_list_video[] = {
         A("Y210"),
     B(VLC_CODEC_VUYA, "Packed YUV 4:4:4, V:U:Y:A"),
         A("VUYA"),
+    B(VLC_CODEC_Y410, "Packed 10-bit YUV 4:4:4"),
+        A("Y410"),
 
     B(VLC_CODEC_NV12, "Biplanar 4:2:0 Y/UV"),
         A("NV12"),



More information about the vlc-commits mailing list