s/Raspberry Pi (Trading) Limited/Raspberry Pi Ltd/ to reflect the new Raspberry Pi entity name. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
46 lines
968 B
C++
46 lines
968 B
C++
/* SPDX-License-Identifier: BSD-2-Clause */
|
|
/*
|
|
* Copyright (C) 2019, Raspberry Pi Ltd
|
|
*
|
|
* algorithm.cpp - ISP control algorithms
|
|
*/
|
|
|
|
#include "algorithm.h"
|
|
|
|
using namespace RPiController;
|
|
|
|
void Algorithm::read([[maybe_unused]] boost::property_tree::ptree const ¶ms)
|
|
{
|
|
}
|
|
|
|
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: */
|
|
|
|
static std::map<std::string, AlgoCreateFunc> algorithms;
|
|
std::map<std::string, AlgoCreateFunc> const &RPiController::getAlgorithms()
|
|
{
|
|
return algorithms;
|
|
}
|
|
|
|
RegisterAlgorithm::RegisterAlgorithm(char const *name,
|
|
AlgoCreateFunc createFunc)
|
|
{
|
|
algorithms[std::string(name)] = createFunc;
|
|
}
|