avfilter/extractplanes: add support for 12-bit YUVA formats
authorGyan Doshi <ffmpeg@gyani.pro>
Thu, 17 Jan 2019 09:31:11 +0000 (15:01 +0530)
committerPaul B Mahol <onemda@gmail.com>
Thu, 17 Jan 2019 10:41:18 +0000 (11:41 +0100)
At present, 16-bit auto-scaled format results in incorrect alpha
extraction.

libavfilter/vf_extractplanes.c

index f917157..739c242 100644 (file)
@@ -99,6 +99,8 @@ AVFILTER_DEFINE_CLASS(extractplanes);
         AV_PIX_FMT_YUV422P12##suf,                             \
         AV_PIX_FMT_YUV444P12##suf,                             \
         AV_PIX_FMT_YUV440P12##suf,                             \
+        AV_PIX_FMT_YUVA422P12##suf,                            \
+        AV_PIX_FMT_YUVA444P12##suf,                            \
         AV_PIX_FMT_GBRP10##suf, AV_PIX_FMT_GBRAP10##suf,       \
         AV_PIX_FMT_GBRP12##suf, AV_PIX_FMT_GBRAP12##suf,       \
         AV_PIX_FMT_YUV420P9##suf,                              \