diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-06-22 10:37:21 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-06-22 10:37:21 +0200 |
commit | 5e20651f52b7163b25488d9c4468350d72002b58 (patch) | |
tree | 90554a4316c98b86e74c83755e7946946b194501 /bin | |
parent | 1dded9849346000bf387101572fc9c05a59435b1 (diff) | |
download | uca-5e20651f52b7163b25488d9c4468350d72002b58.tar.gz uca-5e20651f52b7163b25488d9c4468350d72002b58.tar.bz2 uca-5e20651f52b7163b25488d9c4468350d72002b58.tar.xz uca-5e20651f52b7163b25488d9c4468350d72002b58.zip |
grab: set trigger source explicitly
Diffstat (limited to 'bin')
-rw-r--r-- | bin/tools/grab.c | 5 |
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); |