[vlc-commits] core: add RGBA 64 bits

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 31 13:46:03 2017 +0100| [1b572bf1894c0a2330606c40ad031b00a532c6f1] | committer: Steve Lhomme

core: add RGBA 64 bits

16 bits per channel. Equivalent to DXGI_FORMAT_R16G16B16A16_UNORM.

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

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

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index e8a317d706..3be6a90af5 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 8e5e2b5f94..865a3a3d97 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -731,6 +731,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_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 e792f28fb5..6c7248b9dc 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"),



More information about the vlc-commits mailing list