From f3d2dd60342c405b387aed5d8a9f846586571d8f Mon Sep 17 00:00:00 2001 From: tth Date: Tue, 17 Sep 2019 11:21:20 +0200 Subject: [PATCH] trying a new scaling method for saving in pnm --- v4l2/grabvidseq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index d6e6b534..f0dff58a 100644 --- a/v4l2/grabvidseq.c +++ b/v4l2/grabvidseq.c @@ -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);