mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
photography: Add zoom property
Adds a property to set/get the zoom as a float
This commit is contained in:
parent
3e6a4edb15
commit
c3527e2653
2 changed files with 8 additions and 0 deletions
|
@ -580,4 +580,11 @@ gst_photography_iface_class_init (gpointer g_class)
|
||||||
"Image preview supported caps",
|
"Image preview supported caps",
|
||||||
"Caps describing supported image preview formats", GST_TYPE_CAPS,
|
"Caps describing supported image preview formats", GST_TYPE_CAPS,
|
||||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
|
/* Zoom */
|
||||||
|
g_object_interface_install_property (g_class,
|
||||||
|
g_param_spec_float (GST_PHOTOGRAPHY_PROP_ZOOM,
|
||||||
|
"Zoom property",
|
||||||
|
"How much the resulted image will be zoomed",
|
||||||
|
1.0f, 10.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ G_BEGIN_DECLS
|
||||||
"image-preview-supported-caps"
|
"image-preview-supported-caps"
|
||||||
#define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"
|
#define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"
|
||||||
#define GST_PHOTOGRAPHY_PROP_FOCUS_MODE "focus-mode"
|
#define GST_PHOTOGRAPHY_PROP_FOCUS_MODE "focus-mode"
|
||||||
|
#define GST_PHOTOGRAPHY_PROP_ZOOM "zoom"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstPhotography:
|
* GstPhotography:
|
||||||
|
|
Loading…
Reference in a new issue