summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-03-24 09:55:33 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-03-24 09:55:33 +0100
commit0e684b35d4707042bba028ce47b53d0336f662e0 (patch)
treea542c0b60b5de7b4b5ff6cf1f246183e30435208 /test
parent146ac46ab25b3510e34b6fdeb680d4810b48a91a (diff)
downloaduca-0e684b35d4707042bba028ce47b53d0336f662e0.tar.gz
uca-0e684b35d4707042bba028ce47b53d0336f662e0.tar.bz2
uca-0e684b35d4707042bba028ce47b53d0336f662e0.tar.xz
uca-0e684b35d4707042bba028ce47b53d0336f662e0.zip
Expose synchronicity property, add boolean unit and document the error code
format
Diffstat (limited to 'test')
-rw-r--r--test/grab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/grab.c b/test/grab.c
index 8c5e78c..c8a6153 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -24,6 +24,9 @@ int main(int argc, char *argv[])
val = 0;
handle_error(cam->set_property(cam, UCA_PROP_DELAY, &val));
+ val = 1;
+ handle_error(cam->set_property(cam, UCA_PROP_GRAB_SYNCHRONOUS, &val));
+
uint32_t width, height, bits;
handle_error(cam->get_property(cam, UCA_PROP_WIDTH, &width, 0));
handle_error(cam->get_property(cam, UCA_PROP_HEIGHT, &height, 0));