summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-21 11:25:46 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-10-21 11:25:46 +0200
commitccaf5dfc7727ea32920527a7622509b9724ae42f (patch)
tree0a94f7a4a77b75fb83582de11005ab41221eea6c /test/grab.c
parent7e1ec3056d1fdb6786c452ba6ed7e978355a98c2 (diff)
downloaduca-ccaf5dfc7727ea32920527a7622509b9724ae42f.tar.gz
uca-ccaf5dfc7727ea32920527a7622509b9724ae42f.tar.bz2
uca-ccaf5dfc7727ea32920527a7622509b9724ae42f.tar.xz
uca-ccaf5dfc7727ea32920527a7622509b9724ae42f.zip
Add: readout state
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/grab.c b/test/grab.c
index 59a4fb3..d4f458a 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -36,6 +36,8 @@ int main(int argc, char *argv[])
handle_error(uca_cam_set_property(cam, UCA_PROP_DELAY, &val));
val = UCA_TIMESTAMP_ASCII | UCA_TIMESTAMP_BINARY;
handle_error(uca_cam_set_property(cam, UCA_PROP_TIMESTAMP_MODE, &val));
+ val = 1;
+ handle_error(uca_cam_set_property(cam, UCA_PROP_GRAB_AUTO, &val));
uint32_t width, height, bits;
handle_error(uca_cam_get_property(cam, UCA_PROP_WIDTH, &width, 0));