[vlc-commits] core: add RGBA 64 bits
Steve Lhomme
git at videolan.org
Tue Feb 20 16:07:17 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 31 13:46:03 2017 +0100| [9155641b721004dcc0d7bd9d78c67181b44e38ba] | 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=9155641b721004dcc0d7bd9d78c67181b44e38ba
---
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 1b18ea29d0..d46b7dd9b0 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -727,6 +727,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