avcodecmap: Add mappings for I420/I422/Y444_12LE/BE and GBRA
authorSebastian Dröge <sebastian@centricular.com>
Thu, 16 Mar 2017 15:14:21 +0000 (17:14 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 16 Mar 2017 15:22:51 +0000 (17:22 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=780100

ext/libav/gstavcodecmap.c

index 9552f70..f6da86f 100644 (file)
@@ -2685,6 +2685,7 @@ static const PixToFmt pixtofmttable[] = {
   {GST_VIDEO_FORMAT_Y444_10LE, AV_PIX_FMT_YUV444P10LE},
   {GST_VIDEO_FORMAT_Y444_10BE, AV_PIX_FMT_YUV444P10BE},
   {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_10BE, AV_PIX_FMT_GBRP10BE},
   {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_A444_10LE, AV_PIX_FMT_YUVA444P10LE},
   {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