|
|
|
@ -142,6 +142,7 @@ if (verbosity) { |
|
|
|
|
fprintf(stderr, "running %s pid=%d\n", argv[0], getpid()); |
|
|
|
|
fprintf(stderr, "period is %.3f milliseconds\n", period/1e3); |
|
|
|
|
fprintf(stderr, "framesize is %dx%d\n", width, height); |
|
|
|
|
fprintf(stderr, "upscaling is %s\n", upscaling ? "on" : "off"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0); |
|
|
|
@ -312,7 +313,7 @@ if (to_gray) { |
|
|
|
|
|
|
|
|
|
// save cumul to file
|
|
|
|
|
if (verbosity) fprintf(stderr, "saving to '%s'\n", outfile); |
|
|
|
|
foo = fimg_save_as_pnm(&cumul, outfile, 0); |
|
|
|
|
foo = fimg_save_as_pnm(&cumul, outfile, 1); |
|
|
|
|
|
|
|
|
|
// free buffers
|
|
|
|
|
fimg_destroy(&cumul); |
|
|
|
|