forked from tTh/FloatImg
trying a new scaling method for saving in pnm
This commit is contained in:
parent
d4dbecc45d
commit
f3d2dd6034
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user