[vlc-commits] core: add RGBA 64 bits

Steve Lhomme git at videolan.org
Wed Oct 17 12:02:29 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 31 13:46:03 2017 +0100| [02dbf20976df94f75a40ab1167bfb82ccea955d6] | committer: Steve Lhomme

core: add RGBA 64 bits

16 bits per channel. Equivalent to DXGI_FORMAT_R16G16B16A16_UNORM.

(cherry picked from commit 9155641b721004dcc0d7bd9d78c67181b44e38ba)

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

 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 39b8a02107..56dbf2fcbb 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -330,6 +330,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 5b723a6b45..b807c22a41 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -744,6 +744,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_VUYA, 0 },                   PACKED_FMT(4, 32) },
 
     { { VLC_CODEC_Y211, 0 },                   { 1, { {{1,4}, {1,1}} }, 4, 32 } },
diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
index 45c4eda7e6..1c27e6bbd9 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -800,6 +800,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