msdkvpp: add P010_10LE to sink and src caps

example pipelines:

gst-launch-1.0 videotestsrc num-buffers=100 ! \
video/x-raw,format=P010_10LE,width=352,height=288 ! msdkvpp ! \
video/x-raw,format=NV12! fakesink

gst-launch-1.0 videotestsrc num-buffers=100 ! \
video/x-raw,format=NV12,width=352,height=288 ! msdkvpp ! \
video/x-raw,format=P010_10LE ! fakesink
This commit is contained in:
Haihao Xiang 2019-01-15 13:59:05 +08:00 committed by Víctor Manuel Jáquez Leal
parent 5e3f94ce28
commit 697d41c923

View file

@ -56,10 +56,10 @@ static GstStaticPadTemplate gst_msdkvpp_sink_factory =
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE
("{ NV12, YV12, I420, YUY2, UYVY, BGRA, BGRx }")
("{ NV12, YV12, I420, YUY2, UYVY, BGRA, BGRx, P010_10LE }")
", " "interlace-mode = (string){ progressive, interleaved, mixed }" ";"
GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_DMABUF,
"{ NV12, BGRA, YUY2}")));
"{ NV12, BGRA, YUY2, P010_10LE}")));
static GstStaticPadTemplate gst_msdkvpp_src_factory =
GST_STATIC_PAD_TEMPLATE ("src",
@ -67,8 +67,8 @@ 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}") ";"
GST_VIDEO_CAPS_MAKE ("{ BGRA, NV12, YUY2, BGRx }") ", "
"{ BGRA, YUY2, NV12, P010_10LE}") ";"
GST_VIDEO_CAPS_MAKE ("{ BGRA, NV12, YUY2, BGRx, P010_10LE }") ", "
"interlace-mode = (string){ progressive, interleaved, mixed }" ";"));
enum