summaryrefslogtreecommitdiffstats
path: root/src/uca-grabber.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:34:21 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:34:21 +0100
commita92101a277aed63224e1bd2077c99826e9e35f1d (patch)
treee2d38c3dfcfe46b483a13cc35e23f6ed453cf64e /src/uca-grabber.h
parent28873ccf3f3f32486049eb40cd639bbab86e09dc (diff)
downloaduca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.gz
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.bz2
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.xz
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.zip
Complete (simple) frame grabbing
Diffstat (limited to 'src/uca-grabber.h')
-rw-r--r--src/uca-grabber.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/uca-grabber.h b/src/uca-grabber.h
index 0e203e1..dd68688 100644
--- a/src/uca-grabber.h
+++ b/src/uca-grabber.h
@@ -44,9 +44,11 @@ typedef uint32_t (*uca_grabber_alloc) (struct uca_grabber_t *grabber, uint32_t n
* \param[in] n_frames Number of frames to acquire, -1 means infinite number
* \param[in] async Grab asynchronous if true
*/
-typedef uint32_t (*uca_grabber_acquire) (struct uca_grabber_t *grabber, int32_t n_frames, bool async);
+typedef uint32_t (*uca_grabber_acquire) (struct uca_grabber_t *grabber, int32_t n_frames);
-typedef uint32_t (*uca_grabber_grab) (struct uca_grabber_t *grabber, char *buffer, size_t n_bytes);
+typedef uint32_t (*uca_grabber_stop_acquire) (struct uca_grabber_t *grabber);
+
+typedef uint32_t (*uca_grabber_grab) (struct uca_grabber_t *grabber, void **buffer, size_t n_bytes);
struct uca_grabber_t {
@@ -58,9 +60,11 @@ struct uca_grabber_t {
uca_grabber_get_property get_property;
uca_grabber_alloc alloc;
uca_grabber_acquire acquire;
+ uca_grabber_stop_acquire stop_acquire;
uca_grabber_grab grab;
/* Private */
+ bool asynchronous;
void *user;
};