[vlc-commits] Add VLC_CODEC_BGRA fourcc.
Jean-Paul Saman
git at videolan.org
Mon May 12 17:00:22 CEST 2014
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Mon May 12 15:03:09 2014 +0200| [0df73cebc001e201d588a81119ba31106a11d340] | committer: Jean-Paul Saman
Add VLC_CODEC_BGRA fourcc.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0df73cebc001e201d588a81119ba31106a11d340
---
include/vlc_fourcc.h | 2 ++
src/misc/es_format.c | 1 +
src/misc/fourcc.c | 5 ++++-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index fbd0d09..49d8bfc 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -226,6 +226,8 @@
#define VLC_CODEC_RGBA VLC_FOURCC('R','G','B','A')
/* 32 bits ARGB */
#define VLC_CODEC_ARGB VLC_FOURCC('A','R','G','B')
+/* 32 bits BGRA */
+#define VLC_CODEC_BGRA VLC_FOURCC('B','G','R','A')
/* Planar GBR 4:4:4 8 bits */
#define VLC_CODEC_GBR_PLANAR VLC_FOURCC('G','B','R','8')
diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index 0b948cf..27622bc 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -190,6 +190,7 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
case VLC_CODEC_RGB32:
case VLC_CODEC_RGBA:
case VLC_CODEC_ARGB:
+ case VLC_CODEC_BGRA:
p_fmt->i_bits_per_pixel = 32;
break;
case VLC_CODEC_RGB24:
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index d6f91e9..76b78b4 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -814,6 +814,8 @@ static const staticentry_t p_list_video[] = {
B(VLC_CODEC_RGBA, "32 bits ARGB"),
A("ARGB"),
A("AV32"),
+ B(VLC_CODEC_BGRA, "32 bits BGRA"),
+ A("BGRA"),
B(VLC_CODEC_GREY, "8 bits greyscale"),
A("GREY"),
@@ -2084,7 +2086,8 @@ static const struct
VLC_CODEC_RGBA16, 0 }, PACKED_FMT(2, 16) },
{ { VLC_CODEC_RGB24, 0 }, PACKED_FMT(3, 24) },
{ { VLC_CODEC_RGB32, 0 }, PACKED_FMT(4, 24) },
- { { VLC_CODEC_RGBA, VLC_CODEC_ARGB, 0 }, PACKED_FMT(4, 32) },
+ { { VLC_CODEC_RGBA, VLC_CODEC_ARGB,
+ VLC_CODEC_BGRA, 0 }, PACKED_FMT(4, 32) },
{ { VLC_CODEC_Y211, 0 }, { 1, { {{1,4}, {1,1}} }, 4, 32 } },
{ { VLC_CODEC_XYZ12, 0 }, PACKED_FMT(6, 48) },
More information about the vlc-commits
mailing list