Class: ClutterGst::Camera
- Inherits:
-
Object
- Object
- ClutterGst::Camera
- Defined in:
- (unknown)
Overview
Base class for Clutter::GstCamera.
Instance Method Summary collapse
- #brightness=(value) ⇒ Boolean
-
#camera_device ⇒ ClutterGst::CameraDevice
Retrieve the current selected camera device.
-
#camera_device=(device) ⇒ Boolean
Set the new active camera device.
- #contrast=(value) ⇒ Boolean
-
#device ⇒ ClutterGst::CameraDevice
Device.
- #device=(device) ⇒ ClutterGst::CameraDevice
-
#filter ⇒ Gst::Element
Retrieve the current filter being used.
-
#filter=(filter) ⇒ Boolean
Set the filter element to be used.
-
#gamma=(value) ⇒ Boolean
Set the gamma value.
- #get_brightness(cur_value) ⇒ Boolean
- #get_brightness_range(min_value, max_value, default_value) ⇒ Boolean
-
#get_color_balance_property(property, cur_value) ⇒ Boolean
Retrieve the current value for the color balance property property,.
-
#get_color_balance_property_range(property, min_value, max_value, default_value) ⇒ Boolean
Retrieve the minimum, maximum and default values for the color balance property property,.
- #get_contrast(cur_value) ⇒ Boolean
- #get_contrast_range(min_value, max_value, default_value) ⇒ Boolean
-
#get_gamma(cur_value) ⇒ Boolean
Retrieve the current gamma value.
-
#get_gamma_range(min_value, max_value, default_value) ⇒ Boolean
Retrieve the minimum, maximum and default gamma values.
- #get_hue(cur_value) ⇒ Boolean
- #get_hue_range(min_value, max_value, default_value) ⇒ Boolean
- #get_saturation(cur_value) ⇒ Boolean
- #get_saturation_range(min_value, max_value, default_value) ⇒ Boolean
- #hue=(value) ⇒ Boolean
-
#initialize ⇒ ClutterGst::Camera
constructor
Create a camera actor.
-
#is_ready_for_capture ⇒ Boolean
Check whether the self is ready for video/photo capture.
-
#is_recording_video ⇒ Boolean
Check whether the self is recording video.
-
#photo_profile=(profile) ⇒ nil
Set the encoding profile to be used for photo captures.
-
#remove_filter ⇒ Boolean
Remove the current filter, if any.
- #saturation=(value) ⇒ Boolean
-
#set_color_balance_property(property, value) ⇒ Boolean
Set the value for the color balance property property to value.
-
#start_video_recording(filename) ⇒ Boolean
Start a video recording with the self and save it to filename.
-
#stop_video_recording ⇒ nil
Stop recording video on the self.
-
#supports_color_balance ⇒ Boolean
Check whether the self supports color balance.
-
#supports_gamma_correction ⇒ Boolean
Check whether the self supports gamma correction.
-
#take_photo(filename) ⇒ Boolean
Take a photo with the self and save it to filename.
-
#take_photo_pixbuf ⇒ Boolean
Take a photo with the self and emit it in the ::photo-taken signal as a Gdk::Pixbuf.
-
#video_profile=(profile) ⇒ nil
Set the encoding profile to be used for video recording.
Constructor Details
#initialize ⇒ ClutterGst::Camera
Create a camera actor.
This function has to be called from Clutter's main thread. While GStreamer will spawn threads to do its work, we want all the GL calls to happen in the same thread. Clutter-gst knows which thread it is by assuming this constructor is called from the Clutter thread.
Instance Method Details
#brightness=(value) ⇒ Boolean
#camera_device ⇒ ClutterGst::CameraDevice
Retrieve the current selected camera device.
#camera_device=(device) ⇒ Boolean
Set the new active camera device.
#contrast=(value) ⇒ Boolean
#device ⇒ ClutterGst::CameraDevice
Returns device.
#device=(device) ⇒ ClutterGst::CameraDevice
#filter ⇒ Gst::Element
Retrieve the current filter being used.
#filter=(filter) ⇒ Boolean
Set the filter element to be used. Filters can be used for effects, image processing, etc.
#gamma=(value) ⇒ Boolean
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().
#get_brightness(cur_value) ⇒ Boolean
#get_brightness_range(min_value, max_value, default_value) ⇒ Boolean
#get_color_balance_property(property, cur_value) ⇒ Boolean
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().
#get_color_balance_property_range(property, min_value, max_value, default_value) ⇒ Boolean
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().
#get_contrast(cur_value) ⇒ Boolean
#get_contrast_range(min_value, max_value, default_value) ⇒ Boolean
#get_gamma(cur_value) ⇒ Boolean
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().
#get_gamma_range(min_value, max_value, default_value) ⇒ Boolean
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().
#get_hue(cur_value) ⇒ Boolean
#get_hue_range(min_value, max_value, default_value) ⇒ Boolean
#get_saturation(cur_value) ⇒ Boolean
#get_saturation_range(min_value, max_value, default_value) ⇒ Boolean
#hue=(value) ⇒ Boolean
#is_ready_for_capture ⇒ Boolean
Check whether the self is ready for video/photo capture.
#is_recording_video ⇒ Boolean
Check whether the self is recording video.
#photo_profile=(profile) ⇒ nil
Set the encoding profile to be used for photo captures. The default profile saves photos as JPEG images.
#remove_filter ⇒ Boolean
Remove the current filter, if any.
#saturation=(value) ⇒ Boolean
#set_color_balance_property(property, value) ⇒ Boolean
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().
#start_video_recording(filename) ⇒ Boolean
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. recording will be saved
#stop_video_recording ⇒ nil
Stop recording video on the self.
#supports_color_balance ⇒ Boolean
Check whether the self supports color balance.
#supports_gamma_correction ⇒ Boolean
Check whether the self supports gamma correction.
#take_photo(filename) ⇒ Boolean
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. photo will be saved
#take_photo_pixbuf ⇒ Boolean
Take a photo with the self and emit it in the ::photo-taken signal as a Gdk::Pixbuf. This method requires that self is playing and ready for capture.
#video_profile=(profile) ⇒ nil
Set the encoding profile to be used for video recording. The default profile saves videos as Ogg/Theora videos.