diff options
author | Hu Gang <gang.a.hu@intel.com> | 2010-12-20 11:14:49 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-12-20 11:14:49 +0200 |
commit | 279cda20d7ad636fba911e818b88456f8e3f7100 (patch) | |
tree | 625a86c98a6e9b58d1041d5b89b427c008c1103c /gst-libs | |
parent | bf00fb84f38ab72934fcdda6d1a656f170c7f5b2 (diff) |
photography: add missing property and cabability flag for noise reduction
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/interfaces/photography.c | 10 | ||||
-rw-r--r-- | gst-libs/gst/interfaces/photography.h | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gst-libs/gst/interfaces/photography.c b/gst-libs/gst/interfaces/photography.c index 6fcf0d9c6..b61e75eb8 100644 --- a/gst-libs/gst/interfaces/photography.c +++ b/gst-libs/gst/interfaces/photography.c @@ -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)); } diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h index 0198788fd..1ab652ca7 100644 --- a/gst-libs/gst/interfaces/photography.h +++ b/gst-libs/gst/interfaces/photography.h @@ -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 |