From ea6789fec85c5f6951cba1063bb0ab8c0adbbedd Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Thu, 14 Feb 2019 13:43:13 +0800 Subject: [PATCH] msdkvpp: allow BGRx in DMABuf mode in the src pad Tested with the pipeline below: gst-launch-1.0 videotestsrc ! msdkvpp ! \ video/x-raw\(memory:DMABuf\),format=BGRx ! glimagesink --- sys/msdk/gstmsdkvpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index fb2f51c..26ba057 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -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 }" ";")); -- 2.7.4