Commit 0df73ceb authored by Jean-Paul Saman's avatar Jean-Paul Saman

Add VLC_CODEC_BGRA fourcc.

parent 1f8ac012
...@@ -226,6 +226,8 @@ ...@@ -226,6 +226,8 @@
#define VLC_CODEC_RGBA VLC_FOURCC('R','G','B','A') #define VLC_CODEC_RGBA VLC_FOURCC('R','G','B','A')
/* 32 bits ARGB */ /* 32 bits ARGB */
#define VLC_CODEC_ARGB VLC_FOURCC('A','R','G','B') #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 */ /* Planar GBR 4:4:4 8 bits */
#define VLC_CODEC_GBR_PLANAR VLC_FOURCC('G','B','R','8') #define VLC_CODEC_GBR_PLANAR VLC_FOURCC('G','B','R','8')
......
...@@ -190,6 +190,7 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma, ...@@ -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_RGB32:
case VLC_CODEC_RGBA: case VLC_CODEC_RGBA:
case VLC_CODEC_ARGB: case VLC_CODEC_ARGB:
case VLC_CODEC_BGRA:
p_fmt->i_bits_per_pixel = 32; p_fmt->i_bits_per_pixel = 32;
break; break;
case VLC_CODEC_RGB24: case VLC_CODEC_RGB24:
......
...@@ -814,6 +814,8 @@ static const staticentry_t p_list_video[] = { ...@@ -814,6 +814,8 @@ static const staticentry_t p_list_video[] = {
B(VLC_CODEC_RGBA, "32 bits ARGB"), B(VLC_CODEC_RGBA, "32 bits ARGB"),
A("ARGB"), A("ARGB"),
A("AV32"), A("AV32"),
B(VLC_CODEC_BGRA, "32 bits BGRA"),
A("BGRA"),
B(VLC_CODEC_GREY, "8 bits greyscale"), B(VLC_CODEC_GREY, "8 bits greyscale"),
A("GREY"), A("GREY"),
...@@ -2084,7 +2086,8 @@ static const struct ...@@ -2084,7 +2086,8 @@ static const struct
VLC_CODEC_RGBA16, 0 }, PACKED_FMT(2, 16) }, VLC_CODEC_RGBA16, 0 }, PACKED_FMT(2, 16) },
{ { VLC_CODEC_RGB24, 0 }, PACKED_FMT(3, 24) }, { { VLC_CODEC_RGB24, 0 }, PACKED_FMT(3, 24) },
{ { VLC_CODEC_RGB32, 0 }, PACKED_FMT(4, 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_Y211, 0 }, { 1, { {{1,4}, {1,1}} }, 4, 32 } },
{ { VLC_CODEC_XYZ12, 0 }, PACKED_FMT(6, 48) }, { { VLC_CODEC_XYZ12, 0 }, PACKED_FMT(6, 48) },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment