libcamera/src/ipa/raspberrypi/controller/rpi/geq.hpp
Naushir Patuck 177df04d2b 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>
2022-07-27 18:12:12 +03:00

34 lines
697 B
C++

/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2019, Raspberry Pi (Trading) Limited
*
* geq.hpp - GEQ (green equalisation) control algorithm
*/
#pragma once
#include "../algorithm.hpp"
#include "../geq_status.h"
namespace RPiController {
// Back End algorithm to apply appropriate GEQ settings.
struct GeqConfig {
uint16_t offset;
double slope;
Pwl strength; // lux to strength factor
};
class Geq : public Algorithm
{
public:
Geq(Controller *controller);
char const *name() const override;
void read(boost::property_tree::ptree const &params) override;
void prepare(Metadata *imageMetadata) override;
private:
GeqConfig config_;
};
} // namespace RPiController