mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
bbe3eecd3f
commit
279502cd8e
3 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
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,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -158,6 +158,7 @@ static void gst_lcms_process_rgb (GstLcms * lcms, GstVideoFrame * inframe,
|
||||||
GstVideoFrame * outframe);
|
GstVideoFrame * outframe);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstLcms, gst_lcms, GST_TYPE_VIDEO_FILTER);
|
G_DEFINE_TYPE (GstLcms, gst_lcms, GST_TYPE_VIDEO_FILTER);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (lcms, "lcms", GST_RANK_NONE, GST_TYPE_LCMS);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_lcms_class_init (GstLcmsClass * klass)
|
gst_lcms_class_init (GstLcmsClass * klass)
|
||||||
|
|
|
@ -98,5 +98,7 @@ struct _GstLcmsClass
|
||||||
G_GNUC_INTERNAL GType gst_lcms_get_type (void);
|
G_GNUC_INTERNAL GType gst_lcms_get_type (void);
|
||||||
G_GNUC_INTERNAL GType gst_lcms_intent_get_type (void);
|
G_GNUC_INTERNAL GType gst_lcms_intent_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (lcms);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif /* __GST_LCMS_H__ */
|
#endif /* __GST_LCMS_H__ */
|
||||||
|
|
Loading…
Reference in a new issue