trying a new scaling method for saving in pnm

This commit is contained in:
tth 2019-09-17 11:21:20 +02:00
parent d4dbecc45d
commit f3d2dd6034
1 changed files with 2 additions and 1 deletions

View File

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