summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-06-22 10:37:21 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-06-22 10:37:21 +0200
commit5e20651f52b7163b25488d9c4468350d72002b58 (patch)
tree90554a4316c98b86e74c83755e7946946b194501
parent1dded9849346000bf387101572fc9c05a59435b1 (diff)
downloadlibuca-5e20651f52b7163b25488d9c4468350d72002b58.tar.gz
libuca-5e20651f52b7163b25488d9c4468350d72002b58.tar.bz2
libuca-5e20651f52b7163b25488d9c4468350d72002b58.tar.xz
libuca-5e20651f52b7163b25488d9c4468350d72002b58.zip
grab: set trigger source explicitly
-rw-r--r--bin/tools/grab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/tools/grab.c b/bin/tools/grab.c
index e7c6eff..bcf35ae 100644
--- a/bin/tools/grab.c
+++ b/bin/tools/grab.c
@@ -148,14 +148,15 @@ record_frames (UcaCamera *camera, Options *opts)
"sensor-bitdepth", &bits,
NULL);
+ g_object_set (G_OBJECT (camera), "trigger-source", UCA_CAMERA_TRIGGER_SOURCE_AUTO, NULL);
+
pixel_size = get_bytes_per_pixel (bits);
size = roi_width * roi_height * pixel_size;
n_allocated = opts->n_frames > 0 ? opts->n_frames : 256;
buffer = uca_ring_buffer_new (size, n_allocated);
timer = g_timer_new();
- g_print("Start recording: %ix%i at %i bits/pixel\n",
- roi_width, roi_height, bits);
+ g_print("Start recording: %ix%i at %i bits/pixel\n", roi_width, roi_height, bits);
uca_camera_start_recording(camera, &error);