summaryrefslogtreecommitdiff
path: root/test/process
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-11-04 03:12:29 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2021-02-05 01:20:32 +0100
commit60b5f3b8b9e60c956d6db0ab82ca5a3930e0e3f3 (patch)
tree7a5400be423720a25e8e75bfc75ff77bbe2fa526 /test/process
parent9cdad8461e61e815ddb7378e87cb047ab168d290 (diff)
libcamera: ipu3: imgu: Allocate buffers for stats and param
Instead of preparing for buffer importing allocate buffers that can be used by an IPA. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/process')
0 files changed, 0 insertions, 0 deletions
"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); parser.addOption(OptVerbose, OptionNone, "Print verbose log messages", "verbose"); OptionsParser::Options options = parser.parse(argc, argv); if (options.isSet(OptHelp)) parser.usage(); return options; } int main(int argc, char **argv) { QApplication app(argc, argv); int ret; OptionsParser::Options options = parseOptions(argc, argv); if (!options.valid()) return EXIT_FAILURE; if (options.isSet(OptHelp)) return 0; MessageHandler msgHandler(options.isSet(OptVerbose)); struct sigaction sa = {}; sa.sa_handler = &signalHandler; sigaction(SIGINT, &sa, nullptr); CameraManager *cm = new libcamera::CameraManager(); ret = cm->start(); if (ret) { qInfo() << "Failed to start camera manager:" << strerror(-ret); return EXIT_FAILURE; } MainWindow *mainWindow = new MainWindow(cm, options); mainWindow->show(); ret = app.exec(); delete mainWindow; cm->stop(); delete cm; return ret; }