photography: add missing property and cabability flag for noise reduction

This commit is contained in:
Hu Gang 2010-12-20 11:14:49 +02:00 committed by Stefan Kost
parent bf00fb84f3
commit 279cda20d7
2 changed files with 12 additions and 1 deletions

View 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));
}

View 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