diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-03-24 09:55:33 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-03-24 09:55:33 +0100 |
commit | 0e684b35d4707042bba028ce47b53d0336f662e0 (patch) | |
tree | a542c0b60b5de7b4b5ff6cf1f246183e30435208 /test/grab.c | |
parent | 146ac46ab25b3510e34b6fdeb680d4810b48a91a (diff) | |
download | libuca-0e684b35d4707042bba028ce47b53d0336f662e0.tar.gz libuca-0e684b35d4707042bba028ce47b53d0336f662e0.tar.bz2 libuca-0e684b35d4707042bba028ce47b53d0336f662e0.tar.xz libuca-0e684b35d4707042bba028ce47b53d0336f662e0.zip |
Expose synchronicity property, add boolean unit and document the error code
format
Diffstat (limited to 'test/grab.c')
-rw-r--r-- | test/grab.c | 3 |
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)); |