mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 05:52:37 +00:00
photography: add missing property and cabability flag for noise reduction
This commit is contained in:
parent
bf00fb84f3
commit
279cda20d7
2 changed files with 12 additions and 1 deletions
|
@ -613,4 +613,14 @@ gst_photography_iface_class_init (gpointer g_class)
|
||||||
"Zoom property",
|
"Zoom property",
|
||||||
"How much the resulted image will be zoomed",
|
"How much the resulted image will be zoomed",
|
||||||
1.0f, 10.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,8 @@ typedef enum
|
||||||
GST_PHOTOGRAPHY_CAPS_FOCUS = (1 << 7),
|
GST_PHOTOGRAPHY_CAPS_FOCUS = (1 << 7),
|
||||||
GST_PHOTOGRAPHY_CAPS_APERTURE = (1 << 8),
|
GST_PHOTOGRAPHY_CAPS_APERTURE = (1 << 8),
|
||||||
GST_PHOTOGRAPHY_CAPS_EXPOSURE = (1 << 9),
|
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;
|
} GstPhotoCaps;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
Loading…
Reference in a new issue