avcodecmap: Add mappings for I420/I422/Y444_12LE/BE and GBRA

https://bugzilla.gnome.org/show_bug.cgi?id=780100
This commit is contained in:
Sebastian Dröge 2017-03-16 17:14:21 +02:00
parent d666041a51
commit fecf973bc9

View file

@ -2685,6 +2685,7 @@ static const PixToFmt pixtofmttable[] = {
{GST_VIDEO_FORMAT_Y444_10LE, AV_PIX_FMT_YUV444P10LE}, {GST_VIDEO_FORMAT_Y444_10LE, AV_PIX_FMT_YUV444P10LE},
{GST_VIDEO_FORMAT_Y444_10BE, AV_PIX_FMT_YUV444P10BE}, {GST_VIDEO_FORMAT_Y444_10BE, AV_PIX_FMT_YUV444P10BE},
{GST_VIDEO_FORMAT_GBR, AV_PIX_FMT_GBRP}, {GST_VIDEO_FORMAT_GBR, AV_PIX_FMT_GBRP},
{GST_VIDEO_FORMAT_GBRA, AV_PIX_FMT_GBRAP},
{GST_VIDEO_FORMAT_GBR_10LE, AV_PIX_FMT_GBRP10LE}, {GST_VIDEO_FORMAT_GBR_10LE, AV_PIX_FMT_GBRP10LE},
{GST_VIDEO_FORMAT_GBR_10BE, AV_PIX_FMT_GBRP10BE}, {GST_VIDEO_FORMAT_GBR_10BE, AV_PIX_FMT_GBRP10BE},
{GST_VIDEO_FORMAT_GBR_12LE, AV_PIX_FMT_GBRP12LE}, {GST_VIDEO_FORMAT_GBR_12LE, AV_PIX_FMT_GBRP12LE},
@ -2697,6 +2698,12 @@ static const PixToFmt pixtofmttable[] = {
{GST_VIDEO_FORMAT_A422_10BE, AV_PIX_FMT_YUVA422P10BE}, {GST_VIDEO_FORMAT_A422_10BE, AV_PIX_FMT_YUVA422P10BE},
{GST_VIDEO_FORMAT_A444_10LE, AV_PIX_FMT_YUVA444P10LE}, {GST_VIDEO_FORMAT_A444_10LE, AV_PIX_FMT_YUVA444P10LE},
{GST_VIDEO_FORMAT_A444_10BE, AV_PIX_FMT_YUVA444P10BE}, {GST_VIDEO_FORMAT_A444_10BE, AV_PIX_FMT_YUVA444P10BE},
{GST_VIDEO_FORMAT_I420_12LE, AV_PIX_FMT_YUV420P12LE},
{GST_VIDEO_FORMAT_I420_12BE, AV_PIX_FMT_YUV420P12BE},
{GST_VIDEO_FORMAT_I422_12LE, AV_PIX_FMT_YUV422P12LE},
{GST_VIDEO_FORMAT_I422_12BE, AV_PIX_FMT_YUV422P12BE},
{GST_VIDEO_FORMAT_Y444_12LE, AV_PIX_FMT_YUV444P12LE},
{GST_VIDEO_FORMAT_Y444_12BE, AV_PIX_FMT_YUV444P12BE},
}; };
GstVideoFormat GstVideoFormat