| Top |
| void | photo-saved | Action |
| void | photo-taken | Action |
| void | ready-for-capture | Run Last |
| void | video-saved | Action |
ClutterGstCamera *
clutter_gst_camera_new (void);
Create a camera actor.
gboolean clutter_gst_camera_get_brightness (ClutterGstCamera *self,gdouble *cur_value);
gboolean clutter_gst_camera_get_brightness_range (ClutterGstCamera *self,gdouble *min_value,gdouble *max_value,gdouble *default_value);
ClutterGstCameraDevice *
clutter_gst_camera_get_camera_device (ClutterGstCamera *self);
Retrieve the current selected camera device.
gboolean clutter_gst_camera_get_color_balance_property (ClutterGstCamera *self,const gchar *property,gdouble *cur_value);
Retrieve the current value for the color balance property property
,
This method will return FALSE if property
does not exist or color balance is not
supported on self
.
See clutter_gst_camera_supports_color_balance().
gboolean clutter_gst_camera_get_color_balance_property_range (ClutterGstCamera *self,const gchar *property,gdouble *min_value,gdouble *max_value,gdouble *default_value);
Retrieve the minimum, maximum and default values for the color balance property property
,
This method will return FALSE if property
does not exist or color balance is not
supported on self
.
See clutter_gst_camera_supports_color_balance().
gboolean clutter_gst_camera_get_contrast (ClutterGstCamera *self,gdouble *cur_value);
gboolean clutter_gst_camera_get_contrast_range (ClutterGstCamera *self,gdouble *min_value,gdouble *max_value,gdouble *default_value);
GstElement *
clutter_gst_camera_get_filter (ClutterGstCamera *self);
Retrieve the current filter being used.
gboolean clutter_gst_camera_get_gamma (ClutterGstCamera *self,gdouble *cur_value);
Retrieve the current gamma value.
This method will return FALSE if gamma correction is not
supported on self
.
See clutter_gst_camera_supports_gamma_correction().
gboolean clutter_gst_camera_get_gamma_range (ClutterGstCamera *self,gdouble *min_value,gdouble *max_value,gdouble *default_value);
Retrieve the minimum, maximum and default gamma values.
This method will return FALSE if gamma correction is not
supported on self
.
See clutter_gst_camera_supports_gamma_correction().
gboolean clutter_gst_camera_get_hue (ClutterGstCamera *self,gdouble *cur_value);
gboolean clutter_gst_camera_get_hue_range (ClutterGstCamera *self,gdouble *min_value,gdouble *max_value,gdouble *default_value);
gboolean clutter_gst_camera_get_saturation (ClutterGstCamera *self,gdouble *cur_value);
gboolean clutter_gst_camera_get_saturation_range (ClutterGstCamera *self,gdouble *min_value,gdouble *max_value,gdouble *default_value);
gboolean
clutter_gst_camera_is_ready_for_capture
(ClutterGstCamera *self);
Check whether the self
is ready for video/photo capture.
gboolean
clutter_gst_camera_is_recording_video (ClutterGstCamera *self);
Check whether the self
is recording video.
gboolean
clutter_gst_camera_remove_filter (ClutterGstCamera *self);
Remove the current filter, if any.
gboolean clutter_gst_camera_set_brightness (ClutterGstCamera *self,gdouble value);
gboolean clutter_gst_camera_set_camera_device (ClutterGstCamera *self,ClutterGstCameraDevice *device);
Set the new active camera device.
gboolean clutter_gst_camera_set_color_balance_property (ClutterGstCamera *self,const gchar *property,gdouble value);
Set the value for the color balance property property
to value
.
Allowed values can be retrieved with
clutter_gst_camera_get_color_balance_property_range().
This method will return FALSE if property
does not exist or color balance is not
supported on self
.
See clutter_gst_camera_supports_color_balance().
gboolean clutter_gst_camera_set_contrast (ClutterGstCamera *self,gdouble value);
gboolean clutter_gst_camera_set_filter (ClutterGstCamera *self,GstElement *filter);
Set the filter element to be used. Filters can be used for effects, image processing, etc.
gboolean clutter_gst_camera_set_gamma (ClutterGstCamera *self,gdouble value);
Set the gamma value.
Allowed values can be retrieved with
clutter_gst_camera_get_gamma_range().
This method will return FALSE if gamma correction is not
supported on self
.
See clutter_gst_camera_supports_gamma_correction().
gboolean clutter_gst_camera_set_hue (ClutterGstCamera *self,gdouble value);
void clutter_gst_camera_set_photo_profile (ClutterGstCamera *self,GstEncodingProfile *profile);
Set the encoding profile to be used for photo captures. The default profile saves photos as JPEG images.
gboolean clutter_gst_camera_set_saturation (ClutterGstCamera *self,gdouble value);
void clutter_gst_camera_set_video_profile (ClutterGstCamera *self,GstEncodingProfile *profile);
Set the encoding profile to be used for video recording. The default profile saves videos as Ogg/Theora videos.
gboolean clutter_gst_camera_start_video_recording (ClutterGstCamera *self,const gchar *filename);
Start a video recording with the self
and save it to filename
.
This method requires that self
is playing and ready for capture.
The ::video-saved signal will be emitted when the video is saved.
void
clutter_gst_camera_stop_video_recording
(ClutterGstCamera *self);
Stop recording video on the self
.
gboolean
clutter_gst_camera_supports_color_balance
(ClutterGstCamera *self);
Check whether the self
supports color balance.
gboolean
clutter_gst_camera_supports_gamma_correction
(ClutterGstCamera *self);
Check whether the self
supports gamma correction.
gboolean clutter_gst_camera_take_photo (ClutterGstCamera *self,const gchar *filename);
Take a photo with the self
and save it to filename
.
This method requires that self
is playing and ready for capture.
The ::photo-saved signal will be emitted when the video is saved.
gboolean
clutter_gst_camera_take_photo_pixbuf (ClutterGstCamera *self);
Take a photo with the self
and emit it in the ::photo-taken signal as a
GdkPixbuf.
This method requires that self
is playing and ready for capture.
struct ClutterGstCamera;
Implementation of ClutterGstPlayer that displays camera streams using GStreamer.
The ClutterGstCamera structure contains only private data and should not be accessed directly.
“photo-saved” signalvoid user_function (ClutterGstCamera *self, gpointer user_data)
The ::photo-saved signal is emitted when a photo was saved to disk.
self |
the actor which received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“photo-taken” signalvoid user_function (ClutterGstCamera *self, GdkPixbuf *pixbuf, gpointer user_data)
The ::photo-taken signal is emitted when a photo was taken.
self |
the actor which received the signal |
|
pixbuf |
the photo taken as a GdkPixbuf |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action
“ready-for-capture” signalvoid user_function (ClutterGstCamera *self, gboolean ready, gpointer user_data)
The ::ready-for-capture signal is emitted whenever the value of clutter_gst_camera_is_ready_for_capture changes.
self |
the actor which received the signal |
|
ready |
whether the |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“video-saved” signalvoid user_function (ClutterGstCamera *self, gpointer user_data)
The ::video-saved signal is emitted when a video was saved to disk.
self |
the actor which received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action