diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-01 09:34:21 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-01 09:34:21 +0100 |
commit | a92101a277aed63224e1bd2077c99826e9e35f1d (patch) | |
tree | e2d38c3dfcfe46b483a13cc35e23f6ed453cf64e /test/grab.c | |
parent | 28873ccf3f3f32486049eb40cd639bbab86e09dc (diff) | |
download | libuca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.gz libuca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.bz2 libuca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.xz libuca-a92101a277aed63224e1bd2077c99826e9e35f1d.zip |
Complete (simple) frame grabbing
Diffstat (limited to 'test/grab.c')
-rw-r--r-- | test/grab.c | 4 |
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); |