summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-07 03:34:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-22 17:14:03 +0300
commit721f4b03d80fc7b65cfb4c7ecebe545ef1fe0565 (patch)
treebb861e563b26edf1017524f0dd83f1e074420a39 /src/cam/main.cpp
parent7dab1fa58fb77ace2742dadf860d91f29474225f (diff)
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>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 7688fa55..96f55831 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -136,7 +136,7 @@ int CamApp::parseOptions(int argc, char *argv[])
"If the file name ends with a '/', it sets the directory in which\n"
"to write files, using the default file name. Otherwise it sets the\n"
"full file path and name. The first '#' character in the file name\n"
- "is expanded to the stream name and frame sequence number.\n"
+ "is expanded to the camera index, stream name and frame sequence number.\n"
"The default file name is 'frame-#.bin'.",
"file", ArgumentOptional, "filename", false,
OptCamera);
@@ -201,7 +201,7 @@ int CamApp::run()
if (options_.isSet(OptCamera)) {
const OptionValue &camera = options_[OptCamera];
session = std::make_unique<CameraSession>(cm_.get(),
- camera.toString(),
+ camera.toString(), 0,
camera.children());
if (!session->isValid()) {
std::cout << "Failed to create camera session" << std::endl;