Top |
The interface allows access to some common digital image capture parameters.
void (*GstPhotographyCapturePrepared) (gpointer data
,const GstCaps *configured_caps
);
This callback will be called when the element has finished preparations
and is ready for image capture. The next buffer that element produces
will be of configured_caps
format, so this callback allows the application
to e.g. reconfigure capsfilters in pipeline if any.
data |
user data that has been given, when registering the callback |
|
configured_caps |
GstCaps defining the configured capture format. Ownership of these caps stays in the element. |
gboolean gst_photography_get_ev_compensation (GstPhotography *photo
,gfloat *ev_comp
);
Get the ev compensation value for the GstElement
gboolean gst_photography_get_iso_speed (GstPhotography *photo
,guint *iso_speed
);
Get the ISO value (light sensivity) for the GstElement
gboolean gst_photography_get_aperture (GstPhotography *photo
,guint *aperture
);
Get the aperture value for the GstElement
gboolean gst_photography_get_exposure (GstPhotography *photo
,guint32 *exposure
);
Get the fixed exposure time (in us) for the GstElement
gboolean gst_photography_get_white_balance_mode (GstPhotography *photo
,GstPhotographyWhiteBalanceMode *wb_mode
);
Get the white balance mode for the GstElement
gboolean gst_photography_get_color_tone_mode (GstPhotography *photo
,GstPhotographyColorToneMode *tone_mode
);
Get the color tone mode for the GstElement
photo |
GstPhotography interface of a GstElement |
|
tone_mode |
GstPhotographyColorToneMode to get |
gboolean gst_photography_get_scene_mode (GstPhotography *photo
,GstPhotographySceneMode *scene_mode
);
Get the scene mode for the GstElement
gboolean gst_photography_get_flash_mode (GstPhotography *photo
,GstPhotographyFlashMode *flash_mode
);
Get the flash mode for the GstElement
gboolean gst_photography_get_flicker_mode (GstPhotography *photo
,GstPhotographyFlickerReductionMode *mode
);
Get the flicker mode value for the GstElement
gboolean gst_photography_get_focus_mode (GstPhotography *photo
,GstPhotographyFocusMode *mode
);
Get the focus mode value for the GstElement
gboolean gst_photography_get_noise_reduction (GstPhotography *photo
,GstPhotographyNoiseReduction *noise_reduction
);
Get the noise reduction mode for the GstElement
photo |
GstPhotography interface of a GstElement |
|
noise_reduction |
GstPhotographyNoiseReductionMode to get |
gboolean gst_photography_get_zoom (GstPhotography *photo
,gfloat *zoom
);
Get the zoom value for the GstElement
gboolean gst_photography_set_ev_compensation (GstPhotography *photo
,gfloat ev_comp
);
Set the ev compensation value for the GstElement
gboolean gst_photography_set_iso_speed (GstPhotography *photo
,guint iso_speed
);
Set the ISO value (light sensivity) for the GstElement
gboolean gst_photography_set_aperture (GstPhotography *photo
,guint aperture
);
Set the aperture value for the GstElement
gboolean gst_photography_set_exposure (GstPhotography *photo
,guint exposure
);
Set the fixed exposure time (in us) for the GstElement
gboolean gst_photography_set_white_balance_mode (GstPhotography *photo
,GstPhotographyWhiteBalanceMode wb_mode
);
Set the white balance mode for the GstElement
gboolean gst_photography_set_color_tone_mode (GstPhotography *photo
,GstPhotographyColorToneMode tone_mode
);
Set the color tone mode for the GstElement
photo |
GstPhotography interface of a GstElement |
|
tone_mode |
GstPhotographyColorToneMode to set |
gboolean gst_photography_set_scene_mode (GstPhotography *photo
,GstPhotographySceneMode scene_mode
);
Set the scene mode for the GstElement
gboolean gst_photography_set_flash_mode (GstPhotography *photo
,GstPhotographyFlashMode flash_mode
);
Set the flash mode for the GstElement
gboolean gst_photography_set_flicker_mode (GstPhotography *photo
,GstPhotographyFlickerReductionMode mode
);
Set the flicker mode value for the GstElement.
gboolean gst_photography_set_focus_mode (GstPhotography *photo
,GstPhotographyFocusMode mode
);
Set the focus mode value for the GstElement.
gboolean gst_photography_set_noise_reduction (GstPhotography *photo
,GstPhotographyNoiseReduction noise_reduction
);
Set the noise reduction mode for the GstElement
photo |
GstPhotography interface of a GstElement |
|
noise_reduction |
GstPhotographyNoiseReductionMode to set |
gboolean gst_photography_set_zoom (GstPhotography *photo
,gfloat zoom
);
Set the zoom value for the GstElement. E.g. 1.0 to get original image and 3.0 for 3x zoom and so on.
GstPhotographyCaps
gst_photography_get_capabilities (GstPhotography *photo
);
Get GstPhotographyCaps bitmask value that indicates what photography interface features the GstElement supports
gboolean gst_photography_prepare_for_capture (GstPhotography *photo
,GstPhotographyCapturePrepared func
,GstCaps *capture_caps
,gpointer user_data
);
Start preparations for capture. Preparations can take indeterminate
amount of time and func
callback is called after preparations are
done. Image capture will begin after callback returns.
photo |
GstPhotography interface of a GstElement |
|
func |
callback that is called after capturing has been prepared |
|
capture_caps |
GstCaps defining the desired format of the captured image |
|
user_data |
user data that will be passed to the callback |
void gst_photography_set_autofocus (GstPhotography *photo
,gboolean on
);
Start or stop autofocusing. GST_PHOTOGRAPHY_AUTOFOCUS_DONE
message is posted to bus when autofocusing has finished.
gboolean gst_photography_set_config (GstPhotography *photo
,GstPhotographySettings *config
);
Set all configuration settings at once.
photo |
GstPhotography interface of a GstElement |
|
config |
GstPhotographySettings containg the configuration |
gboolean gst_photography_get_config (GstPhotography *photo
,GstPhotographySettings *config
);
Get all configuration settings at once.
photo |
GstPhotography interface of a GstElement |
|
config |
GstPhotographySettings containg the configuration |
Noise Reduction features of a photography capture or filter element.
Adaptive noise reduction on Bayer format |
||
reduces the noise on Y and 2-chroma images. |
||
Multi-frame adaptive NR, provided for the video mode |
||
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. |
||
Extra Noise Reduction. In the case of high-ISO capturing, some noise remains after YCC NR. XNR reduces this remaining noise. |
Modes for white balance control.
Choose white balance mode automatically |
||
Mode for daylight conditions |
||
Mode for cloudy conditions |
||
Mode for sunset conditions |
||
Mode for tungsten lighting |
||
Mode for fluorescent lighting |
||
Disable automatic white balance adjustment and keep current values. |
||
Mode for warm fluorescent lighting (Since 1.2) |
||
Mode for shade lighting (Since 1.2) |
Modes for special color effects.
Each mode contains preset GstPhotography options in order to produce good capturing result in certain scene.
Set individual options manually |
||
Mode for close objects |
||
Mode for portraits |
||
Mode for landscapes |
||
Mode for scene with fast motion |
||
Mode for night conditions |
||
Choose scene mode automatically |
||
Take photos of fast moving objects (Since 1.2) |
||
Take people pictures at night (Since 1.2) |
||
Take photos in a theater (Since 1.2) |
||
Take pictures on the beach (Since 1.2) |
||
Take pictures on the snow (Since 1.2) |
||
Take sunset photos (Since 1.2) |
||
Avoid blurry pictures (for example, due to hand shake) (Since 1.2) |
||
For shooting firework displays (Since 1.2) |
||
Take indoor low-light shot (Since 1.2) |
||
Capture the naturally warm color of scenes lit by candles (Since 1.2) |
||
Applications are looking for a barcode (Since 1.2) |
Modes for flash control.
Choose mode for focusing algorithm.
Choose focus mode automatically |
||
Mode for focusing objects close to lens |
||
Mode for portraits |
||
Mode for landscapes and far away objects |
||
Mode for maximum depth of field, keeping focus acceptable both in infinify and as close objects as possible |
||
Extended focus mode |
||
Continuous autofocus mode |
||
Extended continuous autofocus mode |
||
Disable automatic focusing and keep current value. “lens-focus” property can be used to change focus manually. |
Status of the focusing operation, used in GST_PHOTOGRAPHY_AUTOFOCUS_DONE message.
Bitmask that indicates which GstPhotography interface features an instance supports.
Risk level of captured image becoming "shaken" due to camera movement and too long exposure time. Used in GST_PHOTOGRAPHY_SHAKE_RISK GstMessage.
#define GST_PHOTOGRAPHY_AUTOFOCUS_DONE "autofocus-done"
Name of custom GstMessage that will be posted to GstBus when autofocusing is complete. This message contains following fields:
GstPhotographyFocusStatus
"status"
:
Tells if focusing succeeded or failed.
G_TYPE_INT
"focus-window-rows"
:
Tells number of focus matrix rows.
G_TYPE_INT
"focus-window-columns"
:
Tells number of focus matrix columns.
G_TYPE_INT
"focus-window-mask"
:
Bitmask containing rows x columns bits which mark the focus points in the
focus matrix. Lowest bit (LSB) always represents the top-left corner of the
focus matrix. This field is only valid when focusing status is SUCCESS.
#define GST_PHOTOGRAPHY_SHAKE_RISK "shake-risk"
Name of custom GstMessage that is posted to GstBus during autofocusing process. It is posted if there is change in the risk of captured image becoming "shaken" due to camera movement and too long exposure time.
This message contains following fields:
GstPhotographyShakeRisk
"status"
:
Tells risk level of capturing shaken image.
#define GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS
#define GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS