mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
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:
parent
89e34cfb24
commit
0c19a8ff27
@ -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')
|
||||
|
||||
|
@ -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) },
|
||||
|
||||
|
@ -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"),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user