From 5da64b6145b169e71ce1fdace8df75b7259dc004 Mon Sep 17 00:00:00 2001 From: tonton Th Date: Sat, 25 Jan 2020 17:22:31 +0100 Subject: [PATCH] can now save as 8bits png file --- v4l2/grabvidseq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index b6e7fa5..2936551 100644 --- a/v4l2/grabvidseq.c +++ b/v4l2/grabvidseq.c @@ -365,6 +365,12 @@ switch (foo) { case FILE_TYPE_PNM: foo = fimg_save_as_pnm(&cumul, outfile, 1); break; + case FILE_TYPE_PNG: + foo = fimg_save_as_png(&cumul, outfile, 0); + break; + default: + fprintf(stderr, "can't save as %s\n", outfile); + break; } // free buffers fimg_destroy(&cumul);