msdkvpp: allow BGRx in DMABuf mode in the src pad
authorHaihao Xiang <haihao.xiang@intel.com>
Thu, 14 Feb 2019 05:43:13 +0000 (13:43 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 19 Feb 2019 11:04:47 +0000 (11:04 +0000)
Tested with the pipeline below:

gst-launch-1.0 videotestsrc ! msdkvpp ! \
video/x-raw\(memory:DMABuf\),format=BGRx ! glimagesink

sys/msdk/gstmsdkvpp.c

index fb2f51c..26ba057 100644 (file)
@@ -67,7 +67,7 @@ static GstStaticPadTemplate gst_msdkvpp_src_factory =
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE_WITH_FEATURES
         (GST_CAPS_FEATURE_MEMORY_DMABUF,
-            "{ BGRA, YUY2, NV12, P010_10LE}") ";"
+            "{ BGRA, YUY2, NV12, BGRx, P010_10LE}") ";"
         GST_VIDEO_CAPS_MAKE ("{ BGRA, NV12, YUY2, BGRx, P010_10LE }") ", "
         "interlace-mode = (string){ progressive, interleaved, mixed }" ";"));