msdkh265dec: add support for main-422-10/main-422-10-intra 8bit
authorHaihao Xiang <haihao.xiang@intel.com>
Tue, 28 May 2019 08:50:59 +0000 (16:50 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 29 Jun 2019 14:15:32 +0000 (14:15 +0000)
The output format is YUY2

sys/msdk/gstmsdkh265dec.c

index 496f77b..eba259e 100644 (file)
@@ -48,19 +48,19 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_STATIC_CAPS ("video/x-h265, "
         "width = (int) [ 1, MAX ], height = (int) [ 1, MAX ], "
         "stream-format = (string) byte-stream , alignment = (string) au , "
-        "profile = (string) { main, main-10 } ")
+        "profile = (string) { main, main-10, main-422-10, main-422-10-intra } ")
     );
 
 static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("video/x-raw, "
-        "format = (string) { NV12, P010_10LE }, "
+        "format = (string) { NV12, P010_10LE, YUY2 }, "
         "framerate = (fraction) [0, MAX], "
         "width = (int) [ 1, MAX ], height = (int) [ 1, MAX ],"
         "interlace-mode = (string) progressive;"
         GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_DMABUF,
-            "{ NV12, P010_10LE }") ";")
+            "{ NV12, P010_10LE, YUY2 }") ";")
     );
 
 #define gst_msdkh265dec_parent_class parent_class