Cheese.CameraDevice¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The GStreamer device object of the video capture device |
||
r/w/co |
Human-readable name of the video capture device |
||
r/w/co |
Path of the video capture device |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class Cheese.CameraDevice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Use the accessor functions below.
- classmethod new(device)¶
- Parameters:
device (
Gst.Device
) – The GStreamer the device, as supplied byGst.DeviceMonitor
- Raises:
- Returns:
a new
Cheese.CameraDevice
, orNone
- Return type:
Tries to create a new
Cheese.CameraDevice
with the supplied device. If construction fails,None
is returned, and error is set.
- classmethod supported_format_caps()¶
-
Get the
Gst.Caps
that are supported for allCheese.CameraDevice
- get_best_format()¶
- Returns:
the highest-resolution supported
Cheese.VideoFormat
- Return type:
Get the
Cheese.VideoFormat
with the highest resolution with a width greater than 640 pixels and a framerate of greater than 15 FPS for this self. If no such format is found, get the highest available resolution instead.
- get_caps_for_format(format)¶
- Parameters:
format (
Cheese.VideoFormat
) – aCheese.VideoFormat
- Returns:
the
Gst.Caps
for the given format- Return type:
Get the
Gst.Caps
for the given format on the self.
- get_format_list()¶
- Returns:
list of
Cheese.VideoFormat
- Return type:
Get the sorted list of
Cheese.VideoFormat
that the self supports.
- get_name()¶
- Returns:
the human-readable name of the video capture device
- Return type:
Get a human-readable name for the device, as reported by udev, which is suitable for display to a user.
- get_path()¶
- Returns:
the path of the video capture device
- Return type:
Get path for the device, as reported by udev.
- get_src()¶
- Returns:
the source GStreamer element
- Return type:
Get the source GStreamer element for the self.
Property Details¶
- Cheese.CameraDevice.props.device¶
- Name:
device
- Type:
- Default Value:
- Flags:
GStreamer device object of the video capture device.
- Cheese.CameraDevice.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
Human-readable name of the video capture device, for display to the user.