[vlc-commits] Reserve RGBT codec (RGBA 5-5-5-1)
Rémi Denis-Courmont
git at videolan.org
Wed May 18 22:06:34 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 18 23:05:46 2011 +0300| [9713c02aedfb4b2df9ebead0be7f6e28016dd3e7] | committer: Rémi Denis-Courmont
Reserve RGBT codec (RGBA 5-5-5-1)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9713c02aedfb4b2df9ebead0be7f6e28016dd3e7
---
include/vlc_fourcc.h | 14 ++++++++------
src/misc/fourcc.c | 6 ++++--
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index d41d4a9..d6d50a1 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -150,19 +150,21 @@
#define VLC_CODEC_RGBP VLC_FOURCC('R','G','B','P')
/* 8 bits RGB */
#define VLC_CODEC_RGB8 VLC_FOURCC('R','G','B','8')
-/* 12 bits RGB stored on 16 bits */
+/* 12 bits RGB padded to 16 bits */
#define VLC_CODEC_RGB12 VLC_FOURCC('R','V','1','2')
-/* 16 bits VLC RGBA */
+/* 16 bits RGBA (12 bits RGB + 4 bits alpha) */
#define VLC_CODEC_RGBA16 VLC_FOURCC('A','V','1','6')
-/* 15 bits RGB stored on 16 bits */
+/* 15 bits RGB padded to 16 bits */
#define VLC_CODEC_RGB15 VLC_FOURCC('R','V','1','5')
-/* 16 bits RGB store on a 16 bits */
+/* 16 bits RGBA (15 bits RGB + 1 bit alpha) */
+#define VLC_CODEC_RGBT VLC_FOURCC('R','G','B','T')
+/* 16 bits RGB */
#define VLC_CODEC_RGB16 VLC_FOURCC('R','V','1','6')
/* 24 bits RGB */
#define VLC_CODEC_RGB24 VLC_FOURCC('R','V','2','4')
-/* 32 bits RGB */
+/* 24 bits RGB padded to 32 bits */
#define VLC_CODEC_RGB32 VLC_FOURCC('R','V','3','2')
-/* 32 bits VLC RGBA */
+/* 32 bits RGBA */
#define VLC_CODEC_RGBA VLC_FOURCC('R','G','B','A')
/* 8 bits grey */
#define VLC_CODEC_GREY VLC_FOURCC('G','R','E','Y')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 79453b1..392621d 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -674,6 +674,8 @@ static const entry_t p_list_video[] = {
A("AV16"),
B(VLC_CODEC_RGB15, "15 bits RGB"),
A("RV15"),
+ B(VLC_CODEC_RGBT, "16 bits RGBT"),
+ A("RGBT"),
B(VLC_CODEC_RGB16, "16 bits RGB"),
A("RV16"),
B(VLC_CODEC_RGB24, "24 bits RGB"),
@@ -1619,7 +1621,7 @@ bool vlc_fourcc_IsYUV(vlc_fourcc_t fcc)
static const struct
{
- vlc_fourcc_t p_fourcc[5];
+ vlc_fourcc_t p_fourcc[6];
vlc_chroma_description_t description;
} p_list_chroma_description[] = {
{ { VLC_CODEC_I411, 0 }, PLANAR(3, 4, 1) },
@@ -1633,7 +1635,7 @@ static const struct
{ { VLC_CODEC_YUV_PACKED, 0 }, PACKED_FMT(2) },
{ { VLC_CODEC_RGB8, VLC_CODEC_GREY,
VLC_CODEC_YUVP, VLC_CODEC_RGBP, 0 }, PACKED_FMT(1) },
- { { VLC_CODEC_RGB16, VLC_CODEC_RGB15,
+ { { VLC_CODEC_RGB16, VLC_CODEC_RGB15, VLC_CODEC_RGBT,
VLC_CODEC_RGB12, VLC_CODEC_RGBA16, 0 },PACKED_FMT(2) },
{ { VLC_CODEC_RGB24, 0 }, PACKED_FMT(3) },
{ { VLC_CODEC_RGB32, VLC_CODEC_RGBA, 0 }, PACKED_FMT(4) },
More information about the vlc-commits
mailing list