summaryrefslogtreecommitdiff
path: root/libcheese/cheese-camera-device.h
diff options
context:
space:
mode:
authorFilippo Argiolas <filippo.argiolas@gmail.com>2010-01-18 13:10:55 +0100
committerFilippo Argiolas <filippo.argiolas@gmail.com>2010-01-18 20:49:22 +0100
commit84f6d4349afa906321ff2af68fcd924223fd9bc4 (patch)
tree9f0b4f813d84bae950a80b8b7c93d9d30539b7ca /libcheese/cheese-camera-device.h
parent3ef1b571f918c43fa7e91aaffaa8016a1c96ee3b (diff)
downloadcheese-84f6d4349afa906321ff2af68fcd924223fd9bc4.tar.gz
Limit maximum framerate to 30 frames per second
We don't really want those fancy webcams that claim to support huge framerates to slow down everything. 2.28.1 already limited it but I removed it while reworking caps handling. Implement GInitable interface in CheeseCameraDevice so we can abort construction and error out if something goes wrong while retrieving supported formats. https://bugzilla.gnome.org/show_bug.cgi?id=607238
Diffstat (limited to 'libcheese/cheese-camera-device.h')
-rw-r--r--libcheese/cheese-camera-device.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libcheese/cheese-camera-device.h b/libcheese/cheese-camera-device.h
index 92250b33..9aa085a5 100644
--- a/libcheese/cheese-camera-device.h
+++ b/libcheese/cheese-camera-device.h
@@ -26,7 +26,6 @@
#include <glib-object.h>
#include <gst/gst.h>
-
G_BEGIN_DECLS
#define CHEESE_TYPE_CAMERA_DEVICE (cheese_camera_device_get_type ())
@@ -61,7 +60,12 @@ GType cheese_video_format_get_type (void) G_GNUC_CONST;
GType cheese_camera_device_get_type (void) G_GNUC_CONST;
-CheeseCameraDevice *cheese_camera_device_new (void);
+CheeseCameraDevice *cheese_camera_device_new (const gchar *device_id,
+ const gchar *device_file,
+ const gchar *product_name,
+ const gchar *gstreamer_source,
+ GError **error);
+
GstCaps * cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device,
CheeseVideoFormat *format);
CheeseVideoFormat *cheese_camera_device_get_best_format (CheeseCameraDevice *device);