summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 17:48:55 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 17:48:55 +0100
commit28873ccf3f3f32486049eb40cd639bbab86e09dc (patch)
tree1411086a03efeee7ce8051a362bc2f83ac2a929b /src/uca-cam.h
parentf6f2bafe19fd57c56201e79be6b7692f16f16099 (diff)
downloadlibuca-28873ccf3f3f32486049eb40cd639bbab86e09dc.tar.gz
libuca-28873ccf3f3f32486049eb40cd639bbab86e09dc.tar.bz2
libuca-28873ccf3f3f32486049eb40cd639bbab86e09dc.tar.xz
libuca-28873ccf3f3f32486049eb40cd639bbab86e09dc.zip
Start grab interface
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r--src/uca-cam.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/uca-cam.h b/src/uca-cam.h
index 9f0c057..f9db0b7 100644
--- a/src/uca-cam.h
+++ b/src/uca-cam.h
@@ -47,11 +47,11 @@ typedef uint32_t (*uca_cam_set_property) (struct uca_camera_t *cam, enum uca_pro
*/
typedef uint32_t (*uca_cam_get_property) (struct uca_camera_t *cam, enum uca_property_ids property, void *data);
-/**
- * \brief Acquire one frame
- */
-typedef uint32_t (*uca_cam_acquire_image) (struct uca_camera_t *cam, void *buffer);
+typedef uint32_t (*uca_cam_start_recording) (struct uca_camera_t *cam);
+
+typedef uint32_t (*uca_cam_stop_recording) (struct uca_camera_t *cam);
+typedef uint32_t (*uca_cam_grab) (struct uca_camera_t *cam, char *buffer, size_t n_bytes);
enum uca_cam_state {
@@ -67,7 +67,9 @@ struct uca_camera_t {
/* Function pointers to camera-specific methods */
uca_cam_set_property set_property;
uca_cam_get_property get_property;
- uca_cam_acquire_image acquire_image;
+ uca_cam_start_recording start_recording;
+ uca_cam_stop_recording stop_recording;
+ uca_cam_grab grab;
/* Private */
uca_cam_destroy destroy;