mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
geometrictransform: Accept any rgb or gray
Using gstvideo functions geometrictransform can handle rgb or gray, put that on template caps
This commit is contained in:
parent
525aae23dc
commit
1250a7406d
1 changed files with 4 additions and 4 deletions
|
@ -28,17 +28,17 @@ GST_DEBUG_CATEGORY_STATIC (geometric_transform_debug);
|
||||||
#define GST_CAT_DEFAULT geometric_transform_debug
|
#define GST_CAT_DEFAULT geometric_transform_debug
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_geometric_transform_src_template =
|
static GstStaticPadTemplate gst_geometric_transform_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
|
GST_STATIC_CAPS ("video/x-raw-rgb; video/x-raw-gray")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_geometric_transform_sink_template =
|
static GstStaticPadTemplate gst_geometric_transform_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 (GST_VIDEO_CAPS_RGB)
|
GST_STATIC_CAPS ("video/x-raw-rgb; video/x-raw-gray")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstVideoFilterClass *parent_class = NULL;
|
static GstVideoFilterClass *parent_class = NULL;
|
||||||
|
|
Loading…
Reference in a new issue