diff options
author | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-05-08 14:49:11 +0200 |
---|---|---|
committer | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-07-26 15:36:43 +0200 |
commit | 38d6d18e83b0c33a18ef6f68c22c161d39abc449 (patch) | |
tree | 4c21f9374a8ce66834b8869a051315d8b6b304e1 /test | |
parent | b5c90a21f289bb67c4806a8563d96fc674bba583 (diff) | |
download | uca-38d6d18e83b0c33a18ef6f68c22c161d39abc449.tar.gz uca-38d6d18e83b0c33a18ef6f68c22c161d39abc449.tar.bz2 uca-38d6d18e83b0c33a18ef6f68c22c161d39abc449.tar.xz uca-38d6d18e83b0c33a18ef6f68c22c161d39abc449.zip |
basler camera works
Diffstat (limited to 'test')
-rw-r--r-- | test/grab_pylon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/grab_pylon.c b/test/grab_pylon.c index cb1e534..2f9b5a0 100644 --- a/test/grab_pylon.c +++ b/test/grab_pylon.c @@ -55,6 +55,7 @@ int main(int argc, char *argv[]) NULL); const int pixel_size = bits == 8 ? 1 : 2; + g_print("allocate buffer %u, %u, %d\n", width, height, pixel_size); gpointer buffer = g_malloc0(width * height * pixel_size); gchar filename[FILENAME_MAX]; @@ -65,7 +66,7 @@ int main(int argc, char *argv[]) uca_camera_start_recording(camera, &error); g_assert_no_error(error); - while (counter < 50) { + while (counter < 10) { g_print(" grab frame ... "); uca_camera_grab(camera, &buffer, &error); if (error != NULL) { |