Commit bbf253f7 authored by Laurent Aimar's avatar Laurent Aimar

Mapped VLC_CODEC for I420 9/10-bit, I422 10-bit, I444 9/10-bit to ffmpeg PIX_FMT.

parent 80861b6e
...@@ -82,6 +82,23 @@ static const struct ...@@ -82,6 +82,23 @@ static const struct
{VLC_FOURCC('N','V','1','2'), PIX_FMT_NV12, 0, 0, 0 }, {VLC_FOURCC('N','V','1','2'), PIX_FMT_NV12, 0, 0, 0 },
{VLC_FOURCC('N','V','2','1'), PIX_FMT_NV21, 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 */ /* Packed YUV formats */
{VLC_CODEC_YUYV, PIX_FMT_YUYV422, 0, 0, 0 }, {VLC_CODEC_YUYV, PIX_FMT_YUYV422, 0, 0, 0 },
{VLC_FOURCC('Y','U','Y','V'), PIX_FMT_YUYV422, 0, 0, 0 }, {VLC_FOURCC('Y','U','Y','V'), PIX_FMT_YUYV422, 0, 0, 0 },
......
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