summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/interfaces/photography.h
diff options
context:
space:
mode:
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>2009-04-20 17:05:49 +0300
committerStefan Kost <ensonic@users.sf.net>2009-06-05 15:51:30 +0300
commit9dc5c1ffb2b7b117636cd80acfde9fa41248eb3a (patch)
tree6c19c837f73de6a4072f903c76d83fd63d519ede /gst-libs/gst/interfaces/photography.h
parent53e6e4b0d5b7e17ac8b1a2d96d39ad38dc41bad7 (diff)
downloadgst-plugins-bad-9dc5c1ffb2b7b117636cd80acfde9fa41248eb3a.tar.gz
gst-plugins-bad-9dc5c1ffb2b7b117636cd80acfde9fa41248eb3a.tar.bz2
gst-plugins-bad-9dc5c1ffb2b7b117636cd80acfde9fa41248eb3a.zip
photography: add functions to set/get all settings with one call
Diffstat (limited to 'gst-libs/gst/interfaces/photography.h')
-rw-r--r--gst-libs/gst/interfaces/photography.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h
index b7f6b940..170151cb 100644
--- a/gst-libs/gst/interfaces/photography.h
+++ b/gst-libs/gst/interfaces/photography.h
@@ -181,6 +181,8 @@ typedef void (*GstPhotoCapturePrepared) (gpointer data,
* @get_capabilities: vmethod to get supported capabilities of the interface
* @prepare_for_capture: vmethod to tell the element to prepare for capturing
* @set_autofocus: vmethod to set autofocus on/off
+ * @set_config: vmethod to set all configuration parameters at once
+ * @get_config: vmethod to get all configuration parameters at once
*
* #GstPhotographyInterface interface.
*/
@@ -221,6 +223,8 @@ typedef struct _GstPhotographyInterface
gboolean (*prepare_for_capture) (GstPhotography * photo,
GstPhotoCapturePrepared func, GstCaps *capture_caps, gpointer user_data);
void (*set_autofocus) (GstPhotography * photo, gboolean on);
+ gboolean (*set_config) (GstPhotography * photo, GstPhotoSettings * config);
+ gboolean (*get_config) (GstPhotography * photo, GstPhotoSettings * config);
/*< private > */
gpointer _gst_reserved[GST_PADDING];
@@ -270,6 +274,11 @@ gboolean gst_photography_prepare_for_capture (GstPhotography * photo,
void gst_photography_set_autofocus (GstPhotography * photo, gboolean on);
+gboolean gst_photography_set_config (GstPhotography * photo,
+ GstPhotoSettings * config);
+gboolean gst_photography_get_config (GstPhotography * photo,
+ GstPhotoSettings * config);
+
G_END_DECLS
#endif /* __GST_PHOTOGRAPHY_H__ */