Also don't use GST_DEBUG_FUNCPTR for GObject vfuncs
16 files changed:
-/* Clean up */
-static void
-gst_bulge_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
bulge_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
bulge_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Adds a protuberance in the center point",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
"Adds a protuberance in the center point",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_bulge_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_bulge_get_property);
-
+ gobject_class->set_property = gst_bulge_set_property;
+ gobject_class->get_property = gst_bulge_get_property;
g_object_class_install_property (gobject_class, PROP_ZOOM,
g_param_spec_double ("zoom", "zoom",
g_object_class_install_property (gobject_class, PROP_ZOOM,
g_param_spec_double ("zoom", "zoom",
1.0, 100.0, DEFAULT_ZOOM,
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
1.0, 100.0, DEFAULT_ZOOM,
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_bulge_finalize);
-
gstgt_class->map_func = bulge_map;
}
gstgt_class->map_func = bulge_map;
}
-/* Clean up */
-static void
-gst_circle_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
circle_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
circle_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Warps the picture into an arc shaped form",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Warps the picture into an arc shaped form",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_circle_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_circle_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_circle_get_property);
+ gobject_class->set_property = gst_circle_set_property;
+ gobject_class->get_property = gst_circle_get_property;
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
-/* Clean up */
-static void
-gst_circle_geometric_transform_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
/* GObject vmethod implementations */
static gboolean
/* GObject vmethod implementations */
static gboolean
parent_class = g_type_class_peek_parent (klass);
parent_class = g_type_class_peek_parent (klass);
- gobject_class->finalize =
- GST_DEBUG_FUNCPTR (gst_circle_geometric_transform_finalize);
- gobject_class->set_property =
- GST_DEBUG_FUNCPTR (gst_circle_geometric_transform_set_property);
- gobject_class->get_property =
- GST_DEBUG_FUNCPTR (gst_circle_geometric_transform_get_property);
-
+ gobject_class->set_property = gst_circle_geometric_transform_set_property;
+ gobject_class->get_property = gst_circle_geometric_transform_get_property;
/* FIXME I don't like the idea of x-center and y-center being in % and
* radius and intensity in absolute values, I think no one likes it, but
/* FIXME I don't like the idea of x-center and y-center being in % and
* radius and intensity in absolute values, I think no one likes it, but
"Diffuses the image by moving its pixels in random directions",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Diffuses the image by moving its pixels in random directions",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_diffuse_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_diffuse_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_diffuse_get_property);
+ gobject_class->finalize = gst_diffuse_finalize;
+ gobject_class->set_property = gst_diffuse_set_property;
+ gobject_class->get_property = gst_diffuse_get_property;
g_object_class_install_property (gobject_class, PROP_SCALE,
g_param_spec_double ("scale", "scale",
g_object_class_install_property (gobject_class, PROP_SCALE,
g_param_spec_double ("scale", "scale",
parent_class = g_type_class_peek_parent (klass);
parent_class = g_type_class_peek_parent (klass);
- obj_class->set_property =
- GST_DEBUG_FUNCPTR (gst_geometric_transform_set_property);
- obj_class->get_property =
- GST_DEBUG_FUNCPTR (gst_geometric_transform_get_property);
+ obj_class->set_property = gst_geometric_transform_set_property;
+ obj_class->get_property = gst_geometric_transform_get_property;
trans_class->stop = GST_DEBUG_FUNCPTR (gst_geometric_transform_stop);
trans_class->before_transform =
trans_class->stop = GST_DEBUG_FUNCPTR (gst_geometric_transform_stop);
trans_class->before_transform =
-/* Clean up */
-static void
-gst_kaleidoscope_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
kaleidoscope_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
kaleidoscope_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Applies 'kaleidoscope' geometric transform to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Applies 'kaleidoscope' geometric transform to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_kaleidoscope_finalize);
- gobject_class->set_property =
- GST_DEBUG_FUNCPTR (gst_kaleidoscope_set_property);
- gobject_class->get_property =
- GST_DEBUG_FUNCPTR (gst_kaleidoscope_get_property);
-
+ gobject_class->set_property = gst_kaleidoscope_set_property;
+ gobject_class->get_property = gst_kaleidoscope_get_property;
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
"Applies a marbling effect to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Applies a marbling effect to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_marble_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_marble_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_marble_get_property);
+ gobject_class->finalize = gst_marble_finalize;
+ gobject_class->set_property = gst_marble_set_property;
+ gobject_class->get_property = gst_marble_get_property;
g_object_class_install_property (gobject_class, PROP_XSCALE,
g_param_spec_double ("x-scale", "x-scale",
g_object_class_install_property (gobject_class, PROP_XSCALE,
g_param_spec_double ("x-scale", "x-scale",
-/* Clean up */
-static void
-gst_perspective_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
perspective_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
perspective_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Apply a 2D perspective transform",
"Antonio Ospite <ospite@studenti.unina.it>");
"Apply a 2D perspective transform",
"Antonio Ospite <ospite@studenti.unina.it>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_perspective_finalize);
- gobject_class->set_property =
- GST_DEBUG_FUNCPTR (gst_perspective_set_property);
- gobject_class->get_property =
- GST_DEBUG_FUNCPTR (gst_perspective_get_property);
+ gobject_class->set_property = gst_perspective_set_property;
+ gobject_class->get_property = gst_perspective_get_property;
g_object_class_install_property (gobject_class, PROP_MATRIX,
g_param_spec_value_array ("matrix",
g_object_class_install_property (gobject_class, PROP_MATRIX,
g_param_spec_value_array ("matrix",
-/* Clean up */
-static void
-gst_pinch_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
pinch_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
pinch_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Applies 'pinch' geometric transform to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Applies 'pinch' geometric transform to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_pinch_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_pinch_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_pinch_get_property);
+ gobject_class->set_property = gst_pinch_set_property;
+ gobject_class->get_property = gst_pinch_get_property;
g_object_class_install_property (gobject_class, PROP_INTENSITY,
g_object_class_install_property (gobject_class, PROP_INTENSITY,
-/* Clean up */
-static void
-gst_rotate_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
rotate_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
rotate_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Rotates the picture by an arbitrary angle",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Rotates the picture by an arbitrary angle",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_rotate_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_rotate_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_rotate_get_property);
+ gobject_class->set_property = gst_rotate_set_property;
+ gobject_class->get_property = gst_rotate_get_property;
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
-/* Clean up */
-static void
-gst_sphere_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
/* TODO we could have horizontal and vertical 'radius' */
static gboolean
sphere_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
/* TODO we could have horizontal and vertical 'radius' */
static gboolean
sphere_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
"Applies 'sphere' geometric transform to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Applies 'sphere' geometric transform to the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_sphere_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_sphere_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_sphere_get_property);
+ gobject_class->set_property = gst_sphere_set_property;
+ gobject_class->get_property = gst_sphere_get_property;
g_object_class_install_property (gobject_class, PROP_REFRACTION,
g_param_spec_double ("refraction", "refraction",
g_object_class_install_property (gobject_class, PROP_REFRACTION,
g_param_spec_double ("refraction", "refraction",
"Distort center part of the image into a square",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
"Distort center part of the image into a square",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_square_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_square_get_property);
+ gobject_class->set_property = gst_square_set_property;
+ gobject_class->get_property = gst_square_get_property;
g_object_class_install_property (gobject_class, PROP_WIDTH,
g_param_spec_double ("width", "Width",
g_object_class_install_property (gobject_class, PROP_WIDTH,
g_param_spec_double ("width", "Width",
-/* Clean up */
-static void
-gst_stretch_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
stretch_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
stretch_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Stretch the image in a circle around the center point",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
"Stretch the image in a circle around the center point",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_stretch_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_stretch_get_property);
+ gobject_class->set_property = gst_stretch_set_property;
+ gobject_class->get_property = gst_stretch_get_property;
g_object_class_install_property (gobject_class, PROP_INTENSITY,
g_object_class_install_property (gobject_class, PROP_INTENSITY,
0.0, 1.0, DEFAULT_INTENSITY,
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
0.0, 1.0, DEFAULT_INTENSITY,
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_stretch_finalize);
-
gstgt_class->map_func = stretch_map;
}
gstgt_class->map_func = stretch_map;
}
#define gst_tunnel_parent_class parent_class
G_DEFINE_TYPE (GstTunnel, gst_tunnel, GST_TYPE_CIRCLE_GEOMETRIC_TRANSFORM);
#define gst_tunnel_parent_class parent_class
G_DEFINE_TYPE (GstTunnel, gst_tunnel, GST_TYPE_CIRCLE_GEOMETRIC_TRANSFORM);
-/* Clean up */
-static void
-gst_tunnel_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
tunnel_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
tunnel_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static void
gst_tunnel_class_init (GstTunnelClass * klass)
{
static void
gst_tunnel_class_init (GstTunnelClass * klass)
{
- GObjectClass *gobject_class;
GstElementClass *gstelement_class;
GstGeometricTransformClass *gstgt_class;
GstElementClass *gstelement_class;
GstGeometricTransformClass *gstgt_class;
- gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstgt_class = (GstGeometricTransformClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstgt_class = (GstGeometricTransformClass *) klass;
"Transform/Effect/Video",
"Light tunnel effect", "Filippo Argiolas <filippo.argiolas@gmail.com>");
"Transform/Effect/Video",
"Light tunnel effect", "Filippo Argiolas <filippo.argiolas@gmail.com>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_tunnel_finalize);
-
gstgt_class->map_func = tunnel_map;
}
gstgt_class->map_func = tunnel_map;
}
-/* Clean up */
-static void
-gst_twirl_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
twirl_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
twirl_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Twists the image from the center out",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Twists the image from the center out",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_twirl_finalize);
- gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_twirl_set_property);
- gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_twirl_get_property);
+ gobject_class->set_property = gst_twirl_set_property;
+ gobject_class->get_property = gst_twirl_get_property;
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
g_object_class_install_property (gobject_class, PROP_ANGLE,
g_param_spec_double ("angle", "angle",
-/* Clean up */
-static void
-gst_water_ripple_finalize (GObject * obj)
-{
- G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
static gboolean
water_ripple_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
static gboolean
water_ripple_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
"Creates a water ripple effect on the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
"Creates a water ripple effect on the image",
"Thiago Santos<thiago.sousa.santos@collabora.co.uk>");
- gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_water_ripple_finalize);
- gobject_class->set_property =
- GST_DEBUG_FUNCPTR (gst_water_ripple_set_property);
- gobject_class->get_property =
- GST_DEBUG_FUNCPTR (gst_water_ripple_get_property);
+ gobject_class->set_property = gst_water_ripple_set_property;
+ gobject_class->get_property = gst_water_ripple_get_property;
g_object_class_install_property (gobject_class, PROP_AMPLITUDE,
g_param_spec_double ("amplitude", "amplitude", "amplitude",
g_object_class_install_property (gobject_class, PROP_AMPLITUDE,
g_param_spec_double ("amplitude", "amplitude", "amplitude",