mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
element-maker: clean up bits from previous commit
Files that were supposed to be in the previous element-maker commit. This is what happens when cherry-pick doesn't work.
This commit is contained in:
parent
7992c1c92e
commit
84faa2f8b8
4 changed files with 17 additions and 30 deletions
|
@ -11,8 +11,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
);
|
);
|
||||||
|
|
||||||
% base-init
|
% base-init
|
||||||
gst_element_class_add_static_pad_template (element_class,
|
gst_element_class_add_pad_template (element_class,
|
||||||
&gst_replace_sink_template);
|
gst_static_pad_template_get (&gst_replace_sink_template);
|
||||||
% instance-init
|
% instance-init
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
|
@ -1,21 +1,12 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
|
GstPad *sinkpad;
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
/* FIXME: add/remove formats you can handle */
|
/* FIXME: add/remove formats you can handle */
|
||||||
#define VIDEO_SINK_CAPS \
|
#define VIDEO_SINK_CAPS \
|
||||||
GST_VIDEO_CAPS_RGBA "; " \
|
GST_VIDEO_CAPS_MAKE("{ I420, Y444, Y42B, UYVY, RGBA }")
|
||||||
GST_VIDEO_CAPS_ARGB "; " \
|
|
||||||
GST_VIDEO_CAPS_BGRA "; " \
|
|
||||||
GST_VIDEO_CAPS_ABGR "; " \
|
|
||||||
GST_VIDEO_CAPS_RGBx "; " \
|
|
||||||
GST_VIDEO_CAPS_xRGB "; " \
|
|
||||||
GST_VIDEO_CAPS_BGRx "; " \
|
|
||||||
GST_VIDEO_CAPS_xBGR "; " \
|
|
||||||
GST_VIDEO_CAPS_RGB "; " \
|
|
||||||
GST_VIDEO_CAPS_BGR "; " \
|
|
||||||
GST_VIDEO_CAPS_YUV("{ AYUV }")
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_replace_sink_template =
|
static GstStaticPadTemplate gst_replace_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
|
@ -25,9 +16,11 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
);
|
);
|
||||||
|
|
||||||
% base-init
|
% base-init
|
||||||
gst_element_class_add_static_pad_template (element_class,
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
&gst_replace_sink_template);
|
gst_static_pad_template_get (&gst_replace_sink_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
|
replace->sinkpad = gst_pad_new_from_static_template (
|
||||||
|
&gst_replace_sink_template, "sink");
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
);
|
);
|
||||||
|
|
||||||
% base-init
|
% base-init
|
||||||
gst_element_class_add_static_pad_template (element_class,
|
gst_element_class_add_pad_template (element_class,
|
||||||
&gst_replace_src_template);
|
gst_static_pad_template_get (&gst_replace_src_template);
|
||||||
% instance-init
|
% instance-init
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
|
@ -1,21 +1,12 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
|
GstPad *srcpad;
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
/* FIXME: add/remove formats you can handle */
|
/* FIXME: add/remove formats you can handle */
|
||||||
#define VIDEO_SRC_CAPS \
|
#define VIDEO_SRC_CAPS \
|
||||||
GST_VIDEO_CAPS_RGBA "; " \
|
GST_VIDEO_CAPS_MAKE("{ I420, Y444, Y42B, UYVY, RGBA }")
|
||||||
GST_VIDEO_CAPS_ARGB "; " \
|
|
||||||
GST_VIDEO_CAPS_BGRA "; " \
|
|
||||||
GST_VIDEO_CAPS_ABGR "; " \
|
|
||||||
GST_VIDEO_CAPS_RGBx "; " \
|
|
||||||
GST_VIDEO_CAPS_xRGB "; " \
|
|
||||||
GST_VIDEO_CAPS_BGRx "; " \
|
|
||||||
GST_VIDEO_CAPS_xBGR "; " \
|
|
||||||
GST_VIDEO_CAPS_RGB "; " \
|
|
||||||
GST_VIDEO_CAPS_BGR "; " \
|
|
||||||
GST_VIDEO_CAPS_YUV("{ AYUV }")
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_replace_src_template =
|
static GstStaticPadTemplate gst_replace_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
@ -25,8 +16,11 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
);
|
);
|
||||||
|
|
||||||
% base-init
|
% base-init
|
||||||
gst_element_class_add_static_pad_template (element_class,
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
&gst_replace_src_template);
|
gst_static_pad_template_get (&gst_replace_src_template));
|
||||||
|
% instance-init
|
||||||
|
replace->srcpad = gst_pad_new_from_static_template (
|
||||||
|
&gst_replace_src_template, "src");
|
||||||
% instance-init
|
% instance-init
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
Loading…
Reference in a new issue