diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-02-27 17:35:38 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-27 16:27:28 +0100 |
commit | 1d51ba93e942860cee02a09a9367ddcb9ced3964 (patch) | |
tree | 2feeb4dfb1635bbf5f856d45ee7618cc5cf6998e /src | |
parent | e9206124ccadc730e3fdc4ef401beda0467a856e (diff) |
cam: Add option to capture StillCaptureRaw stream
Add a role name 'stillraw' to request a StillCaptureRaw stream.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/cam/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index 7cdd215b..718740f4 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -155,7 +155,7 @@ int CamApp::parseOptions(int argc, char *argv[]) { KeyValueParser streamKeyValue; streamKeyValue.addOption("role", OptionString, - "Role for the stream (viewfinder, video, still)", + "Role for the stream (viewfinder, video, still, stillraw)", ArgumentRequired); streamKeyValue.addOption("width", OptionInteger, "Width in pixels", ArgumentRequired); @@ -219,6 +219,8 @@ int CamApp::prepareConfig() roles.push_back(StreamRole::VideoRecording); } else if (role == "still") { roles.push_back(StreamRole::StillCapture); + } else if (role == "stillraw") { + roles.push_back(StreamRole::StillCaptureRaw); } else { std::cerr << "Unknown stream role " << role << std::endl; |