diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-08-09 09:52:41 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-08-09 09:52:41 +0200 |
commit | eebd1ff77960a85a172878a286f8f3b0fad694d1 (patch) | |
tree | 58706eeb556df6ea28b639911c69f931b8f34aae /src/cameras/ipe.c | |
parent | a928623c86b19025f0bc63720e45d4ca4b3ad98c (diff) | |
download | libuca-eebd1ff77960a85a172878a286f8f3b0fad694d1.tar.gz libuca-eebd1ff77960a85a172878a286f8f3b0fad694d1.tar.bz2 libuca-eebd1ff77960a85a172878a286f8f3b0fad694d1.tar.xz libuca-eebd1ff77960a85a172878a286f8f3b0fad694d1.zip |
Prepare uca for IPE camera
Diffstat (limited to 'src/cameras/ipe.c')
-rw-r--r-- | src/cameras/ipe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c index 1f46867..2993409 100644 --- a/src/cameras/ipe.c +++ b/src/cameras/ipe.c @@ -90,6 +90,12 @@ static uint32_t uca_ipe_stop_recording(struct uca_camera_priv *cam) static uint32_t uca_ipe_grab(struct uca_camera_priv *cam, char *buffer, void *meta_data) { + pcilib_t *handle = cam->user; + size_t size = 0; + void *data = NULL; + if (pcilib_grab(handle, PCILIB_EVENTS_ALL, &size, &data, PCILIB_TIMEOUT_TRIGGER)) + return UCA_ERR_CAMERA; + memcpy(buffer, data, size); return UCA_NO_ERROR; } |