a14b6a1dad41a60b12c8a317eab7d7e7e93ba880
diff --git a/gst/gaudieffects/gstburn.c b/gst/gaudieffects/gstburn.c
index 08984b5..c99433b 100644
--- a/gst/gaudieffects/gstburn.c
+++ b/gst/gaudieffects/gstburn.c
@@ -87,16 +87,21 @@ enum
 
 enum
 {
-  PROP_0,
+  PROP_0 = 0,
+  PROP_ADJUSTMENT,
   PROP_SILENT
 };
 
 /* Initializations */
 
+#define DEFAULT_ADJUSTMENT 175
+
 static gint gate_int (gint value, gint min, gint max);
-static void transform (guint32 * src, guint32 * dest, gint video_area);
+static void transform (guint32 * src, guint32 * dest, gint video_area,
+    gint adjustment);
 
 /* The capabilities of the inputs and outputs. */
+
 static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
@@ -150,6 +155,11 @@ gst_burn_class_init (GstBurnClass * klass)
   gobject_class->set_property = gst_burn_set_property;
   gobject_class->get_property = gst_burn_get_property;
 
+  g_object_class_install_property (gobject_class, PROP_ADJUSTMENT,
+      g_param_spec_uint ("adjustment", "Adjustment",
+          "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));
@@ -166,6 +176,7 @@ gst_burn_class_init (GstBurnClass * klass)
 static void
 gst_burn_init (GstBurn * filter, GstBurnClass * gclass)
 {
+  filter->adjustment = DEFAULT_ADJUSTMENT;
   filter->silent = FALSE;
 }
 
@@ -179,6 +190,9 @@ gst_burn_set_property (GObject * object, guint prop_id,
     case PROP_SILENT:
       filter->silent = g_value_get_boolean (value);
       break;
+    case PROP_ADJUSTMENT:
+      filter->adjustment = g_value_get_uint (value);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -195,6 +209,9 @@ gst_burn_get_property (GObject * object, guint prop_id,
     case PROP_SILENT:
       g_value_set_boolean (value, filter->silent);
       break;
+    case PROP_ADJUSTMENT:
+      g_value_set_uint (value, filter->adjustment);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -226,12 +243,14 @@ gst_burn_transform (GstBaseTransform * btrans,
     GstBuffer * in_buf, GstBuffer * out_buf)
 {
   GstBurn *filter = GST_BURN (btrans);
-  gint video_size;
+  gint video_size, adjustment;
   guint32 *src = (guint32 *) GST_BUFFER_DATA (in_buf);
   guint32 *dest = (guint32 *) GST_BUFFER_DATA (out_buf);
 
   video_size = filter->width * filter->height;
-  transform (src, dest, video_size);
+  adjustment = filter->adjustment;
+
+  transform (src, dest, video_size, adjustment);
 
   return GST_FLOW_OK;
 }
@@ -248,7 +267,6 @@ gst_burn_plugin_init (GstPlugin * burn)
 }
 
 /*** Now the image processing work.... ***/
-
 /* Keep the values inbounds. */
 static gint
 gate_int (gint value, gint min, gint max)
@@ -264,11 +282,10 @@ gate_int (gint value, gint min, gint max)
 
 /* Transform processes each frame. */
 static void
-transform (guint32 * src, guint32 * dest, gint video_area)
+transform (guint32 * src, guint32 * dest, gint video_area, gint adjustment)
 {
   guint32 in, red, green, blue;
   gint x;
-  gint adjustment = 175;
 
   for (x = 0; x < video_area; x++) {
     in = *src++;
diff --git a/gst/gaudieffects/gstburn.h b/gst/gaudieffects/gstburn.h
index d6b9d4c..1a3ed58 100644
--- a/gst/gaudieffects/gstburn.h
+++ b/gst/gaudieffects/gstburn.h
@@ -75,6 +75,7 @@ struct _GstBurn
 
   gint width, height;
 
+  gint adjustment;
   gboolean silent;
 };
 
diff --git a/gst/gaudieffects/gstchromium.c b/gst/gaudieffects/gstchromium.c
index 4f748ff..ab387ad 100644
--- a/gst/gaudieffects/gstchromium.c
+++ b/gst/gaudieffects/gstchromium.c
@@ -87,12 +87,17 @@ enum
 
 enum
 {
-  PROP_0,
+  PROP_0 = 0,
+  PROP_EDGE_A,
+  PROP_EDGE_B,
   PROP_SILENT
 };
 
 /* Initializations */
 
+#define DEFAULT_EDGE_A 200
+#define DEFAULT_EDGE_B 1
+
 const float pi = 3.141582f;
 
 gint cosTablePi = 512;
@@ -106,7 +111,8 @@ static gint gate_int (gint value, gint min, gint max);
 void setup_cos_table (void);
 static gint cos_from_table (int angle);
 static inline int abs_int (int val);
-static void transform (guint32 * src, guint32 * dest, gint video_area);
+static void transform (guint32 * src, guint32 * dest, gint video_area,
+    gint edge_a, gint edge_b);
 
 /* The capabilities of the inputs and outputs. */
 
@@ -164,6 +170,16 @@ gst_chromium_class_init (GstChromiumClass * klass)
   gobject_class->set_property = gst_chromium_set_property;
   gobject_class->get_property = gst_chromium_get_property;
 
+  g_object_class_install_property (gobject_class, PROP_EDGE_A,
+      g_param_spec_uint ("edge-a", "Edge A",
+          "First edge parameter", 0, 256, DEFAULT_EDGE_A,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
+
+  g_object_class_install_property (gobject_class, PROP_EDGE_B,
+      g_param_spec_uint ("edge-b", "Edge B",
+          "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));
@@ -180,6 +196,8 @@ gst_chromium_class_init (GstChromiumClass * klass)
 static void
 gst_chromium_init (GstChromium * filter, GstChromiumClass * gclass)
 {
+  filter->edge_a = DEFAULT_EDGE_A;
+  filter->edge_b = DEFAULT_EDGE_B;
   filter->silent = FALSE;
 
   setup_cos_table ();
@@ -195,6 +213,12 @@ gst_chromium_set_property (GObject * object, guint 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;
+    case PROP_EDGE_B:
+      filter->edge_b = g_value_get_uint (value);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -207,14 +231,22 @@ gst_chromium_get_property (GObject * object, guint prop_id,
 {
   GstChromium *filter = GST_CHROMIUM (object);
 
+  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;
+    case PROP_EDGE_B:
+      g_value_set_uint (value, filter->edge_b);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
   }
+  GST_OBJECT_UNLOCK (filter);
 }
 
 /* GstElement vmethod implementations */
@@ -247,7 +279,7 @@ gst_chromium_transform (GstBaseTransform * btrans,
   guint32 *dest = (guint32 *) GST_BUFFER_DATA (out_buf);
 
   video_size = filter->width * filter->height;
-  transform (src, dest, video_size);
+  transform (src, dest, video_size, filter->edge_a, filter->edge_b);
 
   return GST_FLOW_OK;
 }
@@ -266,7 +298,6 @@ gst_chromium_plugin_init (GstPlugin * chromium)
 }
 
 /*** Now the image processing work.... ***/
-
 /* Set up the cosine table. */
 void
 setup_cos_table (void)
@@ -313,14 +344,11 @@ cos_from_table (int angle)
 
 /* Transform processes each frame. */
 static void
-transform (guint32 * src, guint32 * dest, gint video_area)
+transform (guint32 * src, guint32 * dest, gint video_area,
+    gint edge_a, gint edge_b)
 {
   guint32 in, red, green, blue;
   gint x;
-  guint32 edge_a, edge_b;
-
-  edge_a = 200;
-  edge_b = 1;
 
   for (x = 0; x < video_area; x++) {
     in = *src++;
diff --git a/gst/gaudieffects/gstchromium.h b/gst/gaudieffects/gstchromium.h
index 2cd63cd..6629250 100644
--- a/gst/gaudieffects/gstchromium.h
+++ b/gst/gaudieffects/gstchromium.h
@@ -72,8 +72,10 @@ struct _GstChromium
   GstVideoFilter videofilter;
 
   /* < private > */
+
   gint width, height;
 
+  gint edge_a, edge_b;
   gboolean silent;
 };
 
diff --git a/gst/gaudieffects/gstexclusion.c b/gst/gaudieffects/gstexclusion.c
index 59325d7..dafdc1f 100644
--- a/gst/gaudieffects/gstexclusion.c
+++ b/gst/gaudieffects/gstexclusion.c
@@ -87,14 +87,18 @@ enum
 
 enum
 {
-  PROP_0,
+  PROP_0 = 0,
+  PROP_FACTOR,
   PROP_SILENT
 };
 
 /* Initializations */
 
+#define DEFAULT_FACTOR 175
+
 static gint gate_int (gint value, gint min, gint max);
-static void transform (guint32 * src, guint32 * dest, gint video_area);
+static void transform (guint32 * src, guint32 * dest, gint video_area,
+    gint factor);
 
 /* The capabilities of the inputs and outputs. */
 
@@ -152,6 +156,11 @@ gst_exclusion_class_init (GstExclusionClass * klass)
   gobject_class->set_property = gst_exclusion_set_property;
   gobject_class->get_property = gst_exclusion_get_property;
 
+  g_object_class_install_property (gobject_class, PROP_FACTOR,
+      g_param_spec_uint ("factor", "Factor",
+          "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));
@@ -168,6 +177,7 @@ gst_exclusion_class_init (GstExclusionClass * klass)
 static void
 gst_exclusion_init (GstExclusion * filter, GstExclusionClass * gclass)
 {
+  filter->factor = DEFAULT_FACTOR;
   filter->silent = FALSE;
 }
 
@@ -181,6 +191,9 @@ gst_exclusion_set_property (GObject * object, guint prop_id,
     case PROP_SILENT:
       filter->silent = g_value_get_boolean (value);
       break;
+    case PROP_FACTOR:
+      filter->factor = g_value_get_uint (value);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -193,14 +206,19 @@ gst_exclusion_get_property (GObject * object, guint prop_id,
 {
   GstExclusion *filter = GST_EXCLUSION (object);
 
+  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;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
   }
+  GST_OBJECT_UNLOCK (filter);
 }
 
 /* GstElement vmethod implementations */
@@ -232,8 +250,7 @@ gst_exclusion_transform (GstBaseTransform * btrans,
   guint32 *dest = (guint32 *) GST_BUFFER_DATA (out_buf);
 
   video_size = filter->width * filter->height;
-
-  transform (src, dest, video_size);
+  transform (src, dest, video_size, filter->factor);
 
   return GST_FLOW_OK;
 }
@@ -252,7 +269,6 @@ gst_exclusion_plugin_init (GstPlugin * exclusion)
 }
 
 /*** Now the image processing work.... ***/
-
 /* Keep the values inbounds. */
 static gint
 gate_int (gint value, gint min, gint max)
@@ -268,11 +284,10 @@ gate_int (gint value, gint min, gint max)
 
 /* Transform processes each frame. */
 static void
-transform (guint32 * src, guint32 * dest, gint video_area)
+transform (guint32 * src, guint32 * dest, gint video_area, gint factor)
 {
   guint32 in, red, green, blue;
   gint x;
-  gint factor = 175;
 
   for (x = 0; x < video_area; x++) {
     in = *src++;
diff --git a/gst/gaudieffects/gstexclusion.h b/gst/gaudieffects/gstexclusion.h
index 0ff7f96..b47eef1 100644
--- a/gst/gaudieffects/gstexclusion.h
+++ b/gst/gaudieffects/gstexclusion.h
@@ -75,6 +75,7 @@ struct _GstExclusion
 
   gint width, height;
 
+  gint factor;
   gboolean silent;
 };
 
diff --git a/gst/gaudieffects/gstplugin.h b/gst/gaudieffects/gstplugin.h
index dcfacbd..f1fe4ed 100644
--- a/gst/gaudieffects/gstplugin.h
+++ b/gst/gaudieffects/gstplugin.h
@@ -2,7 +2,7 @@
  * GStreamer
  * Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org>
  * Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
- * Copyright (C) 2010 Luis de Bethencourt <luis@debethencourt.com>
+ * Copyright (C) YEAR AUTHOR_NAME AUTHOR_EMAIL
  * 
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -43,21 +43,44 @@
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef __GST_GAUDI_EFFECTS_H__
-#define __GST_GAUDI_EFFECTS_H__
+#ifndef __GST_PLUGIN_TEMPLATE_H__
+#define __GST_PLUGIN_TEMPLATE_H__
 
 #include <gst/gst.h>
 
 G_BEGIN_DECLS
 
-gboolean gst_burn_plugin_init (GstPlugin *plugin);
-gboolean gst_chromium_plugin_init (GstPlugin *plugin);
-gboolean gst_dilate_plugin_init (GstPlugin *plugin);
-gboolean gst_dodge_plugin_init (GstPlugin *plugin);
-gboolean gst_exclusion_plugin_init (GstPlugin *plugin);
-gboolean gst_gauss_blur_plugin_init (GstPlugin *plugin);
-gboolean gst_solarize_plugin_init (GstPlugin *plugin);
+/* #defines don't like whitespacey bits */
+#define GST_TYPE_PLUGIN_TEMPLATE \
+  (gst_plugin_template_get_type())
+#define GST_PLUGIN_TEMPLATE(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PLUGIN_TEMPLATE,GstPluginTemplate))
+#define GST_PLUGIN_TEMPLATE_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PLUGIN_TEMPLATE,GstPluginTemplateClass))
+#define GST_IS_PLUGIN_TEMPLATE(obj) \
+  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PLUGIN_TEMPLATE))
+#define GST_IS_PLUGIN_TEMPLATE_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PLUGIN_TEMPLATE))
+
+typedef struct _GstPluginTemplate      GstPluginTemplate;
+typedef struct _GstPluginTemplateClass GstPluginTemplateClass;
+
+struct _GstPluginTemplate
+{
+  GstElement element;
+
+  GstPad *sinkpad, *srcpad;
+
+  gboolean silent;
+};
+
+struct _GstPluginTemplateClass 
+{
+  GstElementClass parent_class;
+};
+
+GType gst_plugin_template_get_type (void);
 
 G_END_DECLS
 
-#endif /* __GST_GAUDI_EFFECTS_H__ */
+#endif /* __GST_PLUGIN_TEMPLATE_H__ */
diff --git a/gst/gaudieffects/gstsolarize.c b/gst/gaudieffects/gstsolarize.c
index 46b7df6..de7336d 100644
--- a/gst/gaudieffects/gstsolarize.c
+++ b/gst/gaudieffects/gstsolarize.c
@@ -87,14 +87,22 @@ enum
 
 enum
 {
-  PROP_0,
+  PROP_0 = 0,
+  PROP_THRESHOLD,
+  PROP_START,
+  PROP_END,
   PROP_SILENT
 };
 
 /* Initializations */
 
+#define DEFAULT_THRESHOLD 127
+#define DEFAULT_START 50
+#define DEFAULT_END 185
+
 static gint gate_int (gint value, gint min, gint max);
-static void transform (guint32 * src, guint32 * dest, gint video_area);
+static void transform (guint32 * src, guint32 * dest, gint video_area,
+    gint threshold, gint start, gint end);
 
 /* The capabilities of the inputs and outputs. */
 
@@ -152,6 +160,21 @@ gst_solarize_class_init (GstSolarizeClass * klass)
   gobject_class->set_property = gst_solarize_set_property;
   gobject_class->get_property = gst_solarize_get_property;
 
+  g_object_class_install_property (gobject_class, PROP_THRESHOLD,
+      g_param_spec_uint ("threshold", "Threshold",
+          "Threshold parameter", 0, 256, DEFAULT_THRESHOLD,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
+
+  g_object_class_install_property (gobject_class, PROP_START,
+      g_param_spec_uint ("start", "Start",
+          "Start parameter", 0, 256, DEFAULT_START,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
+
+  g_object_class_install_property (gobject_class, PROP_END,
+      g_param_spec_uint ("end", "End",
+          "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));
@@ -168,6 +191,9 @@ gst_solarize_class_init (GstSolarizeClass * klass)
 static void
 gst_solarize_init (GstSolarize * filter, GstSolarizeClass * gclass)
 {
+  filter->threshold = DEFAULT_THRESHOLD;
+  filter->start = DEFAULT_START;
+  filter->end = DEFAULT_END;
   filter->silent = FALSE;
 }
 
@@ -181,6 +207,15 @@ gst_solarize_set_property (GObject * object, guint prop_id,
     case PROP_SILENT:
       filter->silent = g_value_get_boolean (value);
       break;
+    case PROP_THRESHOLD:
+      filter->threshold = g_value_get_uint (value);
+      break;
+    case PROP_START:
+      filter->start = g_value_get_uint (value);
+      break;
+    case PROP_END:
+      filter->end = g_value_get_uint (value);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -197,6 +232,15 @@ gst_solarize_get_property (GObject * object, guint prop_id,
     case PROP_SILENT:
       g_value_set_boolean (value, filter->silent);
       break;
+    case PROP_THRESHOLD:
+      g_value_set_uint (value, filter->threshold);
+      break;
+    case PROP_START:
+      g_value_set_uint (value, filter->start);
+      break;
+    case PROP_END:
+      g_value_set_uint (value, filter->end);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -232,8 +276,8 @@ gst_solarize_transform (GstBaseTransform * btrans,
   guint32 *dest = (guint32 *) GST_BUFFER_DATA (out_buf);
 
   video_size = filter->width * filter->height;
-
-  transform (src, dest, video_size);
+  transform (src, dest, video_size, filter->threshold, filter->start,
+      filter->end);
 
   return GST_FLOW_OK;
 }
@@ -252,7 +296,6 @@ gst_solarize_plugin_init (GstPlugin * solarize)
 }
 
 /*** Now the image processing work.... ***/
-
 /* Keep the values inbounds. */
 static gint
 gate_int (gint value, gint min, gint max)
@@ -268,14 +311,12 @@ gate_int (gint value, gint min, gint max)
 
 /* Transform processes each frame. */
 static void
-transform (guint32 * src, guint32 * dest, gint video_area)
+transform (guint32 * src, guint32 * dest, gint video_area,
+    gint threshold, gint start, gint end)
 {
   guint32 in;
   guint32 color[3];
   gint x, c;
-  gint threshold = 127;
-  gint start = 50;
-  gint end = 185;
   gint floor = 0;
   gint ceiling = 255;
 
diff --git a/gst/gaudieffects/gstsolarize.h b/gst/gaudieffects/gstsolarize.h
index 885687d..0d26a85 100644
--- a/gst/gaudieffects/gstsolarize.h
+++ b/gst/gaudieffects/gstsolarize.h
@@ -75,6 +75,7 @@ struct _GstSolarize
 
   gint width, height;
 
+  gint threshold, start, end;
   gboolean silent;
 };
 
