diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-02-29 16:09:55 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-02-29 16:09:55 +0100 |
commit | a7ae3fbb14fcb9581036beefb7bb0069c6f14298 (patch) | |
tree | b459d2db85b1b4c27b356298abe9aeffef30bd9b /test/grab.c | |
parent | de69599bf89708c8f7044fd3a84155551d0391e8 (diff) | |
download | libuca-a7ae3fbb14fcb9581036beefb7bb0069c6f14298.tar.gz libuca-a7ae3fbb14fcb9581036beefb7bb0069c6f14298.tar.bz2 libuca-a7ae3fbb14fcb9581036beefb7bb0069c6f14298.tar.xz libuca-a7ae3fbb14fcb9581036beefb7bb0069c6f14298.zip |
Use libpco 0.3 API
Diffstat (limited to 'test/grab.c')
-rw-r--r-- | test/grab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c index 16bafb1..740522b 100644 --- a/test/grab.c +++ b/test/grab.c @@ -67,16 +67,18 @@ int main(int argc, char *argv[]) uint16_t *buffer = (uint16_t *) malloc(width * height * pixel_size); handle_error(uca_cam_start_recording(cam)); - sleep(3); + /* sleep(3); */ uint32_t error = UCA_NO_ERROR; char filename[FILENAME_MAX]; int counter = 0; while ((error == UCA_NO_ERROR) && (counter < 20)) { + printf(" grab frame ... "); error = uca_cam_grab(cam, (char *) buffer, NULL); if (error != UCA_NO_ERROR) break; + printf("done\n"); snprintf(filename, FILENAME_MAX, "frame-%08i.raw", counter++); FILE *fp = fopen(filename, "wb"); |