Top | ![]() |
![]() |
![]() |
![]() |
CheeseCameraDevice * | cheese_camera_device_new () |
const gchar * | cheese_camera_device_get_name () |
const gchar * | cheese_camera_device_get_uuid () |
const gchar * | cheese_camera_device_get_device_node () |
CheeseVideoFormat * | cheese_camera_device_get_best_format () |
GstCaps * | cheese_camera_device_get_caps_for_format () |
GList * | cheese_camera_device_get_format_list () |
const gchar * | cheese_camera_device_get_src () |
gchar * | device-node | Read / Write / Construct Only |
gchar * | name | Read / Write / Construct Only |
gchar * | uuid | Read / Write / Construct Only |
guint | v4l-api-version | Read / Write / Construct Only |
CheeseCameraDevice * cheese_camera_device_new (const gchar *uuid
,const gchar *device_node
,const gchar *name
,guint v4l_api_version
,GError **error
);
Tries to create a new CheeseCameraDevice with the supplied parameters. If
construction fails, NULL
is returned, and error
is set.
uuid |
UUID of the device, as supplied by udev |
|
device_node |
path to the device node of the video capture device. |
[type filename] |
name |
human-readable name of the device, as supplied by udev |
|
v4l_api_version |
version of the Video4Linux API that the device uses. Currently either 1 or 2 |
|
error |
a location to store errors |
const gchar *
cheese_camera_device_get_name (CheeseCameraDevice *device
);
Get a human-readable name for the device, as reported by udev, which is suitable for display to a user.
const gchar *
cheese_camera_device_get_uuid (CheeseCameraDevice *device
);
Get the UUID of the device
, as reported by udev.
const gchar *
cheese_camera_device_get_device_node (CheeseCameraDevice *device
);
Get the path to the device node associated with the device
.
CheeseVideoFormat *
cheese_camera_device_get_best_format (CheeseCameraDevice *device
);
Get the CheeseVideoFormat with the highest resolution with a width greater
than 640 pixels and a framerate of greater than 15 FPS for this device
. If
no such format is found, get the highest available resolution instead.
GstCaps * cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device
,CheeseVideoFormat *format
);
Get the GstCaps for the given format
on the device
.
GList *
cheese_camera_device_get_format_list (CheeseCameraDevice *device
);
Get the sorted list of CheeseVideoFormat that the device
supports.
const gchar *
cheese_camera_device_get_src (CheeseCameraDevice *device
);
Get the name of the source GStreamer element for the device
. Currently,
this will be either v4lsrc or v4l2src, depending on the version of the
Video4Linux API that the device supports.
struct CheeseVideoFormat { gint width; gint height; };
A description of the resolution, in pixels, of the format to capture with a CheeseCameraDevice.
“device-node”
property “device-node” gchar *
Path to the device node of the video capture device.
Flags: Read / Write / Construct Only
Default value: NULL
“name”
property “name” gchar *
Human-readable name of the video capture device, for display to the user.
Flags: Read / Write / Construct Only
Default value: NULL
“uuid”
property “uuid” gchar *
UUID of the video capture device.
Flags: Read / Write / Construct Only
Default value: NULL