From bbf253f7c3551412eeebb8087cad07dc53278347 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Fri, 24 Jun 2011 22:44:48 +0200 Subject: [PATCH] Mapped VLC_CODEC for I420 9/10-bit, I422 10-bit, I444 9/10-bit to ffmpeg PIX_FMT. --- modules/codec/avcodec/chroma.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c index 9a40417720..8b5594e50b 100644 --- a/modules/codec/avcodec/chroma.c +++ b/modules/codec/avcodec/chroma.c @@ -82,6 +82,23 @@ static const struct {VLC_FOURCC('N','V','1','2'), PIX_FMT_NV12, 0, 0, 0 }, {VLC_FOURCC('N','V','2','1'), PIX_FMT_NV21, 0, 0, 0 }, +#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(4<<8)+0) + {VLC_CODEC_I420_9L, PIX_FMT_YUV420P9LE, 0, 0, 0 }, + {VLC_CODEC_I420_9B, PIX_FMT_YUV420P9BE, 0, 0, 0 }, + {VLC_CODEC_I420_10L, PIX_FMT_YUV420P10LE, 0, 0, 0 }, + {VLC_CODEC_I420_10B, PIX_FMT_YUV420P10BE, 0, 0, 0 }, +#endif +#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(9<<8)+0) + /* I422 9-bit seems missing */ + {VLC_CODEC_I422_10L, PIX_FMT_YUV422P10LE, 0, 0, 0 }, + {VLC_CODEC_I422_10B, PIX_FMT_YUV422P10BE, 0, 0, 0 }, + + {VLC_CODEC_I444_9L, PIX_FMT_YUV444P9LE, 0, 0, 0 }, + {VLC_CODEC_I444_9B, PIX_FMT_YUV444P9BE, 0, 0, 0 }, + {VLC_CODEC_I444_10L, PIX_FMT_YUV444P10LE, 0, 0, 0 }, + {VLC_CODEC_I444_10B, PIX_FMT_YUV444P10BE, 0, 0, 0 }, +#endif + /* Packed YUV formats */ {VLC_CODEC_YUYV, PIX_FMT_YUYV422, 0, 0, 0 }, {VLC_FOURCC('Y','U','Y','V'), PIX_FMT_YUYV422, 0, 0, 0 }, -- 2.11.4.GIT