mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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
This commit is contained in:
parent
1bfd1b2bf9
commit
1c0160513b
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue