summaryrefslogtreecommitdiff
path: root/src/apps/qcam/assets/feathericons/copy.svg
blob: 4e0b09f19c3ea93153d7413255860d96eb048542 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
class="hl pps">"algorithm.h" using namespace RPiController; int Algorithm::read([[maybe_unused]] const libcamera::YamlObject &params) { return 0; } void Algorithm::initialise() { } void Algorithm::switchMode([[maybe_unused]] CameraMode const &cameraMode, [[maybe_unused]] Metadata *metadata) { } void Algorithm::prepare([[maybe_unused]] Metadata *imageMetadata) { } void Algorithm::process([[maybe_unused]] StatisticsPtr &stats, [[maybe_unused]] Metadata *imageMetadata) { } /* For registering algorithms with the system: */ namespace { std::map<std::string, AlgoCreateFunc> &algorithms() { static std::map<std::string, AlgoCreateFunc> algorithms; return algorithms; } } /* namespace */ std::map<std::string, AlgoCreateFunc> const &RPiController::getAlgorithms() { return algorithms(); } RegisterAlgorithm::RegisterAlgorithm(char const *name, AlgoCreateFunc createFunc) { algorithms()[std::string(name)] = createFunc; }