summaryrefslogtreecommitdiffstats
path: root/src/uca-grabber.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-18 10:42:11 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-18 10:42:11 +0100
commita95fb6dad12ef73b05e79198763465f418090e99 (patch)
tree08cc1f9d142c1352570958518dfb874aa1e841c7 /src/uca-grabber.h
parent384d9c7e478ed9b6b64b050a4251475519fc9580 (diff)
downloadlibuca-a95fb6dad12ef73b05e79198763465f418090e99.tar.gz
libuca-a95fb6dad12ef73b05e79198763465f418090e99.tar.bz2
libuca-a95fb6dad12ef73b05e79198763465f418090e99.tar.xz
libuca-a95fb6dad12ef73b05e79198763465f418090e99.zip
Add (possible) meta data transmission and integrate callback in pco and pf
Diffstat (limited to 'src/uca-grabber.h')
-rw-r--r--src/uca-grabber.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/uca-grabber.h b/src/uca-grabber.h
index 30fc9dd..b7a8736 100644
--- a/src/uca-grabber.h
+++ b/src/uca-grabber.h
@@ -2,6 +2,7 @@
#define __UNIFIED_CAMERA_ACCESS_GRABBER_H
#include <stdbool.h>
+#include "uca-cam.h"
/**
* \file uca-grabber.h
@@ -32,6 +33,7 @@ enum uca_grabber_constants {
UCA_TRIGGER_FREERUN
};
+
/*
* --- virtual methods --------------------------------------------------------
*/
@@ -99,17 +101,6 @@ typedef uint32_t (*uca_grabber_stop_acquire) (struct uca_grabber *grabber);
*/
typedef uint32_t (*uca_grabber_grab) (struct uca_grabber *grabber, void **buffer, uint32_t *frame_number);
-/**
- * Function pointer to a grab callback.
- *
- * Register such a callback function with uca_grabber_register_callback() to
- * receive data as soon as it is delivered.
- *
- * \param[in] image_number Current frame number
- *
- * \param[in] buffer Image data
- */
-typedef void (*uca_grabber_grab_callback) (uint32_t image_number, void *buffer);
/**
* Register callback for given frame grabber. To actually start receiving
@@ -119,7 +110,7 @@ typedef void (*uca_grabber_grab_callback) (uint32_t image_number, void *buffer);
*
* \param[in] cb Callback function for when a frame arrived
*/
-typedef uint32_t (*uca_grabber_register_callback) (struct uca_grabber *grabber, uca_grabber_grab_callback cb);
+typedef uint32_t (*uca_grabber_register_callback) (struct uca_grabber *grabber, uca_cam_grab_callback cb, void *meta_data, void *user);
/**
@@ -144,7 +135,7 @@ typedef struct uca_grabber {
uca_grabber_register_callback register_callback;
/* Private */
- uca_grabber_grab_callback callback;
+ uca_cam_grab_callback callback;
bool asynchronous;
void *user;
} uca_grabber_t;