From c3527e2653f0cb5f7f888e758cc7c5e3774942dc Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sun, 19 Sep 2010 18:51:35 -0300 Subject: [PATCH] photography: Add zoom property Adds a property to set/get the zoom as a float --- gst-libs/gst/interfaces/photography.c | 7 +++++++ gst-libs/gst/interfaces/photography.h | 1 + 2 files changed, 8 insertions(+) diff --git a/gst-libs/gst/interfaces/photography.c b/gst-libs/gst/interfaces/photography.c index d33db8a..8b470d6 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 a1f145c..e7e4f20 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: -- 2.7.4