From: Haihao Xiang Date: Thu, 27 Dec 2018 08:50:54 +0000 (+0800) Subject: msdkvpp: don't use NV12 as default output in normal mode X-Git-Tag: 1.19.3~507^2~3649 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0943aec692714736179b2ee6ebe59ac584b87bf;p=platform%2Fupstream%2Fgstreamer.git msdkvpp: don't use NV12 as default output in normal mode If so, BGRA is the preferred output format hence BGRA will be selected as input format by default, e.g. in the pipleline below, BGRA instead of NV12 is selected without renegotiation, so we can avoid the NV12 issue (see commit 3f2314a) by default. gst-launch-1.0 videotestsrc ! msdkvpp ! glimagesink --- diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index 95f5f17..d769d40 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -68,7 +68,7 @@ static GstStaticPadTemplate gst_msdkvpp_src_factory = GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_DMABUF, "{ BGRA, YUY2, NV12}") ";" - GST_VIDEO_CAPS_MAKE ("{ NV12, YUY2, BGRA, BGRx }") ", " + GST_VIDEO_CAPS_MAKE ("{ BGRA, NV12, YUY2, BGRx }") ", " "interlace-mode = (string){ progressive, interleaved, mixed }" ";")); enum