static void gst_gamma_calculate_tables (GstGamma * gamma);
G_DEFINE_TYPE (GstGamma, gst_gamma, GST_TYPE_VIDEO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (gamma, "gamma", GST_RANK_NONE, GST_TYPE_GAMMA);
static void
gst_gamma_class_init (GstGammaClass * g_class)
GType gst_gamma_get_type(void);
+GST_ELEMENT_REGISTER_DECLARE (gamma);
+
G_END_DECLS
#endif /* __GST_VIDEO_GAMMA_H__ */
GST_TYPE_VIDEO_FILTER,
G_IMPLEMENT_INTERFACE (GST_TYPE_COLOR_BALANCE,
gst_video_balance_colorbalance_init));
+GST_ELEMENT_REGISTER_DEFINE (videobalance, "videobalance",
+ GST_RANK_NONE, GST_TYPE_VIDEO_BALANCE);
/*
* look-up tables (LUT).
GType gst_video_balance_get_type(void);
+GST_ELEMENT_REGISTER_DECLARE (videobalance);
+
G_END_DECLS
#endif /* __GST_VIDEO_BALANCE_H__ */
G_DEFINE_TYPE_WITH_CODE (GstVideoFlip, gst_video_flip, GST_TYPE_VIDEO_FILTER,
G_IMPLEMENT_INTERFACE (GST_TYPE_VIDEO_DIRECTION,
gst_video_flip_video_direction_interface_init));
+GST_ELEMENT_REGISTER_DEFINE (videoflip, "videoflip", GST_RANK_NONE,
+ GST_TYPE_VIDEO_FLIP);
static GstCaps *
gst_video_flip_transform_caps (GstBaseTransform * trans,
GType gst_video_flip_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (videoflip);
+
G_END_DECLS
#endif /* __GST_VIDEO_FLIP_H__ */
#define gst_video_median_parent_class parent_class
G_DEFINE_TYPE (GstVideoMedian, gst_video_median, GST_TYPE_VIDEO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (videomedian, "videomedian",
+ GST_RANK_NONE, GST_TYPE_VIDEO_MEDIAN);
static GstFlowReturn gst_video_median_transform_frame (GstVideoFilter * filter,
GstVideoFrame * in_frame, GstVideoFrame * out_frame);
GType gst_video_median_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (videomedian);
+
G_END_DECLS
#endif /* __GST_VIDEO_MEDIAN_H__ */
static gboolean
plugin_init (GstPlugin * plugin)
{
- return (gst_element_register (plugin, "gamma", GST_RANK_NONE, GST_TYPE_GAMMA)
- && gst_element_register (plugin, "videobalance", GST_RANK_NONE,
- GST_TYPE_VIDEO_BALANCE)
- && gst_element_register (plugin, "videoflip", GST_RANK_NONE,
- GST_TYPE_VIDEO_FLIP)
- && gst_element_register (plugin, "videomedian", GST_RANK_NONE,
- GST_TYPE_VIDEO_MEDIAN));
+ gboolean ret = FALSE;
+
+ ret |= GST_ELEMENT_REGISTER (gamma, plugin);
+ ret |= GST_ELEMENT_REGISTER (videobalance, plugin);
+ ret |= GST_ELEMENT_REGISTER (videoflip, plugin);
+ ret |= GST_ELEMENT_REGISTER (videomedian, plugin);
+
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,