diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-05-29 12:34:27 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-05-29 12:34:27 +0200 |
commit | bfaf9c9bf082974876be0562792b80706f916701 (patch) | |
tree | 233af9ba0aa4d23548568a4f05dabaff719749e3 /test | |
parent | 14961a34d7eac8557c3ad982c3d41ce5fbb5470c (diff) | |
download | uca-bfaf9c9bf082974876be0562792b80706f916701.tar.gz uca-bfaf9c9bf082974876be0562792b80706f916701.tar.bz2 uca-bfaf9c9bf082974876be0562792b80706f916701.tar.xz uca-bfaf9c9bf082974876be0562792b80706f916701.zip |
Fix exposure and delay time
Diffstat (limited to 'test')
-rw-r--r-- | test/grab.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c index 12290de..debdb6e 100644 --- a/test/grab.c +++ b/test/grab.c @@ -54,9 +54,12 @@ int main(int argc, char *argv[]) "sensor-bitdepth", &bits, NULL); + g_object_set(G_OBJECT(camera), + "exposure-time", 0.1, + NULL); + const int pixel_size = bits == 8 ? 1 : 2; gpointer buffer = g_malloc0(width * height * pixel_size); - gchar filename[FILENAME_MAX]; for (int i = 0; i < 2; i++) { |