mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
mfc: Add profile/level and width/height constraints
This commit is contained in:
parent
817d30f130
commit
64230003d9
1 changed files with 12 additions and 1 deletions
|
@ -42,15 +42,25 @@ static gboolean gst_mfc_dec_negotiate (GstVideoDecoder * decoder);
|
||||||
static gboolean gst_mfc_dec_decide_allocation (GstVideoDecoder * decoder,
|
static gboolean gst_mfc_dec_decide_allocation (GstVideoDecoder * decoder,
|
||||||
GstQuery * query);
|
GstQuery * query);
|
||||||
|
|
||||||
|
/* *INDENT-OFF* */
|
||||||
static GstStaticPadTemplate gst_mfc_dec_sink_template =
|
static GstStaticPadTemplate gst_mfc_dec_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/x-h264, "
|
GST_STATIC_CAPS ("video/x-h264, "
|
||||||
|
"profile = (string) {constrained-baseline, baseline, main, high}, "
|
||||||
|
"level = (string) {1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4}, "
|
||||||
|
"width = (int) [32, 1920], "
|
||||||
|
"height = (int) [32, 1080], "
|
||||||
"parsed = (boolean) true, "
|
"parsed = (boolean) true, "
|
||||||
"stream-format = (string) byte-stream, " "alignment = (string) au; "
|
"stream-format = (string) byte-stream, "
|
||||||
|
"alignment = (string) au; "
|
||||||
"video/mpeg, "
|
"video/mpeg, "
|
||||||
"mpegversion = (int) 4, "
|
"mpegversion = (int) 4, "
|
||||||
|
"profile = (string) {simple, advanced-simple}, "
|
||||||
|
"level = (string) {0, 0b, 1, 2, 3, 4, 4a, 5}, "
|
||||||
|
"width = (int) [32, 1920], "
|
||||||
|
"height = (int) [32, 1080], "
|
||||||
"systemstream = (boolean) false")
|
"systemstream = (boolean) false")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -60,6 +70,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ I420, YV12, NV12 }"))
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ I420, YV12, NV12 }"))
|
||||||
);
|
);
|
||||||
|
/* *INDENT-ON* */
|
||||||
|
|
||||||
#define parent_class gst_mfc_dec_parent_class
|
#define parent_class gst_mfc_dec_parent_class
|
||||||
G_DEFINE_TYPE (GstMFCDec, gst_mfc_dec, GST_TYPE_VIDEO_DECODER);
|
G_DEFINE_TYPE (GstMFCDec, gst_mfc_dec, GST_TYPE_VIDEO_DECODER);
|
||||||
|
|
Loading…
Reference in a new issue