From b365966d4c0de8a51eae99901867ea17ddf5ac6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 15 Feb 2011 19:18:47 +0200 Subject: [PATCH] XCB/XVideo: add RV12, AV16 and AV32 Those are not used (currently). This commit is only meant to avoid the error messages for unknown formats. --- modules/video_output/xcb/xvideo.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c index 139a0bccd6..63fd70b71c 100644 --- a/modules/video_output/xcb/xvideo.c +++ b/modules/video_output/xcb/xvideo.c @@ -147,7 +147,7 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd, { case 24: if (f->bpp == 32 && f->depth == 32) - return 0; /* ARGB -> VLC cannot do that currently */ + return VLC_CODEC_RGBA; if (f->bpp == 32 && f->depth == 24) return VLC_CODEC_RGB32; if (f->bpp == 24 && f->depth == 24) @@ -161,6 +161,11 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd, 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; case 8: if (f->bpp == 8 && f->depth == 8) return VLC_CODEC_RGB8; -- 2.39.5