Browse Source

trying a new scaling method for saving in pnm

master
tth 3 years ago
parent
commit
f3d2dd6034
  1. 3
      v4l2/grabvidseq.c

3
v4l2/grabvidseq.c

@ -142,6 +142,7 @@ if (verbosity) { @@ -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) { @@ -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…
Cancel
Save