From 721f4b03d80fc7b65cfb4c7ecebe545ef1fe0565 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 7 Jul 2021 03:34:28 +0300 Subject: cam: Add camera index to file name of capture frames To prepare for multi-camera support, extend the file naming scheme for captured frames to include the camera index in addition to the stream name and frame number. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/cam/camera_session.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cam/camera_session.h') diff --git a/src/cam/camera_session.h b/src/cam/camera_session.h index b3136383..b0f50e7f 100644 --- a/src/cam/camera_session.h +++ b/src/cam/camera_session.h @@ -28,7 +28,7 @@ class CameraSession { public: CameraSession(libcamera::CameraManager *cm, - const std::string &cameraId, + const std::string &cameraId, unsigned int cameraIndex, const OptionsParser::Options &options); ~CameraSession(); @@ -60,6 +60,8 @@ private: std::map streamName_; std::unique_ptr writer_; + unsigned int cameraIndex_; + uint64_t last_; unsigned int queueCount_; -- cgit v1.2.1