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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -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<const libcamera::Stream *, std::string> streamName_;
|
||||
std::unique_ptr<BufferWriter> writer_;
|
||||
unsigned int cameraIndex_;
|
||||
|
||||
uint64_t last_;
|
||||
|
||||
unsigned int queueCount_;
|
||||
|
||||
Reference in New Issue
Block a user