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>
This commit is contained in:
parent
e9206124cc
commit
1d51ba93e9
1 changed files with 3 additions and 1 deletions
|
@ -155,7 +155,7 @@ int CamApp::parseOptions(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
KeyValueParser streamKeyValue;
|
KeyValueParser streamKeyValue;
|
||||||
streamKeyValue.addOption("role", OptionString,
|
streamKeyValue.addOption("role", OptionString,
|
||||||
"Role for the stream (viewfinder, video, still)",
|
"Role for the stream (viewfinder, video, still, stillraw)",
|
||||||
ArgumentRequired);
|
ArgumentRequired);
|
||||||
streamKeyValue.addOption("width", OptionInteger, "Width in pixels",
|
streamKeyValue.addOption("width", OptionInteger, "Width in pixels",
|
||||||
ArgumentRequired);
|
ArgumentRequired);
|
||||||
|
@ -219,6 +219,8 @@ int CamApp::prepareConfig()
|
||||||
roles.push_back(StreamRole::VideoRecording);
|
roles.push_back(StreamRole::VideoRecording);
|
||||||
} else if (role == "still") {
|
} else if (role == "still") {
|
||||||
roles.push_back(StreamRole::StillCapture);
|
roles.push_back(StreamRole::StillCapture);
|
||||||
|
} else if (role == "stillraw") {
|
||||||
|
roles.push_back(StreamRole::StillCaptureRaw);
|
||||||
} else {
|
} else {
|
||||||
std::cerr << "Unknown stream role "
|
std::cerr << "Unknown stream role "
|
||||||
<< role << std::endl;
|
<< role << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue