msdkvpp: add VUYA format in the src and sink pads

This commit is contained in:
Haihao Xiang 2019-03-08 12:22:52 +08:00 committed by Tim-Philipp Müller
parent 8389e88840
commit ac1408874b

View file

@ -53,14 +53,14 @@ GST_DEBUG_CATEGORY_EXTERN (gst_msdkvpp_debug);
#if (MFX_VERSION >= 1028) #if (MFX_VERSION >= 1028)
#define SUPPORTED_SYSTEM_FORMAT \ #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 \ #define SUPPORTED_DMABUF_FORMAT \
"{ NV12, BGRA, YUY2, UYVY, RGB16, P010_10LE}" "{ NV12, BGRA, YUY2, UYVY, VUYA, RGB16, P010_10LE}"
#else #else
#define SUPPORTED_SYSTEM_FORMAT \ #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 \ #define SUPPORTED_DMABUF_FORMAT \
"{ NV12, BGRA, YUY2, UYVY, P010_10LE}" "{ NV12, BGRA, YUY2, UYVY, VUYA, P010_10LE}"
#endif #endif
static GstStaticPadTemplate gst_msdkvpp_sink_factory = static GstStaticPadTemplate gst_msdkvpp_sink_factory =
@ -78,8 +78,9 @@ static GstStaticPadTemplate gst_msdkvpp_src_factory =
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE_WITH_FEATURES GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE_WITH_FEATURES
(GST_CAPS_FEATURE_MEMORY_DMABUF, (GST_CAPS_FEATURE_MEMORY_DMABUF,
"{ BGRA, YUY2, UYVY, NV12, BGRx, P010_10LE}") ";" "{ BGRA, YUY2, UYVY, NV12, VUYA, BGRx, P010_10LE}") ";"
GST_VIDEO_CAPS_MAKE ("{ BGRA, NV12, YUY2, UYVY, BGRx, P010_10LE }") ", " GST_VIDEO_CAPS_MAKE
("{ BGRA, NV12, YUY2, UYVY, VUYA, BGRx, P010_10LE }") ", "
"interlace-mode = (string){ progressive, interleaved, mixed }" ";")); "interlace-mode = (string){ progressive, interleaved, mixed }" ";"));
enum enum