From 76bbefe3b04f95261dc34c2ca80f359eb29be841 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 25 Apr 2018 12:26:43 -0800 Subject: [PATCH] msdk: vpp: Add YV12, YUY2 and BGRx formats to template --- sys/msdk/gstmsdkvpp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index 88aca9c2b2..774c2658aa 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -51,14 +51,15 @@ static GstStaticPadTemplate gst_msdkvpp_sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ NV12, I420, YUY2, UYVY, BGRA }") + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE + ("{ NV12, YV12, I420, YUY2, UYVY, BGRA, BGRx }") ", " "interlace-mode = (string){ progressive, interleaved, mixed }")); static GstStaticPadTemplate gst_msdkvpp_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ NV12, BGRA }") ", " + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ NV12, YUY2, BGRA, BGRx }") ", " "interlace-mode = (string){ progressive, interleaved, mixed }")); enum