[vlc-devel] [PATCH 1/4] core: add RGBA 64 bits

Steve Lhomme robux4 at videolabs.io
Tue Oct 31 13:51:39 CET 2017


16 bits per channel. Equivalent to DXGI_FORMAT_R16G16B16A16_UNORM.
---
 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 c15b106c84..17496d3030 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -328,6 +328,8 @@
 #define VLC_CODEC_ARGB            VLC_FOURCC('A','R','G','B')
 /* 32 bits BGRA */
 #define VLC_CODEC_BGRA            VLC_FOURCC('B','G','R','A')
+/* 64 bits RGBA */
+#define VLC_CODEC_RGBA64          VLC_FOURCC('R','G','A','4')
 
 /* Planar GBR 4:4:4 8 bits */
 #define VLC_CODEC_GBR_PLANAR      VLC_FOURCC('G','B','R','8')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 0203f32522..7e4c54e59f 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -689,7 +689,7 @@ static const struct
     { { VLC_CODEC_RGB24, 0 },                  PACKED_FMT(3, 24) },
     { { VLC_CODEC_RGB32, 0 },                  PACKED_FMT(4, 24) },
     { { VLC_CODEC_RGBA, VLC_CODEC_ARGB,
-        VLC_CODEC_BGRA, },                     PACKED_FMT(4, 32) },
+    { { VLC_CODEC_RGBA64, 0 },                 PACKED_FMT(8, 64) },
 
     { { 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 b6916b9ff4..b43e35d302 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -799,6 +799,8 @@ static const staticentry_t p_list_video[] = {
         A("AV32"),
     B(VLC_CODEC_BGRA, "32 bits BGRA"),
         A("BGRA"),
+    B(VLC_CODEC_RGBA64, "64 bits RGBA"),
+        A("RGA4"),
 
     B(VLC_CODEC_GREY, "8 bits greyscale"),
         A("GREY"),
-- 
2.14.2



More information about the vlc-devel mailing list