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>
This commit is contained in:
Show Liu
2020-09-15 05:53:59 +03:00
committed by Laurent Pinchart
parent 9db6ce0ba4
commit 219cbfe76b
3 changed files with 33 additions and 5 deletions
+3
View File
@@ -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);