core: add RGBA 32 bits with 10 bits per RGB channel

Equivalent to DXGI_FORMAT_R10G10B10A2_UNORM. One of the main format on Windows
to display 10 bits.

(cherry picked from commit bf2f64958b)
This commit is contained in:
Steve Lhomme 2017-11-07 14:02:12 +01:00
parent 89e34cfb24
commit 0c19a8ff27
3 changed files with 5 additions and 1 deletions

View File

@ -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')
/* 32 bits BGRA 10:10:10:2 */
#define VLC_CODEC_RGBA10 VLC_FOURCC('R','G','A','0')
/* 64 bits RGBA */
#define VLC_CODEC_RGBA64 VLC_FOURCC('R','G','A','4')

View File

@ -743,7 +743,7 @@ static const struct
{ { VLC_CODEC_RGB24, 0 }, PACKED_FMT(3, 24) },
{ { VLC_CODEC_RGB32, 0 }, PACKED_FMT(4, 24) },
{ { VLC_CODEC_RGBA, VLC_CODEC_ARGB,
VLC_CODEC_BGRA, }, PACKED_FMT(4, 32) },
VLC_CODEC_BGRA, VLC_CODEC_RGBA10 }, PACKED_FMT(4, 32) },
{ { VLC_CODEC_RGBA64, 0 }, PACKED_FMT(8, 64) },
{ { VLC_CODEC_VUYA, 0 }, PACKED_FMT(4, 32) },

View File

@ -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_RGBA10, "32 bits RGB 10bits A 2bits"),
A("RGA0"),
B(VLC_CODEC_RGBA64, "64 bits RGBA"),
A("RGA4"),