mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-02 12:45:51 +00:00
iqa: 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-bad/-/merge_requests/2038>
This commit is contained in:
parent
7e499b9a66
commit
72de78f62f
|
@ -175,7 +175,10 @@ gst_iqa_mode_flags_get_type (void)
|
||||||
/* GstIqa */
|
/* GstIqa */
|
||||||
#define gst_iqa_parent_class parent_class
|
#define gst_iqa_parent_class parent_class
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstIqa, gst_iqa, GST_TYPE_VIDEO_AGGREGATOR,
|
G_DEFINE_TYPE_WITH_CODE (GstIqa, gst_iqa, GST_TYPE_VIDEO_AGGREGATOR,
|
||||||
G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY, gst_iqa_child_proxy_init));
|
G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY, gst_iqa_child_proxy_init);
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_iqa_debug, "iqa", 0, "iqa");
|
||||||
|
);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (iqa, "iqa", GST_RANK_PRIMARY, GST_TYPE_IQA);
|
||||||
|
|
||||||
#ifdef HAVE_DSSIM
|
#ifdef HAVE_DSSIM
|
||||||
inline static unsigned char
|
inline static unsigned char
|
||||||
|
@ -510,9 +513,7 @@ gst_iqa_init (GstIqa * self)
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_iqa_debug, "iqa", 0, "iqa");
|
return GST_ELEMENT_REGISTER (iqa, plugin);
|
||||||
|
|
||||||
return gst_element_register (plugin, "iqa", GST_RANK_PRIMARY, GST_TYPE_IQA);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -61,6 +61,8 @@ struct _GstIqaClass
|
||||||
|
|
||||||
GType gst_iqa_get_type (void);
|
GType gst_iqa_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (iqa);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif /* __GST_IQA_H__ */
|
#endif /* __GST_IQA_H__ */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue