diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-08-10 10:56:54 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-08-10 10:56:54 +0200 |
commit | 1ae9dcd4ae312d497f8aa2381efee1b49b727a90 (patch) | |
tree | 685693acdb44cc51424b7b25877cd6a2d0d82fe6 /test/grab.c | |
parent | bf30a848ad7ac00218aab6589df7a19d868728cd (diff) | |
parent | 859a6a6802e1891628af988a83a3e24b5b75c007 (diff) | |
download | uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.tar.gz uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.tar.bz2 uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.tar.xz uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.zip |
Merge branch 'ipe-basler'
Conflicts:
src/CMakeLists.txt
Diffstat (limited to 'test/grab.c')
-rw-r--r-- | test/grab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c index a4d4aa3..41e6d88 100644 --- a/test/grab.c +++ b/test/grab.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) uca_camera_start_recording(camera, &error); g_assert_no_error(error); - while (counter < 2) { + while (counter < 5) { g_print(" grab frame ... "); g_timer_start(timer); uca_camera_grab(camera, &buffer, &error); @@ -131,6 +131,7 @@ int main(int argc, char *argv[]) FILE *fp = fopen(filename, "wb"); fwrite(buffer, roi_width * roi_height, pixel_size, fp); fclose(fp); + g_usleep(2 * G_USEC_PER_SEC); } g_print("Stop recording\n"); |