summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cam/stream_options.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cam/stream_options.cpp b/src/cam/stream_options.cpp
index bd12c8fd..4168e5d2 100644
--- a/src/cam/stream_options.cpp
+++ b/src/cam/stream_options.cpp
@@ -19,7 +19,7 @@ StreamKeyValueParser::StreamKeyValueParser()
ArgumentRequired);
addOption("height", OptionInteger, "Height in pixels",
ArgumentRequired);
- addOption("pixelformat", OptionInteger, "Pixel format",
+ addOption("pixelformat", OptionString, "Pixel format name",
ArgumentRequired);
}
@@ -95,9 +95,8 @@ int StreamKeyValueParser::updateConfiguration(CameraConfiguration *config,
cfg.size.height = opts["height"];
}
- /* \todo Translate 4CC string to pixelformat with modifier. */
if (opts.isSet("pixelformat"))
- cfg.pixelFormat = PixelFormat(opts["pixelformat"]);
+ cfg.pixelFormat = PixelFormat::fromString(opts["pixelformat"].toString());
}
return 0;