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:
committed by
Laurent Pinchart
parent
9db6ce0ba4
commit
219cbfe76b
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user