diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-25 15:22:15 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-04-11 16:16:55 +0000 |
commit | 891be511057dbcdf1f38740e55cbd376c4b25894 (patch) | |
tree | b077e8cd0b584ebe2a10950ef2398ab3f60b48b4 /gst/gaudieffects/gstdilate.c | |
parent | 7f60138ef68e2a1fef8ccd4ff3710dfccd243314 (diff) | |
download | gstreamer-plugins-bad-891be511057dbcdf1f38740e55cbd376c4b25894.tar.gz |
gst-plugins: 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/2110>
Diffstat (limited to 'gst/gaudieffects/gstdilate.c')
-rw-r--r-- | gst/gaudieffects/gstdilate.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/gst/gaudieffects/gstdilate.c b/gst/gaudieffects/gstdilate.c index 2a1e77521..aec92b14f 100644 --- a/gst/gaudieffects/gstdilate.c +++ b/gst/gaudieffects/gstdilate.c @@ -64,7 +64,6 @@ #include <gst/gst.h> #include <math.h> -#include "gstplugin.h" #include "gstdilate.h" GST_DEBUG_CATEGORY_STATIC (gst_dilate_debug); @@ -78,6 +77,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_dilate_debug); #define gst_dilate_parent_class parent_class G_DEFINE_TYPE (GstDilate, gst_dilate, GST_TYPE_VIDEO_FILTER); +GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (dilate, "dilate", GST_RANK_NONE, + GST_TYPE_DILATE, GST_DEBUG_CATEGORY_INIT (gst_dilate_debug, "dilate", 0, + "Template dilate")); /* Filter signals and args. */ enum @@ -250,18 +252,6 @@ gst_dilate_transform_frame (GstVideoFilter * vfilter, return GST_FLOW_OK; } -/* Entry point to initialize the plug-in. - * Register the element factories and other features. */ -gboolean -gst_dilate_plugin_init (GstPlugin * dilate) -{ - /* debug category for fltering log messages */ - GST_DEBUG_CATEGORY_INIT (gst_dilate_debug, "dilate", 0, "Template dilate"); - - return gst_element_register (dilate, "dilate", GST_RANK_NONE, - GST_TYPE_DILATE); -} - /*** Now the image processing work.... ***/ /* Return luminance of the color */ |