camerabin,photography: Add autofocus interface property 61/261/1
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Thu, 22 Apr 2010 10:48:03 +0000 (13:48 +0300)
committerJussi Saavalainen <jussi.saavalainen@ixonos.com>
Thu, 28 Jun 2012 12:52:46 +0000 (15:52 +0300)
Add autofocus interface property to start and stop autofocus sequence.
Implement the property in camerabin.

gst-libs/gst/interfaces/photography.c
gst-libs/gst/interfaces/photography.h
gst/camerabin/gstcamerabin-enum.h

index d8a9b50..bd858b3 100644 (file)
@@ -677,4 +677,10 @@ gst_photography_iface_class_init (gpointer g_class)
           "Which noise reduction modes are enabled (0 = disabled)",
           GST_TYPE_PHOTOGRAPHY_NOISE_REDUCTION,
           0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+  /* Autofocus */
+  g_object_interface_install_property (g_class,
+      g_param_spec_boolean (GST_PHOTOGRAPHY_PROP_AUTOFOCUS, "autofocus",
+          "Set true to start autofocus sequence and false to interrupt it",
+          FALSE, G_PARAM_READWRITE));
 }
index 82a9843..348b74c 100644 (file)
@@ -71,6 +71,7 @@ G_BEGIN_DECLS
 #define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"
 #define GST_PHOTOGRAPHY_PROP_FOCUS_MODE   "focus-mode"
 #define GST_PHOTOGRAPHY_PROP_ZOOM   "zoom"
+#define GST_PHOTOGRAPHY_PROP_AUTOFOCUS    "autofocus"
 
 /**
  * GstPhotography:
index b848047..7fbe6c8 100644 (file)
@@ -70,7 +70,8 @@ enum
   ARG_VIDEO_CAPTURE_FRAMERATE,
   ARG_PREVIEW_SOURCE_FILTER,
   ARG_READY_FOR_CAPTURE,
-  ARG_IDLE
+  ARG_IDLE,
+  ARG_AUTOFOCUS
 };
 
 /**