summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-05-29 12:34:27 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-05-29 12:34:27 +0200
commitbfaf9c9bf082974876be0562792b80706f916701 (patch)
tree233af9ba0aa4d23548568a4f05dabaff719749e3 /test
parent14961a34d7eac8557c3ad982c3d41ce5fbb5470c (diff)
downloadlibuca-bfaf9c9bf082974876be0562792b80706f916701.tar.gz
libuca-bfaf9c9bf082974876be0562792b80706f916701.tar.bz2
libuca-bfaf9c9bf082974876be0562792b80706f916701.tar.xz
libuca-bfaf9c9bf082974876be0562792b80706f916701.zip
Fix exposure and delay time
Diffstat (limited to 'test')
-rw-r--r--test/grab.c5
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++) {