| Top |
| CheeseCameraDevice * | cheese_camera_device_new () |
| const gchar * | cheese_camera_device_get_name () |
| CheeseVideoFormat * | cheese_camera_device_get_best_format () |
| GstCaps * | cheese_camera_device_get_caps_for_format () |
| GList * | cheese_camera_device_get_format_list () |
| GstElement * | cheese_camera_device_get_src () |
CheeseCameraDevice * cheese_camera_device_new (GstDevice *device,GError **error);
Tries to create a new CheeseCameraDevice with the supplied device. If
construction fails, NULL is returned, and error
is set.
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.
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.
GstElement *
cheese_camera_device_get_src (CheeseCameraDevice *device);
Get the source GStreamer element for the device
.
typedef struct _CheeseCameraDevice CheeseCameraDevice;
Use the accessor functions below.
typedef struct {
gint width;
gint height;
} CheeseVideoFormat;
A description of the resolution, in pixels, of the format to capture with a CheeseCameraDevice.