gaudi: remove unused property

This commit is contained in:
Luis de Bethencourt 2015-04-22 13:55:06 +01:00
parent 7e3cd63f87
commit 2fbbdb5529
12 changed files with 1 additions and 88 deletions

View file

@ -91,7 +91,6 @@ enum
{
PROP_0 = 0,
PROP_ADJUSTMENT,
PROP_SILENT
};
/* Initializations */
@ -153,10 +152,6 @@ gst_burn_class_init (GstBurnClass * klass)
"Adjustment parameter", 0, 256, DEFAULT_ADJUSTMENT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
g_object_class_install_property (gobject_class, PROP_SILENT,
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
vfilter_class->transform_frame = GST_DEBUG_FUNCPTR (gst_burn_transform_frame);
}
@ -169,7 +164,6 @@ static void
gst_burn_init (GstBurn * filter)
{
filter->adjustment = DEFAULT_ADJUSTMENT;
filter->silent = FALSE;
}
static void
@ -179,9 +173,6 @@ gst_burn_set_property (GObject * object, guint prop_id,
GstBurn *filter = GST_BURN (object);
switch (prop_id) {
case PROP_SILENT:
filter->silent = g_value_get_boolean (value);
break;
case PROP_ADJUSTMENT:
filter->adjustment = g_value_get_uint (value);
break;
@ -199,9 +190,6 @@ gst_burn_get_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (filter);
switch (prop_id) {
case PROP_SILENT:
g_value_set_boolean (value, filter->silent);
break;
case PROP_ADJUSTMENT:
g_value_set_uint (value, filter->adjustment);
break;

View file

@ -73,7 +73,6 @@ struct _GstBurn
/* < private > */
gint adjustment;
gboolean silent;
};
struct _GstBurnClass

View file

@ -1,6 +1,6 @@
/*
* GStreamer
* Copyright (C) <2010-2012> Luis de Bethencourt <luis@debethencourt.com>
* Copyright (C) <2010> Luis de Bethencourt <luis@debethencourt.com>
*
* Chromium - burning chrome video effect.
* Based on Pete Warden's FreeFrame plugin with the same name.
@ -90,7 +90,6 @@ enum
PROP_0 = 0,
PROP_EDGE_A,
PROP_EDGE_B,
PROP_SILENT
};
/* Initializations */
@ -172,10 +171,6 @@ gst_chromium_class_init (GstChromiumClass * klass)
"Second edge parameter", 0, 256, DEFAULT_EDGE_B,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
g_object_class_install_property (gobject_class, PROP_SILENT,
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_chromium_transform_frame);
}
@ -190,7 +185,6 @@ gst_chromium_init (GstChromium * filter)
{
filter->edge_a = DEFAULT_EDGE_A;
filter->edge_b = DEFAULT_EDGE_B;
filter->silent = FALSE;
setup_cos_table ();
}
@ -202,9 +196,6 @@ gst_chromium_set_property (GObject * object, guint prop_id,
GstChromium *filter = GST_CHROMIUM (object);
switch (prop_id) {
case PROP_SILENT:
filter->silent = g_value_get_boolean (value);
break;
case PROP_EDGE_A:
filter->edge_a = g_value_get_uint (value);
break;
@ -225,9 +216,6 @@ gst_chromium_get_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (filter);
switch (prop_id) {
case PROP_SILENT:
g_value_set_boolean (value, filter->silent);
break;
case PROP_EDGE_A:
g_value_set_uint (value, filter->edge_a);
break;
@ -356,7 +344,6 @@ transform (guint32 * src, guint32 * dest, gint video_area,
green = CLAMP (green, 0, 255);
blue = CLAMP (blue, 0, 255);
*dest++ = (red << 16) | (green << 8) | blue;
}
}

View file

@ -71,7 +71,6 @@ struct GstChromium
/* < private > */
gint edge_a, edge_b;
gboolean silent;
};
struct GstChromiumClass

View file

@ -89,7 +89,6 @@ enum
{
PROP_0,
PROP_ERODE,
PROP_SILENT
};
/* Initializations */
@ -154,10 +153,6 @@ gst_dilate_class_init (GstDilateClass * klass)
g_param_spec_boolean ("erode", "Erode", "Erode parameter", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
g_object_class_install_property (gobject_class, PROP_SILENT,
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_dilate_transform_frame);
}
@ -171,7 +166,6 @@ static void
gst_dilate_init (GstDilate * filter)
{
filter->erode = DEFAULT_ERODE;
filter->silent = FALSE;
}
static void
@ -181,9 +175,6 @@ gst_dilate_set_property (GObject * object, guint prop_id,
GstDilate *filter = GST_DILATE (object);
switch (prop_id) {
case PROP_SILENT:
filter->silent = g_value_get_boolean (value);
break;
case PROP_ERODE:
filter->erode = g_value_get_boolean (value);
break;
@ -201,9 +192,6 @@ gst_dilate_get_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (filter);
switch (prop_id) {
case PROP_SILENT:
g_value_set_boolean (value, filter->silent);
break;
case PROP_ERODE:
g_value_set_boolean (value, filter->erode);
break;

View file

@ -72,7 +72,6 @@ struct _GstDilate
GstVideoFilter videofilter;
/* < private > */
gboolean silent;
gboolean erode;
};

View file

@ -88,7 +88,6 @@ enum
enum
{
PROP_0,
PROP_SILENT
};
/* Initializations */
@ -145,10 +144,6 @@ gst_dodge_class_init (GstDodgeClass * klass)
gobject_class->get_property = gst_dodge_get_property;
gobject_class->finalize = gst_dodge_finalize;
g_object_class_install_property (gobject_class, PROP_SILENT,
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_dodge_transform_frame);
}
@ -161,19 +156,13 @@ gst_dodge_class_init (GstDodgeClass * klass)
static void
gst_dodge_init (GstDodge * filter)
{
filter->silent = FALSE;
}
static void
gst_dodge_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstDodge *filter = GST_DODGE (object);
switch (prop_id) {
case PROP_SILENT:
filter->silent = g_value_get_boolean (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@ -184,18 +173,11 @@ static void
gst_dodge_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
GstDodge *filter = GST_DODGE (object);
GST_OBJECT_LOCK (filter);
switch (prop_id) {
case PROP_SILENT:
g_value_set_boolean (value, filter->silent);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
GST_OBJECT_UNLOCK (filter);
}
static void

View file

@ -70,9 +70,6 @@ typedef struct _GstDodgeClass GstDodgeClass;
struct _GstDodge
{
GstVideoFilter videofilter;
/* < private > */
gboolean silent;
};
struct _GstDodgeClass

View file

@ -88,7 +88,6 @@ enum
{
PROP_0 = 0,
PROP_FACTOR,
PROP_SILENT
};
/* Initializations */
@ -155,10 +154,6 @@ gst_exclusion_class_init (GstExclusionClass * klass)
"Exclusion factor parameter", 0, 175, DEFAULT_FACTOR,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
g_object_class_install_property (gobject_class, PROP_SILENT,
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_exclusion_transform_frame);
}
@ -172,7 +167,6 @@ static void
gst_exclusion_init (GstExclusion * filter)
{
filter->factor = DEFAULT_FACTOR;
filter->silent = FALSE;
}
static void
@ -182,9 +176,6 @@ gst_exclusion_set_property (GObject * object, guint prop_id,
GstExclusion *filter = GST_EXCLUSION (object);
switch (prop_id) {
case PROP_SILENT:
filter->silent = g_value_get_boolean (value);
break;
case PROP_FACTOR:
filter->factor = g_value_get_uint (value);
break;
@ -202,9 +193,6 @@ gst_exclusion_get_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (filter);
switch (prop_id) {
case PROP_SILENT:
g_value_set_boolean (value, filter->silent);
break;
case PROP_FACTOR:
g_value_set_uint (value, filter->factor);
break;

View file

@ -73,7 +73,6 @@ struct _GstExclusion
/* < private > */
gint factor;
gboolean silent;
};
struct _GstExclusionClass

View file

@ -88,7 +88,6 @@ enum
PROP_THRESHOLD,
PROP_START,
PROP_END,
PROP_SILENT
};
/* Initializations */
@ -168,10 +167,6 @@ gst_solarize_class_init (GstSolarizeClass * klass)
"End parameter", 0, 256, DEFAULT_END,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
g_object_class_install_property (gobject_class, PROP_SILENT,
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_solarize_transform_frame);
}
@ -187,7 +182,6 @@ gst_solarize_init (GstSolarize * filter)
filter->threshold = DEFAULT_THRESHOLD;
filter->start = DEFAULT_START;
filter->end = DEFAULT_END;
filter->silent = FALSE;
}
static void
@ -197,9 +191,6 @@ gst_solarize_set_property (GObject * object, guint prop_id,
GstSolarize *filter = GST_SOLARIZE (object);
switch (prop_id) {
case PROP_SILENT:
filter->silent = g_value_get_boolean (value);
break;
case PROP_THRESHOLD:
filter->threshold = g_value_get_uint (value);
break;
@ -223,9 +214,6 @@ gst_solarize_get_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (filter);
switch (prop_id) {
case PROP_SILENT:
g_value_set_boolean (value, filter->silent);
break;
case PROP_THRESHOLD:
g_value_set_uint (value, filter->threshold);
break;

View file

@ -73,7 +73,6 @@ struct _GstSolarize
/* < private > */
gint threshold, start, end;
gboolean silent;
};
struct _GstSolarizeClass