From ac1408874bfe2e58b89594ca889d5840ac3816f5 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Fri, 8 Mar 2019 12:22:52 +0800 Subject: [PATCH] msdkvpp: add VUYA format in the src and sink pads --- sys/msdk/gstmsdkvpp.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index 71d5feccc1..4038d666d5 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -53,14 +53,14 @@ GST_DEBUG_CATEGORY_EXTERN (gst_msdkvpp_debug); #if (MFX_VERSION >= 1028) #define SUPPORTED_SYSTEM_FORMAT \ - "{ NV12, YV12, I420, YUY2, UYVY, BGRA, BGRx, RGB16, P010_10LE }" + "{ NV12, YV12, I420, YUY2, UYVY, VUYA, BGRA, BGRx, RGB16, P010_10LE }" #define SUPPORTED_DMABUF_FORMAT \ - "{ NV12, BGRA, YUY2, UYVY, RGB16, P010_10LE}" + "{ NV12, BGRA, YUY2, UYVY, VUYA, RGB16, P010_10LE}" #else #define SUPPORTED_SYSTEM_FORMAT \ - "{ NV12, YV12, I420, YUY2, UYVY, BGRA, BGRx, P010_10LE }" + "{ NV12, YV12, I420, YUY2, UYVY, VUYA, BGRA, BGRx, P010_10LE }" #define SUPPORTED_DMABUF_FORMAT \ - "{ NV12, BGRA, YUY2, UYVY, P010_10LE}" + "{ NV12, BGRA, YUY2, UYVY, VUYA, P010_10LE}" #endif static GstStaticPadTemplate gst_msdkvpp_sink_factory = @@ -78,8 +78,9 @@ 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, UYVY, NV12, BGRx, P010_10LE}") ";" - GST_VIDEO_CAPS_MAKE ("{ BGRA, NV12, YUY2, UYVY, BGRx, P010_10LE }") ", " + "{ BGRA, YUY2, UYVY, NV12, VUYA, BGRx, P010_10LE}") ";" + GST_VIDEO_CAPS_MAKE + ("{ BGRA, NV12, YUY2, UYVY, VUYA, BGRx, P010_10LE }") ", " "interlace-mode = (string){ progressive, interleaved, mixed }" ";")); enum