From a95fb6dad12ef73b05e79198763465f418090e99 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 18 Mar 2011 10:42:11 +0100 Subject: Add (possible) meta data transmission and integrate callback in pco and pf --- test/control.c | 2 +- test/grab-async.c | 2 +- test/grab.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/control.c b/test/control.c index c220e21..dcb8c8e 100644 --- a/test/control.c +++ b/test/control.c @@ -96,7 +96,7 @@ void *grab_thread(void *args) struct uca_camera *cam = data->cam; while (data->running) { - cam->grab(cam, (char *) data->buffer); + cam->grab(cam, (char *) data->buffer, NULL); if (data->pixel_size == 1) convert_8bit_to_rgb(data->pixels, data->buffer, data->width, data->height); else if (data->pixel_size == 2) diff --git a/test/grab-async.c b/test/grab-async.c index ba3ae85..1e0a90b 100644 --- a/test/grab-async.c +++ b/test/grab-async.c @@ -5,7 +5,7 @@ #include "uca.h" #include "uca-cam.h" -void grab_callback(uint32_t image_number, void *buffer, void *user) +void grab_callback(uint32_t image_number, void *buffer, void *meta_data, void *user) { printf("got picture number %i\n", image_number); } diff --git a/test/grab.c b/test/grab.c index 446a117..3e429ed 100644 --- a/test/grab.c +++ b/test/grab.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) uint16_t *buffer = (uint16_t *) malloc(width * height * pixel_size); cam->start_recording(cam); - cam->grab(cam, (char *) buffer); + cam->grab(cam, (char *) buffer, NULL); cam->stop_recording(cam); uca_destroy(u); -- cgit v1.2.3