1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-31 06:46:39 +02:00

Reserve FOURCC's for RV12 and AV16 XVideo formats

This commit is contained in:
Rémi Denis-Courmont 2011-02-15 18:30:35 +02:00
parent 7d029e21e7
commit d7fe7e31ef
2 changed files with 11 additions and 2 deletions

View File

@ -150,6 +150,10 @@
#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 */
#define VLC_CODEC_RGB12 VLC_FOURCC('R','V','1','2')
/* 16 bits VLC RGBA */
#define VLC_CODEC_RGBA16 VLC_FOURCC('A','V','1','6')
/* 15 bits RGB stored on 16 bits */
#define VLC_CODEC_RGB15 VLC_FOURCC('R','V','1','5')
/* 16 bits RGB store on a 16 bits */

View File

@ -662,6 +662,10 @@ static const entry_t p_list_video[] = {
B(VLC_CODEC_RGB8, "8 bits RGB"),
A("RGB2"),
B(VLC_CODEC_RGB15, "12 bits RGB"),
A("RV12"),
B(VLC_CODEC_RGB15, "16 bits RGBA"),
A("AV16"),
B(VLC_CODEC_RGB15, "15 bits RGB"),
A("RV15"),
B(VLC_CODEC_RGB16, "16 bits RGB"),
@ -672,6 +676,7 @@ static const entry_t p_list_video[] = {
A("RV32"),
B(VLC_CODEC_RGBA, "32 bits RGBA"),
A("RGBA"),
A("AV32"),
B(VLC_CODEC_GREY, "8 bits greyscale"),
A("GREY"),
@ -1622,7 +1627,8 @@ static const struct
{ { VLC_CODEC_YUV_PACKED, 0 }, PACKED(2) },
{ { VLC_CODEC_RGB8, VLC_CODEC_GREY,
VLC_CODEC_YUVP, VLC_CODEC_RGBP, 0 }, PACKED(1) },
{ { VLC_CODEC_RGB16, VLC_CODEC_RGB15, 0 }, PACKED(2) },
{ { VLC_CODEC_RGB16, VLC_CODEC_RGB15,
VLC_CODEC_RGB12, VLC_CODEC_RGBA16, 0 },PACKED(2) },
{ { VLC_CODEC_RGB24, 0 }, PACKED(3) },
{ { VLC_CODEC_RGB32, VLC_CODEC_RGBA, 0 }, PACKED(4) },
@ -1647,4 +1653,3 @@ const vlc_chroma_description_t *vlc_fourcc_GetChromaDescription( vlc_fourcc_t i_
}
return NULL;
}