Search
SailfishOS Open Build Service
>
Projects
>
home:msameer
:
gst-nokia-videosrc2
>
gst-plugins-bad-free
> 0010-camerabin-photography-Add-autofocus-interface-proper.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0010-camerabin-photography-Add-autofocus-interface-proper.patch of Package gst-plugins-bad-free
From 6b6326c0c2655f805b84df1e1cc2c526412049d0 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer <msameer@foolab.org> Date: Sun, 17 Feb 2013 21:42:45 +0200 Subject: [PATCH 10/23] camerabin: photography: Add autofocus interface property This patch adds the autofocus interface property to GstPhotography I am not the author of the patch and I don't know the real author. I just had to convert it to a git am compatible patch. --- gst-libs/gst/interfaces/photography.c | 6 ++++++ gst-libs/gst/interfaces/photography.h | 1 + gst/camerabin/gstcamerabin-enum.h | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/interfaces/photography.c b/gst-libs/gst/interfaces/photography.c index d8a9b50..ffb1146 100644 --- a/gst-libs/gst/interfaces/photography.c +++ b/gst-libs/gst/interfaces/photography.c @@ -670,6 +670,12 @@ gst_photography_iface_class_init (gpointer g_class) "How much the resulted image will be zoomed", 1.0f, 10.0f, 1.0f, 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)); + /* Noise Reduction, Bayer an YCC noise reduction are enabled by default */ g_object_interface_install_property (g_class, g_param_spec_flags (GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION, diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h index 82a9843..348b74c 100644 --- a/gst-libs/gst/interfaces/photography.h +++ b/gst-libs/gst/interfaces/photography.h @@ -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: diff --git a/gst/camerabin/gstcamerabin-enum.h b/gst/camerabin/gstcamerabin-enum.h index b848047..7fbe6c8 100644 --- a/gst/camerabin/gstcamerabin-enum.h +++ b/gst/camerabin/gstcamerabin-enum.h @@ -70,7 +70,8 @@ enum ARG_VIDEO_CAPTURE_FRAMERATE, ARG_PREVIEW_SOURCE_FILTER, ARG_READY_FOR_CAPTURE, - ARG_IDLE + ARG_IDLE, + ARG_AUTOFOCUS }; /** -- 1.7.10.4