[vlc-devel] [PATCH 1/2] fourcc: add Y410 chroma

Steve Lhomme robux4 at ycbcr.xyz
Mon Oct 14 15:11:09 CEST 2019


32 bits packed 4:4:4 with 2 bits for the alpha
---
 include/vlc_fourcc.h   | 2 ++
 src/misc/fourcc.c      | 2 +-
 src/misc/fourcc_list.h | 2 ++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 5bdf4ead115..9047b704c0b 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -314,6 +314,8 @@
 #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')
+/* 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 c29fb5deebf..8d8b7bd6a74 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -800,7 +800,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_VUYA, 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 1dff2af3356..eac9e4dcb3c 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -865,6 +865,8 @@ static const staticentry_t p_list_video[] = {
 
     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, V10:U10:Y10:A2"),
+        A("Y410"),
 
     B(VLC_CODEC_NV12, "Biplanar 4:2:0 Y/UV"),
         A("NV12"),
-- 
2.17.1



More information about the vlc-devel mailing list