summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:34:21 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:34:21 +0100
commita92101a277aed63224e1bd2077c99826e9e35f1d (patch)
treee2d38c3dfcfe46b483a13cc35e23f6ed453cf64e /test/grab.c
parent28873ccf3f3f32486049eb40cd639bbab86e09dc (diff)
downloaduca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.gz
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.bz2
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.xz
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.zip
Complete (simple) frame grabbing
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/grab.c b/test/grab.c
index 34453da..aeed8c6 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -23,10 +23,8 @@ int main(int argc, char *argv[])
uint32_t width, height;
cam->get_property(cam, UCA_PROP_WIDTH, &width);
cam->get_property(cam, UCA_PROP_HEIGHT, &height);
- printf("Image dimensions: %ix%i\n", width, height);
- if (uca_cam_alloc(cam, 20) != UCA_NO_ERROR)
- printf("Couldn't allocate buffer memory\n");
+ uca_cam_alloc(cam, 20);
uint16_t *buffer = (uint16_t *) malloc(width * height * 2);