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>
34 lines
697 B
C++
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 ¶ms) override;
|
|
void prepare(Metadata *imageMetadata) override;
|
|
|
|
private:
|
|
GeqConfig config_;
|
|
};
|
|
|
|
} // namespace RPiController
|