summaryrefslogtreecommitdiff
path: root/src/qcam/main.cpp
diff options
context:
space:
mode:
authorShow Liu <show.liu@linaro.org>2020-09-11 16:55:14 +0800
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-15 05:53:59 +0300
commit219cbfe76b5a7d9d8206c71aa6115ff8befcff9b (patch)
tree0dfe49d71cbb53567b5f13b6f8c56a8819c38b9f /src/qcam/main.cpp
parent9db6ce0ba499eba53db236558d783a4ff7aa3896 (diff)
qcam: Add additional command line option to select the renderer type
Add new option "--renderer=qt|gles" to select the renderer type, "--renderer=gles" to accelerate format conversion and rendering "--renderer=qt" is the original Qt rendering. Signed-off-by: Show Liu <show.liu@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/main.cpp')
-rw-r--r--src/qcam/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcam/main.cpp b/src/qcam/main.cpp
index bae358df..f60d3cef 100644
--- a/src/qcam/main.cpp
+++ b/src/qcam/main.cpp
@@ -33,6 +33,9 @@ OptionsParser::Options parseOptions(int argc, char *argv[])
ArgumentRequired, "camera");
parser.addOption(OptHelp, OptionNone, "Display this help message",
"help");
+ parser.addOption(OptRenderer, OptionString,
+ "Choose the renderer type {qt,gles} (default: qt)",
+ "renderer", ArgumentRequired, "renderer");
parser.addOption(OptStream, &streamKeyValue,
"Set configuration of a camera stream", "stream", true);