2009-02-06 10:06:23 +00:00
|
|
|
/* GStreamer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Nokia Corporation <multimedia@maemo.org>
|
|
|
|
*
|
|
|
|
* photography.h: photography interface for digital imaging
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_PHOTOGRAPHY_H__
|
|
|
|
#define __GST_PHOTOGRAPHY_H__
|
|
|
|
|
2009-03-04 21:30:30 +00:00
|
|
|
#ifndef GST_USE_UNSTABLE_API
|
|
|
|
#warning "The GstPhotography interface is unstable API and may change in future."
|
|
|
|
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
|
|
|
#endif
|
|
|
|
|
2009-02-06 10:06:23 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/interfaces/photography-enumtypes.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GST_TYPE_PHOTOGRAPHY \
|
|
|
|
(gst_photography_get_type ())
|
|
|
|
#define GST_PHOTOGRAPHY(obj) \
|
2011-10-04 12:26:21 +00:00
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PHOTOGRAPHY, GstPhotography))
|
2009-02-06 10:06:23 +00:00
|
|
|
#define GST_IS_PHOTOGRAPHY(obj) \
|
2011-10-04 12:26:21 +00:00
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PHOTOGRAPHY))
|
2011-10-21 13:04:05 +00:00
|
|
|
#define GST_PHOTOGRAPHY_GET_INTERFACE(inst) \
|
2009-02-06 10:06:23 +00:00
|
|
|
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_PHOTOGRAPHY, GstPhotographyInterface))
|
|
|
|
|
|
|
|
|
|
|
|
/* Custom GstMessage name that will be sent to GstBus when autofocusing
|
|
|
|
is complete */
|
|
|
|
#define GST_PHOTOGRAPHY_AUTOFOCUS_DONE "autofocus-done"
|
|
|
|
|
|
|
|
/* Custom GstMessage name that will be sent to GstBus when shake risk changes */
|
|
|
|
#define GST_PHOTOGRAPHY_SHAKE_RISK "shake-risk"
|
|
|
|
|
2009-11-27 12:38:04 +00:00
|
|
|
/* Interface property names */
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_WB_MODE "white-balance-mode"
|
2010-10-08 08:33:31 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_COLOR_TONE "color-tone-mode"
|
2009-11-27 12:38:04 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_SCENE_MODE "scene-mode"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_FLASH_MODE "flash-mode"
|
2010-09-28 08:35:53 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION "noise-reduction"
|
2009-11-27 12:38:04 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_FOCUS_STATUS "focus-status"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_CAPABILITIES "capabilities"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_SHAKE_RISK "shake-risk"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_EV_COMP "ev-compensation"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_ISO_SPEED "iso-speed"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_APERTURE "aperture"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_EXPOSURE "exposure"
|
2009-09-21 14:47:20 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS \
|
|
|
|
"image-capture-supported-caps"
|
2010-04-29 10:24:18 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS \
|
|
|
|
"image-preview-supported-caps"
|
2010-01-26 13:18:24 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"
|
|
|
|
#define GST_PHOTOGRAPHY_PROP_FOCUS_MODE "focus-mode"
|
2010-09-19 21:51:35 +00:00
|
|
|
#define GST_PHOTOGRAPHY_PROP_ZOOM "zoom"
|
2009-11-27 12:38:04 +00:00
|
|
|
|
2009-02-06 10:06:23 +00:00
|
|
|
/**
|
|
|
|
* GstPhotography:
|
|
|
|
*
|
|
|
|
* Opaque #GstPhotography data structure.
|
|
|
|
*/
|
|
|
|
typedef struct _GstPhotography GstPhotography;
|
|
|
|
|
2010-09-28 08:35:53 +00:00
|
|
|
/**
|
|
|
|
* GstPhotographyNoiseReduction:
|
|
|
|
* @GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER: Adaptive noise reduction on Bayer
|
|
|
|
* format
|
|
|
|
* @GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC: reduces the noise on Y and 2-chroma
|
|
|
|
* images.
|
|
|
|
* @GST_PHOTOGRAPHY_NOISE_REDUCTION_TEMPORAL: Multi-frame adaptive NR,
|
|
|
|
* provided for the video mode
|
|
|
|
* @GST_PHOTOGRAPHY_NOISE_REDUCTION_FPN: Fixed Pattern Noise refers to noise
|
|
|
|
* that does not change between frames. The noise is removed from the sensor
|
|
|
|
* image, by subtracting a previously-captured black image in memory.
|
|
|
|
* @GST_PHOTOGRAPHY_NOISE_REDUCTION_EXTRA: Extra Noise Reduction. In the case
|
|
|
|
* of high-ISO capturing, some noise remains after YCC NR. XNR reduces this
|
|
|
|
* remaining noise.
|
|
|
|
*
|
|
|
|
* Noise Reduction features of a photography capture or filter element.
|
|
|
|
*
|
|
|
|
* Since: 0.10.21
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER = ( 1<<0 ),
|
|
|
|
GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC = ( 1<<1 ),
|
|
|
|
GST_PHOTOGRAPHY_NOISE_REDUCTION_TEMPORAL= ( 1<< 2),
|
|
|
|
GST_PHOTOGRAPHY_NOISE_REDUCTION_FIXED = (1 << 3),
|
|
|
|
GST_PHOTOGRAPHY_NOISE_REDUCTION_EXTRA = (1 << 4)
|
|
|
|
} GstPhotographyNoiseReduction;
|
|
|
|
|
2009-02-06 10:06:23 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_WB_MODE_AUTO = 0,
|
|
|
|
GST_PHOTOGRAPHY_WB_MODE_DAYLIGHT,
|
|
|
|
GST_PHOTOGRAPHY_WB_MODE_CLOUDY,
|
|
|
|
GST_PHOTOGRAPHY_WB_MODE_SUNSET,
|
|
|
|
GST_PHOTOGRAPHY_WB_MODE_TUNGSTEN,
|
|
|
|
GST_PHOTOGRAPHY_WB_MODE_FLUORESCENT
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyWhiteBalanceMode;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2010-10-08 08:33:31 +00:00
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_NORMAL = 0,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_SEPIA,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEGATIVE,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_GRAYSCALE,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_NATURAL,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_VIVID,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_COLORSWAP,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_SOLARIZE,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_OUT_OF_FOCUS,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKY_BLUE,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_GRASS_GREEN,
|
|
|
|
GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKIN_WHITEN
|
|
|
|
} GstPhotographyColorToneMode;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_MANUAL = 0,
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_CLOSEUP,
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_PORTRAIT,
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_LANDSCAPE,
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_SPORT,
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_NIGHT,
|
|
|
|
GST_PHOTOGRAPHY_SCENE_MODE_AUTO
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographySceneMode;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_FLASH_MODE_AUTO = 0,
|
|
|
|
GST_PHOTOGRAPHY_FLASH_MODE_OFF,
|
|
|
|
GST_PHOTOGRAPHY_FLASH_MODE_ON,
|
|
|
|
GST_PHOTOGRAPHY_FLASH_MODE_FILL_IN,
|
|
|
|
GST_PHOTOGRAPHY_FLASH_MODE_RED_EYE
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyFlashMode;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_STATUS_NONE = 0,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_STATUS_RUNNING,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_STATUS_FAIL,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_STATUS_SUCCESS
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyFocusStatus;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_CAPS_NONE = (0 << 0),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_EV_COMP = (1 << 0),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_ISO_SPEED = (1 << 1),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_WB_MODE = (1 << 2),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_TONE = (1 << 3),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_SCENE = (1 << 4),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_FLASH = (1 << 5),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_ZOOM = (1 << 6),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_FOCUS = (1 << 7),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_APERTURE = (1 << 8),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_EXPOSURE = (1 << 9),
|
2010-12-20 09:14:49 +00:00
|
|
|
GST_PHOTOGRAPHY_CAPS_SHAKE = (1 << 10),
|
2011-07-21 05:58:27 +00:00
|
|
|
GST_PHOTOGRAPHY_CAPS_NOISE_REDUCTION = (1 << 11),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_FLICKER_REDUCTION = (1 << 12),
|
|
|
|
GST_PHOTOGRAPHY_CAPS_ALL = (~0)
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyCaps;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_SHAKE_RISK_LOW = 0,
|
|
|
|
GST_PHOTOGRAPHY_SHAKE_RISK_MEDIUM,
|
|
|
|
GST_PHOTOGRAPHY_SHAKE_RISK_HIGH,
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyShakeRisk;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
2010-01-26 13:18:24 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_PHOTOGRAPHY_FLICKER_REDUCTION_OFF = 0,
|
|
|
|
GST_PHOTOGRAPHY_FLICKER_REDUCTION_50HZ,
|
|
|
|
GST_PHOTOGRAPHY_FLICKER_REDUCTION_60HZ,
|
|
|
|
GST_PHOTOGRAPHY_FLICKER_REDUCTION_AUTO,
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyFlickerReductionMode;
|
2010-01-26 13:18:24 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_AUTO = 0,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_MACRO,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_PORTRAIT,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_INFINITY,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_HYPERFOCAL,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_EXTENDED,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_NORMAL,
|
|
|
|
GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_EXTENDED,
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographyFocusMode;
|
2010-01-26 13:18:24 +00:00
|
|
|
|
2009-02-06 10:06:23 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyWhiteBalanceMode wb_mode;
|
|
|
|
GstPhotographyColorToneMode tone_mode;
|
|
|
|
GstPhotographySceneMode scene_mode;
|
|
|
|
GstPhotographyFlashMode flash_mode;
|
2009-02-06 10:06:23 +00:00
|
|
|
guint32 exposure;
|
|
|
|
guint aperture;
|
|
|
|
gfloat ev_compensation;
|
|
|
|
guint iso_speed;
|
|
|
|
gfloat zoom;
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlickerReductionMode flicker_mode;
|
|
|
|
GstPhotographyFocusMode focus_mode;
|
2011-02-10 02:35:18 +00:00
|
|
|
GstPhotographyNoiseReduction noise_reduction;
|
2010-10-08 08:33:31 +00:00
|
|
|
} GstPhotographySettings;
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
/**
|
2010-10-08 08:33:31 +00:00
|
|
|
* GstPhotographyCapturePrepared:
|
2009-02-06 10:06:23 +00:00
|
|
|
* @data: user data that has been given, when registering the callback
|
2009-02-20 10:03:03 +00:00
|
|
|
* @configured_caps: #GstCaps defining the configured capture format.
|
|
|
|
* Ownership of these caps stays in the element.
|
2009-02-06 10:06:23 +00:00
|
|
|
*
|
|
|
|
* This callback will be called when the element has finished preparations
|
|
|
|
* for photo capture.
|
|
|
|
*/
|
2010-10-08 08:33:31 +00:00
|
|
|
typedef void (*GstPhotographyCapturePrepared) (gpointer data,
|
2009-02-20 10:03:03 +00:00
|
|
|
const GstCaps *configured_caps);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GstPhotographyInterface:
|
|
|
|
* @parent: parent interface type.
|
|
|
|
* @get_ev_compensation: vmethod to get ev exposure compensation value
|
|
|
|
* @get_iso_speed: vmethod to get iso speed (light sensitivity) value
|
|
|
|
* @get_aperture: vmethod to get aperture value
|
|
|
|
* @get_exposure: vmethod to get exposure time value
|
|
|
|
* @get_white_balance_mode: vmethod to get white balance mode value
|
2010-10-08 08:33:31 +00:00
|
|
|
* @get_color_tone_mode: vmethod to get color tone mode value
|
2009-02-06 10:06:23 +00:00
|
|
|
* @get_scene_mode: vmethod to get scene mode value
|
|
|
|
* @get_flash_mode: vmethod to get flash mode value
|
2010-09-28 08:35:53 +00:00
|
|
|
* @get_noise_reduction: vmethod to get noise reduction mode value
|
2009-02-06 10:06:23 +00:00
|
|
|
* @get_zoom: vmethod to get zoom factor value
|
|
|
|
* @set_ev_compensation: vmethod to set ev exposure compensation value
|
|
|
|
* @set_iso_speed: vmethod to set iso speed (light sensitivity) value
|
|
|
|
* @set_aperture: vmethod to set aperture value
|
|
|
|
* @set_exposure: vmethod to set exposure time value
|
|
|
|
* @set_white_balance_mode: vmethod to set white balance mode value
|
2010-10-08 08:33:31 +00:00
|
|
|
* @set_color_tone_mode: vmethod to set color tone mode value
|
2009-02-06 10:06:23 +00:00
|
|
|
* @set_scene_mode: vmethod to set scene mode value
|
|
|
|
* @set_flash_mode: vmethod to set flash mode value
|
2010-09-28 08:35:53 +00:00
|
|
|
* @set_noise_reduction: vmethod to set noise reduction mode value
|
2009-02-06 10:06:23 +00:00
|
|
|
* @set_zoom: vmethod to set zoom factor value
|
|
|
|
* @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
|
2009-04-20 14:05:49 +00:00
|
|
|
* @set_config: vmethod to set all configuration parameters at once
|
|
|
|
* @get_config: vmethod to get all configuration parameters at once
|
2009-09-21 14:47:20 +00:00
|
|
|
* @get_image_capture_supported_caps: vmethod to get caps describing supported image capture formats
|
2009-02-06 10:06:23 +00:00
|
|
|
*
|
|
|
|
* #GstPhotographyInterface interface.
|
|
|
|
*/
|
|
|
|
typedef struct _GstPhotographyInterface
|
|
|
|
{
|
|
|
|
GTypeInterface parent;
|
|
|
|
|
|
|
|
/* virtual functions */
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*get_ev_compensation) (GstPhotography * photo, gfloat * ev_comp);
|
|
|
|
gboolean (*get_iso_speed) (GstPhotography * photo, guint * iso_speed);
|
|
|
|
gboolean (*get_aperture) (GstPhotography * photo, guint * aperture);
|
|
|
|
gboolean (*get_exposure) (GstPhotography * photo, guint32 * exposure);
|
|
|
|
gboolean (*get_white_balance_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyWhiteBalanceMode * wb_mode);
|
|
|
|
gboolean (*get_color_tone_mode) (GstPhotography * photo,
|
|
|
|
GstPhotographyColorToneMode * tone_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*get_scene_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographySceneMode * scene_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*get_flash_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlashMode * flash_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*get_zoom) (GstPhotography * photo, gfloat * zoom);
|
2010-10-08 08:33:31 +00:00
|
|
|
gboolean (*get_flicker_mode) (GstPhotography * photo,
|
|
|
|
GstPhotographyFlickerReductionMode * flicker_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*get_focus_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFocusMode * focus_mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*set_ev_compensation) (GstPhotography * photo, gfloat ev_comp);
|
|
|
|
gboolean (*set_iso_speed) (GstPhotography * photo, guint iso_speed);
|
|
|
|
gboolean (*set_aperture) (GstPhotography * photo, guint aperture);
|
|
|
|
gboolean (*set_exposure) (GstPhotography * photo, guint32 exposure);
|
|
|
|
gboolean (*set_white_balance_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyWhiteBalanceMode wb_mode);
|
|
|
|
gboolean (*set_color_tone_mode) (GstPhotography * photo,
|
|
|
|
GstPhotographyColorToneMode tone_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*set_scene_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographySceneMode scene_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*set_flash_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlashMode flash_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*set_zoom) (GstPhotography * photo, gfloat zoom);
|
|
|
|
gboolean (*set_flicker_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlickerReductionMode flicker_mode);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*set_focus_mode) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFocusMode focus_mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyCaps (*get_capabilities) (GstPhotography * photo);
|
2010-10-14 20:03:19 +00:00
|
|
|
gboolean (*prepare_for_capture) (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyCapturePrepared func, GstCaps *capture_caps, gpointer user_data);
|
2009-02-06 10:06:23 +00:00
|
|
|
void (*set_autofocus) (GstPhotography * photo, gboolean on);
|
2010-10-08 08:33:31 +00:00
|
|
|
gboolean (*set_config) (GstPhotography * photo, GstPhotographySettings * config);
|
|
|
|
gboolean (*get_config) (GstPhotography * photo, GstPhotographySettings * config);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
2010-10-14 16:41:00 +00:00
|
|
|
gboolean (*get_noise_reduction) (GstPhotography * photo,
|
2010-10-14 20:04:15 +00:00
|
|
|
GstPhotographyNoiseReduction * noise_reduction);
|
2010-10-14 16:41:00 +00:00
|
|
|
gboolean (*set_noise_reduction) (GstPhotography * photo,
|
2010-10-14 20:04:15 +00:00
|
|
|
GstPhotographyNoiseReduction noise_reduction);
|
2010-10-14 16:41:00 +00:00
|
|
|
|
2009-02-06 10:06:23 +00:00
|
|
|
/*< private > */
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
|
|
|
} GstPhotographyInterface;
|
|
|
|
|
|
|
|
GType gst_photography_get_type (void);
|
|
|
|
|
|
|
|
/* virtual class function wrappers */
|
|
|
|
gboolean gst_photography_get_ev_compensation (GstPhotography * photo,
|
|
|
|
gfloat * ev_comp);
|
|
|
|
gboolean gst_photography_get_iso_speed (GstPhotography * photo,
|
|
|
|
guint * iso_speed);
|
|
|
|
gboolean gst_photography_get_aperture (GstPhotography * photo,
|
|
|
|
guint * aperture);
|
|
|
|
gboolean gst_photography_get_exposure (GstPhotography * photo,
|
|
|
|
guint32 * exposure);
|
|
|
|
gboolean gst_photography_get_white_balance_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyWhiteBalanceMode * wb_mode);
|
|
|
|
gboolean gst_photography_get_color_tone_mode (GstPhotography * photo,
|
|
|
|
GstPhotographyColorToneMode * tone_mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
gboolean gst_photography_get_scene_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographySceneMode * scene_mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
gboolean gst_photography_get_flash_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlashMode * flash_mode);
|
2010-09-28 08:35:53 +00:00
|
|
|
gboolean gst_photography_get_noise_reduction (GstPhotography * photo,
|
2011-02-10 02:35:18 +00:00
|
|
|
GstPhotographyNoiseReduction * noise_reduction);
|
2009-02-06 10:06:23 +00:00
|
|
|
gboolean gst_photography_get_zoom (GstPhotography * photo, gfloat * zoom);
|
2010-01-26 13:18:24 +00:00
|
|
|
gboolean gst_photography_get_flicker_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlickerReductionMode *mode);
|
2010-01-26 13:18:24 +00:00
|
|
|
gboolean gst_photography_get_focus_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFocusMode *mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
gboolean gst_photography_set_ev_compensation (GstPhotography * photo,
|
|
|
|
gfloat ev_comp);
|
|
|
|
gboolean gst_photography_set_iso_speed (GstPhotography * photo,
|
|
|
|
guint iso_speed);
|
|
|
|
gboolean gst_photography_set_aperture (GstPhotography * photo, guint aperture);
|
|
|
|
gboolean gst_photography_set_exposure (GstPhotography * photo, guint exposure);
|
|
|
|
gboolean gst_photography_set_white_balance_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyWhiteBalanceMode wb_mode);
|
|
|
|
gboolean gst_photography_set_color_tone_mode (GstPhotography * photo,
|
|
|
|
GstPhotographyColorToneMode tone_mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
gboolean gst_photography_set_scene_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographySceneMode scene_mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
gboolean gst_photography_set_flash_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlashMode flash_mode);
|
2010-09-28 08:35:53 +00:00
|
|
|
gboolean gst_photography_set_noise_reduction (GstPhotography * photo,
|
2011-02-10 02:35:18 +00:00
|
|
|
GstPhotographyNoiseReduction noise_reduction);
|
2009-02-06 10:06:23 +00:00
|
|
|
gboolean gst_photography_set_zoom (GstPhotography * photo, gfloat zoom);
|
2010-01-26 13:18:24 +00:00
|
|
|
gboolean gst_photography_set_flicker_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFlickerReductionMode mode);
|
2010-01-26 13:18:24 +00:00
|
|
|
gboolean gst_photography_set_focus_mode (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyFocusMode mode);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyCaps gst_photography_get_capabilities (GstPhotography * photo);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
2009-02-20 10:03:03 +00:00
|
|
|
gboolean gst_photography_prepare_for_capture (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographyCapturePrepared func, GstCaps *capture_caps, gpointer user_data);
|
2009-02-06 10:06:23 +00:00
|
|
|
|
|
|
|
void gst_photography_set_autofocus (GstPhotography * photo, gboolean on);
|
|
|
|
|
2009-04-20 14:05:49 +00:00
|
|
|
gboolean gst_photography_set_config (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographySettings * config);
|
2009-04-20 14:05:49 +00:00
|
|
|
gboolean gst_photography_get_config (GstPhotography * photo,
|
2010-10-08 08:33:31 +00:00
|
|
|
GstPhotographySettings * config);
|
2009-04-20 14:05:49 +00:00
|
|
|
|
2009-02-06 10:06:23 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_PHOTOGRAPHY_H__ */
|