diff options
author | Filippo Argiolas <filippo.argiolas@gmail.com> | 2009-12-13 12:26:27 +0100 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2009-12-23 09:05:54 +0100 |
commit | 7a54c29574f5f3a756d8e2e5d20818204ab3be68 (patch) | |
tree | 252260a7125e21f3fe4aa0c5b02816ccfc44ff72 /libcheese/cheese-camera-device.h | |
parent | 09e9bf8d3298639dc7daf971f96a1139ae34b69f (diff) | |
download | cheese-7a54c29574f5f3a756d8e2e5d20818204ab3be68.tar.gz |
Some other step towards better cap handling
Boxify CheeseVideoFormat. Add some convenience method for getting caps
from formats.
Diffstat (limited to 'libcheese/cheese-camera-device.h')
-rw-r--r-- | libcheese/cheese-camera-device.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcheese/cheese-camera-device.h b/libcheese/cheese-camera-device.h index ec9fcc45..fedf5472 100644 --- a/libcheese/cheese-camera-device.h +++ b/libcheese/cheese-camera-device.h @@ -46,17 +46,21 @@ typedef struct GObjectClass parent_class; } CheeseCameraDeviceClass; +#define CHEESE_TYPE_VIDEO_FORMAT (cheese_video_format_get_type ()) + typedef struct { int width; int height; } CheeseVideoFormat; +GType cheese_video_format_get_type (void) G_GNUC_CONST; + CheeseCameraDevice *cheese_camera_device_new (void); GstCaps *cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device, CheeseVideoFormat *format); +CheeseVideoFormat *cheese_camera_device_get_best_format (CheeseCameraDevice *device); -GList *cheese_camera_device_get_readable_format_list (CheeseCameraDevice *device); const gchar *cheese_camera_device_get_name (CheeseCameraDevice *device); const gchar *cheese_camera_device_get_src (CheeseCameraDevice *device); const gchar *cheese_camera_device_get_id (CheeseCameraDevice *device); |