summaryrefslogtreecommitdiff
path: root/sys/msdk/gstmsdkh265dec.c
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2018-10-19 16:23:34 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-11-26 16:47:17 +0000
commit1c0160513bacfd3eac081f8592353580c8b369e1 (patch)
tree4b0b6133781d7341ca611199bd6b1b9dea3eef50 /sys/msdk/gstmsdkh265dec.c
parent1bfd1b2bf9e3e47bf171d8ed5379e5f2c7220218 (diff)
downloadgstreamer-plugins-bad-1c0160513bacfd3eac081f8592353580c8b369e1.tar.gz
msdk: use separate src caps for msdkh265dec
We will add more formats in the src caps of msdkh265dec, so let msdkh265dec uses separate src caps. Note it doesn't change any capability
Diffstat (limited to 'sys/msdk/gstmsdkh265dec.c')
-rw-r--r--sys/msdk/gstmsdkh265dec.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/msdk/gstmsdkh265dec.c b/sys/msdk/gstmsdkh265dec.c
index 102bd0405..cd967503b 100644
--- a/sys/msdk/gstmsdkh265dec.c
+++ b/sys/msdk/gstmsdkh265dec.c
@@ -40,6 +40,7 @@
#endif
#include "gstmsdkh265dec.h"
+#include "gstmsdkvideomemory.h"
GST_DEBUG_CATEGORY_EXTERN (gst_msdkh265dec_debug);
#define GST_CAT_DEFAULT gst_msdkh265dec_debug
@@ -53,6 +54,18 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
"profile = (string) main ")
);
+static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("video/x-raw, "
+ "format = (string) { NV12 }, "
+ "framerate = (fraction) [0, MAX], "
+ "width = (int) [ 16, MAX ], height = (int) [ 16, MAX ],"
+ "interlace-mode = (string) progressive;"
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_DMABUF,
+ "{ NV12 }") ";")
+ );
+
#define gst_msdkh265dec_parent_class parent_class
G_DEFINE_TYPE (GstMsdkH265Dec, gst_msdkh265dec, GST_TYPE_MSDKDEC);
@@ -161,6 +174,7 @@ gst_msdkh265dec_class_init (GstMsdkH265DecClass * klass)
gst_msdkdec_prop_install_output_oder_property (gobject_class);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
+ gst_element_class_add_static_pad_template (element_class, &src_factory);
}
static void