mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 06:38:19 +00:00
alpha: allow per feature registration
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>
This commit is contained in:
parent
d8fa279161
commit
aaa5a140d7
2 changed files with 4 additions and 1 deletions
|
@ -184,6 +184,7 @@ static void gst_alpha_finalize (GObject * object);
|
||||||
|
|
||||||
#define gst_alpha_parent_class parent_class
|
#define gst_alpha_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstAlpha, gst_alpha, GST_TYPE_VIDEO_FILTER);
|
G_DEFINE_TYPE (GstAlpha, gst_alpha, GST_TYPE_VIDEO_FILTER);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (alpha, "alpha", GST_RANK_NONE, GST_TYPE_ALPHA);
|
||||||
|
|
||||||
#define GST_TYPE_ALPHA_METHOD (gst_alpha_method_get_type())
|
#define GST_TYPE_ALPHA_METHOD (gst_alpha_method_get_type())
|
||||||
static GType
|
static GType
|
||||||
|
@ -2606,7 +2607,7 @@ not_negotiated:
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
return gst_element_register (plugin, "alpha", GST_RANK_NONE, GST_TYPE_ALPHA);
|
return GST_ELEMENT_REGISTER (alpha, plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -92,6 +92,8 @@ struct _GstAlpha
|
||||||
guint noise_level2;
|
guint noise_level2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (alpha);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_ALPHA_H__ */
|
#endif /* __GST_ALPHA_H__ */
|
||||||
|
|
Loading…
Reference in a new issue