colormanagement: 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:
Stéphane Cerveau 2021-02-17 11:43:33 +01:00 committed by GStreamer Marge Bot
parent bbe3eecd3f
commit 279502cd8e
3 changed files with 4 additions and 1 deletions

View file

@ -27,7 +27,7 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "lcms", GST_RANK_NONE, GST_TYPE_LCMS);
return GST_ELEMENT_REGISTER (lcms, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -158,6 +158,7 @@ static void gst_lcms_process_rgb (GstLcms * lcms, GstVideoFrame * inframe,
GstVideoFrame * outframe);
G_DEFINE_TYPE (GstLcms, gst_lcms, GST_TYPE_VIDEO_FILTER);
GST_ELEMENT_REGISTER_DEFINE (lcms, "lcms", GST_RANK_NONE, GST_TYPE_LCMS);
static void
gst_lcms_class_init (GstLcmsClass * klass)

View file

@ -98,5 +98,7 @@ struct _GstLcmsClass
G_GNUC_INTERNAL GType gst_lcms_get_type (void);
G_GNUC_INTERNAL GType gst_lcms_intent_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (lcms);
G_END_DECLS
#endif /* __GST_LCMS_H__ */