GstPhotography: GStreamer Bad Plugins 1.0 Library Reference Manual

## GstPhotography GstPhotography |

## Functions

void | (*GstPhotographyCapturePrepared) ()
gboolean | gst_photography_get_ev_compensation ()
gboolean | gst_photography_get_iso_speed ()
gboolean | gst_photography_get_aperture ()
gboolean | gst_photography_get_exposure ()
gboolean | gst_photography_get_white_balance_mode ()
gboolean | gst_photography_get_color_tone_mode ()
gboolean | gst_photography_get_scene_mode ()
gboolean | gst_photography_get_flash_mode ()
gboolean | gst_photography_get_flicker_mode ()
gboolean | gst_photography_get_focus_mode ()
gboolean | gst_photography_get_noise_reduction ()
gboolean | gst_photography_get_zoom ()
gboolean | gst_photography_set_ev_compensation ()
gboolean | gst_photography_set_iso_speed ()
gboolean | gst_photography_set_aperture ()
gboolean | gst_photography_set_exposure ()
gboolean | gst_photography_set_white_balance_mode ()
gboolean | gst_photography_set_color_tone_mode ()
gboolean | gst_photography_set_scene_mode ()
gboolean | gst_photography_set_flash_mode ()
gboolean | gst_photography_set_flicker_mode ()
gboolean | gst_photography_set_focus_mode ()
gboolean | gst_photography_set_noise_reduction ()
gboolean | gst_photography_set_zoom ()
GstPhotographyCaps | gst_photography_get_capabilities ()
gboolean | gst_photography_prepare_for_capture ()
void | gst_photography_set_autofocus ()
gboolean | gst_photography_set_config ()
gboolean | gst_photography_get_config ()

## Types and Values

| GstPhotography
enum | GstPhotographyNoiseReduction
enum | GstPhotographyWhiteBalanceMode
enum | GstPhotographyColorToneMode
enum | GstPhotographySceneMode
enum | GstPhotographyFlashMode
enum | GstPhotographyFlickerReductionMode
enum | GstPhotographyFocusMode
enum | GstPhotographyFocusStatus
enum | GstPhotographyCaps
enum | GstPhotographyShakeRisk
#define | GST_PHOTOGRAPHY_AUTOFOCUS_DONE
#define | GST_PHOTOGRAPHY_SHAKE_RISK
#define | GST_PHOTOGRAPHY_PROP_WB_MODE
#define | GST_PHOTOGRAPHY_PROP_SCENE_MODE
#define | GST_PHOTOGRAPHY_PROP_FLASH_MODE
#define | GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION
#define | GST_PHOTOGRAPHY_PROP_FOCUS_STATUS
#define | GST_PHOTOGRAPHY_PROP_CAPABILITIES
#define | GST_PHOTOGRAPHY_PROP_SHAKE_RISK
#define | GST_PHOTOGRAPHY_PROP_EV_COMP
#define | GST_PHOTOGRAPHY_PROP_ISO_SPEED
#define | GST_PHOTOGRAPHY_PROP_APERTURE
#define | GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS
#define | GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS
#define | GST_PHOTOGRAPHY_PROP_FLICKER_MODE
#define | GST_PHOTOGRAPHY_PROP_FOCUS_MODE
#define | GST_PHOTOGRAPHY_PROP_ZOOM

## Description

## Functions

### GstPhotographyCapturePrepared ()

    void
    (*GstPhotographyCapturePrepared) (gpointer data,
                                      const GstCaps *configured_caps);

### gst_photography_get_ev_compensation ()

    gboolean
    gst_photography_get_ev_compensation (GstPhotography *photo,
                                         gfloat *ev_comp);

### gst_photography_get_iso_speed ()

    gboolean
    gst_photography_get_iso_speed (GstPhotography *photo,
                                   guint *iso_speed);

### gst_photography_get_aperture ()

    gboolean
    gst_photography_get_aperture (GstPhotography *photo,
                                  guint *aperture);

### gst_photography_get_exposure ()

    gboolean
    gst_photography_get_exposure (GstPhotography *photo,
                                  guint32 *exposure);

### gst_photography_get_white_balance_mode ()

    gboolean
    gst_photography_get_white_balance_mode
                                   (GstPhotography *photo,
                                    GstPhotographyWhiteBalanceMode *wb_mode);

### gst_photography_get_color_tone_mode ()

    gboolean
    gst_photography_get_color_tone_mode (GstPhotography *photo,
                                         GstPhotographyColorToneMode *tone_mode);

### gst_photography_get_scene_mode ()

    gboolean
    gst_photography_get_scene_mode (GstPhotography *photo,
                                    GstPhotographySceneMode *scene_mode);

### gst_photography_get_flash_mode ()

    gboolean
    gst_photography_get_flash_mode (GstPhotography *photo,
                                    GstPhotographyFlashMode *flash_mode);

### gst_photography_get_flicker_mode ()

    gboolean
    gst_photography_get_flicker_mode (GstPhotography *photo,
                                      GstPhotographyFlickerReductionMode *mode);

### gst_photography_get_focus_mode ()

    gboolean
    gst_photography_get_focus_mode (GstPhotography *photo,
                                    GstPhotographyFocusMode *mode);

### gst_photography_get_noise_reduction ()

    gboolean
    gst_photography_get_noise_reduction (GstPhotography *photo,
                                         GstPhotographyNoiseReduction *noise_reduction);

### gst_photography_get_zoom ()

    gboolean
    gst_photography_get_zoom (GstPhotography *photo,
                              gfloat *zoom);

### gst_photography_set_ev_compensation ()

    gboolean
    gst_photography_set_ev_compensation (GstPhotography *photo,
                                         gfloat ev_comp);

### gst_photography_set_iso_speed ()

    gboolean
    gst_photography_set_iso_speed (GstPhotography *photo,
                                   guint iso_speed);

### gst_photography_set_aperture ()

    gboolean
    gst_photography_set_aperture (GstPhotography *photo,
                                  guint aperture);

### gst_photography_set_exposure ()

    gboolean
    gst_photography_set_exposure (GstPhotography *photo,
                                  guint exposure);

### gst_photography_set_white_balance_mode ()

    gboolean
    gst_photography_set_white_balance_mode
                                   (GstPhotography *photo,
                                    GstPhotographyWhiteBalanceMode wb_mode);

### gst_photography_set_color_tone_mode ()

    gboolean
    gst_photography_set_color_tone_mode (GstPhotography *photo,
                                         GstPhotographyColorToneMode tone_mode);

### gst_photography_set_scene_mode ()

    gboolean
    gst_photography_set_scene_mode (GstPhotography *photo,
                                    GstPhotographySceneMode scene_mode);

### gst_photography_set_flash_mode ()

    gboolean
    gst_photography_set_flash_mode (GstPhotography *photo,
                                    GstPhotographyFlashMode flash_mode);

### gst_photography_set_flicker_mode ()

    gboolean
    gst_photography_set_flicker_mode (GstPhotography *photo,
                                      GstPhotographyFlickerReductionMode mode);

### gst_photography_set_focus_mode ()

    gboolean
    gst_photography_set_focus_mode (GstPhotography *photo,
                                    GstPhotographyFocusMode mode);

### gst_photography_set_noise_reduction ()

    gboolean
    gst_photography_set_noise_reduction (GstPhotography *photo,
                                         GstPhotographyNoiseReduction noise_reduction);

### gst_photography_set_zoom ()

    gboolean
    gst_photography_set_zoom (GstPhotography *photo,
                              gfloat zoom);

### gst_photography_get_capabilities ()

    GstPhotographyCaps
    gst_photography_get_capabilities (GstPhotography *photo);

### gst_photography_prepare_for_capture ()

    gboolean
    gst_photography_prepare_for_capture (GstPhotography *photo,
                                         GstPhotographyCapturePrepared func,
                                         GstCaps *capture_caps,
                                         gpointer user_data);

### gst_photography_set_autofocus ()

    void
    gst_photography_set_autofocus (GstPhotography *photo,
                                   gboolean on);

### gst_photography_set_config ()

    gboolean
    gst_photography_set_config (GstPhotography *photo,
                                GstPhotographySettings *config);

### gst_photography_get_config ()

    gboolean
    gst_photography_get_config (GstPhotography *photo,
                                GstPhotographySettings *config);

## Types and Values

### GstPhotography

    typedef struct _GstPhotography GstPhotography;

### enum GstPhotographyNoiseReduction

#### Members

GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER |  |
GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC |  |
GST_PHOTOGRAPHY_NOISE_REDUCTION_TEMPORAL |  |
GST_PHOTOGRAPHY_NOISE_REDUCTION_FIXED |  |
GST_PHOTOGRAPHY_NOISE_REDUCTION_EXTRA |  |

### enum GstPhotographyWhiteBalanceMode

#### Members

GST_PHOTOGRAPHY_WB_MODE_AUTO |  |
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 |  |
GST_PHOTOGRAPHY_WB_MODE_MANUAL |  |
GST_PHOTOGRAPHY_WB_MODE_WARM_FLUORESCENT |  |
GST_PHOTOGRAPHY_WB_MODE_SHADE |  |

### enum GstPhotographyColorToneMode

#### Members

GST_PHOTOGRAPHY_COLOR_TONE_MODE_NORMAL |  |
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 |  |
GST_PHOTOGRAPHY_COLOR_TONE_MODE_POSTERIZE |  |
GST_PHOTOGRAPHY_COLOR_TONE_MODE_WHITEBOARD |  |
GST_PHOTOGRAPHY_COLOR_TONE_MODE_BLACKBOARD |  |
GST_PHOTOGRAPHY_COLOR_TONE_MODE_AQUA |  |

### enum GstPhotographySceneMode

#### Members

GST_PHOTOGRAPHY_SCENE_MODE_MANUAL |  |
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 |  |
GST_PHOTOGRAPHY_SCENE_MODE_ACTION |  |
GST_PHOTOGRAPHY_SCENE_MODE_NIGHT_PORTRAIT |  |
GST_PHOTOGRAPHY_SCENE_MODE_THEATRE |  |
GST_PHOTOGRAPHY_SCENE_MODE_BEACH |  |
GST_PHOTOGRAPHY_SCENE_MODE_SNOW |  |
GST_PHOTOGRAPHY_SCENE_MODE_SUNSET |  |
GST_PHOTOGRAPHY_SCENE_MODE_STEADY_PHOTO |  |
GST_PHOTOGRAPHY_SCENE_MODE_FIREWORKS |  |
GST_PHOTOGRAPHY_SCENE_MODE_PARTY |  |
GST_PHOTOGRAPHY_SCENE_MODE_CANDLELIGHT |  |
GST_PHOTOGRAPHY_SCENE_MODE_BARCODE |  |

### enum GstPhotographyFlashMode

#### Members

GST_PHOTOGRAPHY_FLASH_MODE_AUTO |  |
GST_PHOTOGRAPHY_FLASH_MODE_OFF |  |
GST_PHOTOGRAPHY_FLASH_MODE_ON |  |
GST_PHOTOGRAPHY_FLASH_MODE_FILL_IN |  |
GST_PHOTOGRAPHY_FLASH_MODE_RED_EYE |  |

### enum GstPhotographyFlickerReductionMode

#### Members

GST_PHOTOGRAPHY_FLICKER_REDUCTION_OFF |  |
GST_PHOTOGRAPHY_FLICKER_REDUCTION_50HZ |  |
GST_PHOTOGRAPHY_FLICKER_REDUCTION_60HZ |  |
GST_PHOTOGRAPHY_FLICKER_REDUCTION_AUTO |  |

### enum GstPhotographyFocusMode

#### Members

GST_PHOTOGRAPHY_FOCUS_MODE_AUTO |  |
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 |  |
GST_PHOTOGRAPHY_FOCUS_MODE_MANUAL |  |

### enum GstPhotographyFocusStatus

#### Members

GST_PHOTOGRAPHY_FOCUS_STATUS_NONE |  |
GST_PHOTOGRAPHY_FOCUS_STATUS_RUNNING |  |
GST_PHOTOGRAPHY_FOCUS_STATUS_FAIL |  |
GST_PHOTOGRAPHY_FOCUS_STATUS_SUCCESS |  |

### enum GstPhotographyCaps

#### Members

GST_PHOTOGRAPHY_CAPS_NONE |  |
GST_PHOTOGRAPHY_CAPS_EV_COMP |  |
GST_PHOTOGRAPHY_CAPS_ISO_SPEED |  |
GST_PHOTOGRAPHY_CAPS_WB_MODE |  |
GST_PHOTOGRAPHY_CAPS_TONE |  |
GST_PHOTOGRAPHY_CAPS_SCENE |  |
GST_PHOTOGRAPHY_CAPS_FLASH |  |
GST_PHOTOGRAPHY_CAPS_ZOOM |  |
GST_PHOTOGRAPHY_CAPS_FOCUS |  |
GST_PHOTOGRAPHY_CAPS_APERTURE |  |
GST_PHOTOGRAPHY_CAPS_EXPOSURE |  |
GST_PHOTOGRAPHY_CAPS_SHAKE |  |
GST_PHOTOGRAPHY_CAPS_WHITE_BALANCE |  |
GST_PHOTOGRAPHY_CAPS_NOISE_REDUCTION |  |
GST_PHOTOGRAPHY_CAPS_FLICKER_REDUCTION |  |
GST_PHOTOGRAPHY_CAPS_ALL |  |

### enum GstPhotographyShakeRisk

#### Members

GST_PHOTOGRAPHY_SHAKE_RISK_LOW |  |
GST_PHOTOGRAPHY_SHAKE_RISK_MEDIUM |  |
GST_PHOTOGRAPHY_SHAKE_RISK_HIGH |  |

### GST_PHOTOGRAPHY_AUTOFOCUS_DONE

    #define GST_PHOTOGRAPHY_AUTOFOCUS_DONE "autofocus-done"

### GST_PHOTOGRAPHY_SHAKE_RISK

    #define GST_PHOTOGRAPHY_SHAKE_RISK "shake-risk"

### GST_PHOTOGRAPHY_PROP_WB_MODE

    #define GST_PHOTOGRAPHY_PROP_WB_MODE      "white-balance-mode"

### GST_PHOTOGRAPHY_PROP_SCENE_MODE

    #define GST_PHOTOGRAPHY_PROP_SCENE_MODE   "scene-mode"

### GST_PHOTOGRAPHY_PROP_FLASH_MODE

    #define GST_PHOTOGRAPHY_PROP_FLASH_MODE   "flash-mode"

### GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION

    #define GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION   "noise-reduction"

### GST_PHOTOGRAPHY_PROP_FOCUS_STATUS

    #define GST_PHOTOGRAPHY_PROP_FOCUS_STATUS "focus-status"

### GST_PHOTOGRAPHY_PROP_CAPABILITIES

    #define GST_PHOTOGRAPHY_PROP_CAPABILITIES "capabilities"

### GST_PHOTOGRAPHY_PROP_SHAKE_RISK

    #define GST_PHOTOGRAPHY_PROP_SHAKE_RISK   "shake-risk"

### GST_PHOTOGRAPHY_PROP_EV_COMP

    #define GST_PHOTOGRAPHY_PROP_EV_COMP      "ev-compensation"

### GST_PHOTOGRAPHY_PROP_ISO_SPEED

    #define GST_PHOTOGRAPHY_PROP_ISO_SPEED    "iso-speed"

### GST_PHOTOGRAPHY_PROP_APERTURE

    #define GST_PHOTOGRAPHY_PROP_APERTURE     "aperture"

### GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS

    #define             GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS

### GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS

    #define             GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS

### GST_PHOTOGRAPHY_PROP_FLICKER_MODE

    #define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"

### GST_PHOTOGRAPHY_PROP_FOCUS_MODE

    #define GST_PHOTOGRAPHY_PROP_FOCUS_MODE   "focus-mode"

### GST_PHOTOGRAPHY_PROP_ZOOM

    #define GST_PHOTOGRAPHY_PROP_ZOOM   "zoom"