summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 16:44:41 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 16:44:41 +0100
commit9d4f8e270d27556f277a14c567d516b3c090a027 (patch)
treea923ce72f46322ef492948fa9f39d5f1ace0f030 /src/uca-cam.c
parent7296b7a6f4368e8cad39169340770c78166b95cd (diff)
downloaduca-9d4f8e270d27556f277a14c567d516b3c090a027.tar.gz
uca-9d4f8e270d27556f277a14c567d516b3c090a027.tar.bz2
uca-9d4f8e270d27556f277a14c567d516b3c090a027.tar.xz
uca-9d4f8e270d27556f277a14c567d516b3c090a027.zip
Move buffer allocation to frame grabber
Diffstat (limited to 'src/uca-cam.c')
-rw-r--r--src/uca-cam.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/uca-cam.c b/src/uca-cam.c
index 2618b84..b77d62b 100644
--- a/src/uca-cam.c
+++ b/src/uca-cam.c
@@ -2,8 +2,14 @@
#include <stdlib.h>
#include "uca.h"
#include "uca-cam.h"
+#include "uca-grabber.h"
-enum uca_cam_state uca_get_camera_state(struct uca_camera_t *cam)
+uint32_t uca_cam_alloc(struct uca_camera_t *cam, uint32_t n_buffers)
+{
+ cam->grabber->alloc(cam->grabber, n_buffers);
+}
+
+enum uca_cam_state uca_cam_get_state(struct uca_camera_t *cam)
{
return cam->state;
}