summaryrefslogtreecommitdiffstats
path: root/src/grabbers/me4.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 12:24:35 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 12:24:35 +0100
commit426687c80bbc52474a53939d7034d45180adc1f5 (patch)
tree589a722bee8a55d7b0c58be9d55e73bf31530f5d /src/grabbers/me4.c
parent42cf4c6d95639b785b5c4f0f704e3552df22ed9e (diff)
downloaduca-426687c80bbc52474a53939d7034d45180adc1f5.tar.gz
uca-426687c80bbc52474a53939d7034d45180adc1f5.tar.bz2
uca-426687c80bbc52474a53939d7034d45180adc1f5.tar.xz
uca-426687c80bbc52474a53939d7034d45180adc1f5.zip
Remember current frame number and remove frame dimensions in dummy.c
Diffstat (limited to 'src/grabbers/me4.c')
-rw-r--r--src/grabbers/me4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grabbers/me4.c b/src/grabbers/me4.c
index 7bb687b..23eed29 100644
--- a/src/grabbers/me4.c
+++ b/src/grabbers/me4.c
@@ -131,7 +131,7 @@ uint32_t uca_me4_stop_acquire(struct uca_grabber_t *grabber)
return UCA_NO_ERROR;
}
-uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer)
+uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer, uint32_t *frame_number)
{
int32_t last_frame;
if (grabber->asynchronous)
@@ -142,6 +142,7 @@ uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer)
if (last_frame <= 0)
return UCA_ERR_PROP_GENERAL;
+ *frame_number = last_frame;
*buffer = Fg_getImagePtrEx(GET_FG(grabber), last_frame, PORT_A, GET_MEM(grabber));
return UCA_NO_ERROR;
}