photography: Add zoom property
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sun, 19 Sep 2010 21:51:35 +0000 (18:51 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 20 Sep 2010 21:26:48 +0000 (18:26 -0300)
Adds a property to set/get the zoom as a float

gst-libs/gst/interfaces/photography.c
gst-libs/gst/interfaces/photography.h

index d33db8a..8b470d6 100644 (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));
 }
index a1f145c..e7e4f20 100644 (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: