61 std::map<controls::AwbModeEnum, AwbAlgorithm::ModeConfig>
modes_;
std::unordered_map< const ControlId *, ControlInfo > Map
The base std::unsorted_map<> container.
Definition: controls.h:369
Associate a list of ControlId with their values for an object.
Definition: controls.h:411
Abstract type representing the value of a control.
Definition: controls.h:134
Vector class.
Definition: vector.h:34
A class representing the tree structure of the YAML content.
Definition: yaml_parser.h:28
A base class for auto white balance algorithms.
Definition: awb.h:36
int parseModeConfigs(const YamlObject &tuningData, const ControlValue &def={})
Parse the mode configurations from the tuning data.
Definition: awb.cpp:165
virtual int init(const YamlObject &tuningData)=0
Initialize the algorithm with the given tuning data.
virtual void handleControls([[maybe_unused]] const ControlList &controls)
Handle the controls supplied in a request.
Definition: awb.h:49
const ControlInfoMap::Map & controls() const
Get the controls info map for this algorithm.
Definition: awb.h:44
virtual AwbResult calculateAwb(const AwbStats &stats, unsigned int lux)=0
Calculate AWB data from the given statistics.
ControlInfoMap::Map controls_
Controls info map for the controls provided by the algorithm.
Definition: awb.h:60
virtual RGB< double > gainsFromColourTemperature(double colourTemperature)=0
Compute white balance gains from a colour temperature.
std::map< controls::AwbModeEnum, AwbAlgorithm::ModeConfig > modes_
Map of all configured modes.
Definition: awb.h:61
Camera controls identifiers.
Framework to manage controls related to an object.
Top-level libcamera namespace.
Definition: backtrace.h:17
Holds the configuration of a single AWB mode.
Definition: awb.h:55
double ctHi
The highest valid colour temperature of that mode.
Definition: awb.h:56
double ctLo
The lowest valid colour temperature of that mode.
Definition: awb.h:57
The result of an AWB calculation.
Definition: awb.h:22
double colourTemperature
The calculated colour temperature in Kelvin.
Definition: awb.h:24
RGB< double > gains
The calculated white balance gains.
Definition: awb.h:23
An abstraction class wrapping hardware-specific AWB statistics.
Definition: awb.h:27
virtual RGB< double > rgbMeans() const =0
Get RGB means of the statistics.
virtual double computeColourError(const RGB< double > &gains) const =0
Compute an error value for when the given gains would be applied.