geometrictransform: Remove empty GObject::finalize() implementations

Also don't use GST_DEBUG_FUNCPTR for GObject vfuncs
This commit is contained in:
Sebastian Dröge 2013-12-02 10:25:57 +01:00
parent 8de96a2fbb
commit 426c26f708
16 changed files with 32 additions and 147 deletions

View file

@ -110,13 +110,6 @@ gst_bulge_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -182,9 +175,8 @@ gst_bulge_class_init (GstBulgeClass * klass)
"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",
@ -192,8 +184,6 @@ gst_bulge_class_init (GstBulgeClass * klass)
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;
}

View file

@ -143,13 +143,6 @@ gst_circle_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -197,9 +190,8 @@ gst_circle_class_init (GstCircleClass * klass)
"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",

View file

@ -139,13 +139,6 @@ gst_circle_geometric_transform_get_property (GObject * object, guint prop_id,
}
}
/* Clean up */
static void
gst_circle_geometric_transform_finalize (GObject * obj)
{
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
/* GObject vmethod implementations */
static gboolean
@ -175,13 +168,8 @@ gst_circle_geometric_transform_class_init (GstCircleGeometricTransformClass *
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

View file

@ -190,9 +190,9 @@ gst_diffuse_class_init (GstDiffuseClass * klass)
"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",

View file

@ -371,10 +371,8 @@ gst_geometric_transform_class_init (gpointer klass, gpointer class_data)
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 =

View file

@ -143,13 +143,6 @@ gst_kaleidoscope_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -202,12 +195,8 @@ gst_kaleidoscope_class_init (GstKaleidoscopeClass * klass)
"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",

View file

@ -229,9 +229,9 @@ gst_marble_class_init (GstMarbleClass * klass)
"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",

View file

@ -161,13 +161,6 @@ gst_perspective_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -216,11 +209,8 @@ gst_perspective_class_init (GstPerspectiveClass * klass)
"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",

View file

@ -116,13 +116,6 @@ gst_pinch_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -183,9 +176,8 @@ gst_pinch_class_init (GstPinchClass * klass)
"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,

View file

@ -117,13 +117,6 @@ gst_rotate_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -191,9 +184,8 @@ gst_rotate_class_init (GstRotateClass * klass)
"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",

View file

@ -116,13 +116,6 @@ gst_sphere_get_property (GObject * object, guint prop_id,
}
}
/* 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,
@ -195,9 +188,8 @@ gst_sphere_class_init (GstSphereClass * klass)
"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",

View file

@ -193,8 +193,8 @@ gst_square_class_init (GstSquareClass * klass)
"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",

View file

@ -111,13 +111,6 @@ gst_stretch_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -184,8 +177,8 @@ gst_stretch_class_init (GstStretchClass * klass)
"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,
@ -194,8 +187,6 @@ gst_stretch_class_init (GstStretchClass * klass)
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;
}

View file

@ -57,13 +57,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_tunnel_debug);
#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)
@ -106,11 +99,9 @@ tunnel_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
static void
gst_tunnel_class_init (GstTunnelClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
GstGeometricTransformClass *gstgt_class;
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstgt_class = (GstGeometricTransformClass *) klass;
@ -121,8 +112,6 @@ gst_tunnel_class_init (GstTunnelClass * klass)
"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;
}

View file

@ -116,13 +116,6 @@ gst_twirl_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -173,9 +166,8 @@ gst_twirl_class_init (GstTwirlClass * klass)
"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",

View file

@ -141,13 +141,6 @@ gst_water_ripple_get_property (GObject * object, guint prop_id,
}
}
/* 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)
@ -203,11 +196,8 @@ gst_water_ripple_class_init (GstWaterRippleClass * klass)
"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",