From 30e0ea843eb96a93f8282466e3a328fdda7fafdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Fri, 24 Jul 2020 15:24:39 +0200 Subject: cam: Add optional argument to --capture to specify how many frames to capture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend the '--capture' option with and optional numerical argument to be able to specify how many frames to capture before exiting. If the optional argument is not provided the old behavior of running until the user interrupts with a SIGINT is retained. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- src/cam/capture.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cam/capture.h') diff --git a/src/cam/capture.h b/src/cam/capture.h index acdefc47..32940a2a 100644 --- a/src/cam/capture.h +++ b/src/cam/capture.h @@ -41,6 +41,8 @@ private: std::chrono::steady_clock::time_point last_; EventLoop *loop_; + unsigned int captureCount_; + unsigned int captureLimit_; }; #endif /* __CAM_CAPTURE_H__ */ -- cgit v1.2.1