Commit fe6a5688 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

fourcc: remove unsupported RGBT and RGBA16

This was found on some versions of OMAP XV but never truly supported
by VLC (no decoder and no conversion...).
parent 2d509979
......@@ -210,12 +210,8 @@
#define VLC_CODEC_RGB8 VLC_FOURCC('R','G','B','8')
/* 12 bits RGB padded to 16 bits */
#define VLC_CODEC_RGB12 VLC_FOURCC('R','V','1','2')
/* 16 bits RGBA (12 bits RGB + 4 bits alpha) */
#define VLC_CODEC_RGBA16 VLC_FOURCC('A','V','1','6')
/* 15 bits RGB padded to 16 bits */
#define VLC_CODEC_RGB15 VLC_FOURCC('R','V','1','5')
/* 16 bits RGBA (15 bits RGB + 1 bit alpha) */
#define VLC_CODEC_RGBT VLC_FOURCC('R','G','B','T')
/* 16 bits RGB */
#define VLC_CODEC_RGB16 VLC_FOURCC('R','V','1','6')
/* 24 bits RGB */
......
......@@ -162,14 +162,10 @@ static vlc_fourcc_t ParseFormat (vlc_object_t *obj,
case 15:
if (f->byte_order != ORDER)
return 0; /* Mixed endian! */
if (f->bpp == 16 && f->depth == 16)
return VLC_CODEC_RGBT;
if (f->bpp == 16 && f->depth == 15)
return VLC_CODEC_RGB15;
break;
case 12:
if (f->bpp == 16 && f->depth == 16)
return VLC_CODEC_RGBA16;
if (f->bpp == 16 && f->depth == 12)
return VLC_CODEC_RGB12;
break;
......
......@@ -799,12 +799,8 @@ static const staticentry_t p_list_video[] = {
A("RGB2"),
B(VLC_CODEC_RGB12, "12 bits RGB"),
A("RV12"),
B(VLC_CODEC_RGBA16, "16 bits RGBA"),
A("AV16"),
B(VLC_CODEC_RGB15, "15 bits RGB"),
A("RV15"),
B(VLC_CODEC_RGBT, "16 bits RGBT"),
A("RGBT"),
B(VLC_CODEC_RGB16, "16 bits RGB"),
A("RV16"),
B(VLC_CODEC_RGB24, "24 bits RGB"),
......@@ -2086,8 +2082,7 @@ static const struct
{ { VLC_CODEC_RGB15, 0 }, PACKED_FMT(2, 15) },
{ { VLC_CODEC_RGB12, 0 }, PACKED_FMT(2, 12) },
{ { VLC_CODEC_RGB16, VLC_CODEC_RGBT,
VLC_CODEC_RGBA16, 0 }, PACKED_FMT(2, 16) },
{ { VLC_CODEC_RGB16, 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,
......
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