diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-28 17:48:55 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-28 17:48:55 +0100 |
commit | 28873ccf3f3f32486049eb40cd639bbab86e09dc (patch) | |
tree | 1411086a03efeee7ce8051a362bc2f83ac2a929b /src/uca-cam.h | |
parent | f6f2bafe19fd57c56201e79be6b7692f16f16099 (diff) | |
download | libuca-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.h | 12 |
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; |