summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-09-19 18:51:35 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-09-20 18:26:48 -0300
commitc3527e2653f0cb5f7f888e758cc7c5e3774942dc (patch)
tree13b2ea2c9455243ffde34bbe8bebf36ce93b64ce /gst-libs
parent3e6a4edb15e4cd7e38c154bac691b22ce0c30c7b (diff)
photography: Add zoom property
Adds a property to set/get the zoom as a float
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/interfaces/photography.c7
-rw-r--r--gst-libs/gst/interfaces/photography.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/gst-libs/gst/interfaces/photography.c b/gst-libs/gst/interfaces/photography.c
index d33db8aac..8b470d65c 100644
--- a/gst-libs/gst/interfaces/photography.c
+++ b/gst-libs/gst/interfaces/photography.c
@@ -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));
}
diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h
index a1f145c3f..e7e4f2061 100644
--- a/gst-libs/gst/interfaces/photography.h
+++ b/gst-libs/gst/interfaces/photography.h
@@ -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: