ipa: raspberrypi: Code refactoring to match style guidelines
Refactor all the source files in src/ipa/raspberrypi/ to match the recommended formatting guidelines for the libcamera project. The vast majority of changes in this commit comprise of switching from snake_case to CamelCase, and starting class member functions with a lower case character. 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>
This commit is contained in:
parent
b4a3eb6b98
commit
177df04d2b
63 changed files with 2093 additions and 2161 deletions
|
@ -9,36 +9,38 @@
|
|||
|
||||
using namespace RPiController;
|
||||
|
||||
void Algorithm::Read([[maybe_unused]] boost::property_tree::ptree const ¶ms)
|
||||
void Algorithm::read([[maybe_unused]] boost::property_tree::ptree const ¶ms)
|
||||
{
|
||||
}
|
||||
|
||||
void Algorithm::Initialise() {}
|
||||
void Algorithm::initialise()
|
||||
{
|
||||
}
|
||||
|
||||
void Algorithm::SwitchMode([[maybe_unused]] CameraMode const &camera_mode,
|
||||
void Algorithm::switchMode([[maybe_unused]] CameraMode const &cameraMode,
|
||||
[[maybe_unused]] Metadata *metadata)
|
||||
{
|
||||
}
|
||||
|
||||
void Algorithm::Prepare([[maybe_unused]] Metadata *image_metadata)
|
||||
void Algorithm::prepare([[maybe_unused]] Metadata *imageMetadata)
|
||||
{
|
||||
}
|
||||
|
||||
void Algorithm::Process([[maybe_unused]] StatisticsPtr &stats,
|
||||
[[maybe_unused]] Metadata *image_metadata)
|
||||
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()
|
||||
std::map<std::string, AlgoCreateFunc> const &RPiController::getAlgorithms()
|
||||
{
|
||||
return algorithms;
|
||||
}
|
||||
|
||||
RegisterAlgorithm::RegisterAlgorithm(char const *name,
|
||||
AlgoCreateFunc create_func)
|
||||
AlgoCreateFunc createFunc)
|
||||
{
|
||||
algorithms[std::string(name)] = create_func;
|
||||
algorithms[std::string(name)] = createFunc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue