summaryrefslogtreecommitdiffstats
path: root/src/uca-grabber.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 16:34:21 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 16:34:21 +0100
commit7296b7a6f4368e8cad39169340770c78166b95cd (patch)
treec20ddd79f94abc33658aaac830c45dbc45a7f1b4 /src/uca-grabber.h
parentd3221c2e96b4a19fce6dff7af16d859ae05a690b (diff)
downloadlibuca-7296b7a6f4368e8cad39169340770c78166b95cd.tar.gz
libuca-7296b7a6f4368e8cad39169340770c78166b95cd.tar.bz2
libuca-7296b7a6f4368e8cad39169340770c78166b95cd.tar.xz
libuca-7296b7a6f4368e8cad39169340770c78166b95cd.zip
Add buffer allocation
Diffstat (limited to 'src/uca-grabber.h')
-rw-r--r--src/uca-grabber.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/uca-grabber.h b/src/uca-grabber.h
index 0704610..3c48681 100644
--- a/src/uca-grabber.h
+++ b/src/uca-grabber.h
@@ -31,6 +31,13 @@ typedef uint32_t (*uca_grabber_set_property) (struct uca_grabber_t *grabber, enu
*/
typedef uint32_t (*uca_grabber_get_property) (struct uca_grabber_t *grabber, enum uca_property_ids property, void *data);
+/**
+ * \brief Allocate buffers with current width, height and bitdepth
+ * \note Subsequent changes of width and height might corrupt memory
+ */
+typedef uint32_t (*uca_grabber_allocate) (struct uca_grabber_t *grabber, uint32_t n_buffers);
+
+
struct uca_grabber_t {
struct uca_grabber_t *next;
@@ -39,6 +46,7 @@ struct uca_grabber_t {
uca_grabber_destroy destroy;
uca_grabber_set_property set_property;
uca_grabber_get_property get_property;
+ uca_grabber_allocate allocate;
/* Private */
void *user;