photography: Add zoom property

Adds a property to set/get the zoom as a float
This commit is contained in:
Thiago Santos 2010-09-19 18:51:35 -03:00
parent 3e6a4edb15
commit c3527e2653
2 changed files with 8 additions and 0 deletions

View file

@ -580,4 +580,11 @@ gst_photography_iface_class_init (gpointer g_class)
"Image preview supported caps",
"Caps describing supported image preview formats", GST_TYPE_CAPS,
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));
}

View file

@ -69,6 +69,7 @@ G_BEGIN_DECLS
"image-preview-supported-caps"
#define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"
#define GST_PHOTOGRAPHY_PROP_FOCUS_MODE "focus-mode"
#define GST_PHOTOGRAPHY_PROP_ZOOM "zoom"
/**
* GstPhotography: