photography: add missing property and cabability flag for noise reduction
authorHu Gang <gang.a.hu@intel.com>
Mon, 20 Dec 2010 09:14:49 +0000 (11:14 +0200)
committerStefan Kost <ensonic@users.sf.net>
Mon, 20 Dec 2010 09:14:49 +0000 (11:14 +0200)
gst-libs/gst/interfaces/photography.c
gst-libs/gst/interfaces/photography.h

index 6fcf0d9..b61e75e 100644 (file)
@@ -613,4 +613,14 @@ gst_photography_iface_class_init (gpointer g_class)
           "Zoom property",
           "How much the resulted image will be zoomed",
           1.0f, 10.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+  /* Noise Reduction, Bayer an YCC noise reduction are enabled by default */
+  g_object_interface_install_property (g_class,
+      g_param_spec_uint (GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION,
+          "Noise Reduction settings",
+          "Which noise reduction modes are enalbed in Camera (0 = disabled)",
+          0, G_MAXUINT32,
+          GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC |
+          GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
index 0198788..1ab652c 100644 (file)
@@ -174,7 +174,8 @@ typedef enum
   GST_PHOTOGRAPHY_CAPS_FOCUS = (1 << 7),
   GST_PHOTOGRAPHY_CAPS_APERTURE = (1 << 8),
   GST_PHOTOGRAPHY_CAPS_EXPOSURE = (1 << 9),
-  GST_PHOTOGRAPHY_CAPS_SHAKE = (1 << 10)
+  GST_PHOTOGRAPHY_CAPS_SHAKE = (1 << 10),
+  GST_PHOTOGRAPHY_CAPS_NOISE_REDUCTION = (1 << 11)
 } GstPhotoCaps;
 
 typedef enum