15#include <libcamera/base/span.h>
28 std::vector<std::string>
keys;
37 using Components = std::map<std::string, std::vector<float>, std::less<>>;
47 std::vector<double> xPos, std::vector<double> yPos) = 0;
Describe a rectangle's position and dimensions.
Definition geometry.h:247
Describe a two-dimensional size.
Definition geometry.h:51
A class representing a tree structure of values.
Definition value_node.h:27
Pure virtual base class for LSC algorithm implementations.
Definition lsc_base.h:35
std::map< std::string, std::vector< float >, std::less<> > Components
Associate colour components with a list of gains in float format.
Definition lsc_base.h:37
virtual int parseLscData(const ValueNode &tuningData, const LscDescriptor &descriptor)=0
Parse tuningData.
std::map< unsigned int, Components > ComponentsMap
Associate a colour temperature to a LSC table.
Definition lsc_base.h:38
virtual ~LscImplementation()
Virtual class destructor.
Definition lsc_base.h:40
virtual ComponentsMap sampleForCrop(const Rectangle &cropRectangle, std::vector< double > xPos, std::vector< double > yPos)=0
Re-sample the LSC components for cropRectangle.
Data structures related to geometric objects.
Helper class for linear interpolating a set of objects.
Top-level libcamera namespace.
Definition backtrace.h:17
Describe the ISP LSC engine.
Definition lsc_base.h:27
unsigned int numVSamples
Number of vertical gain samples of the ISP LSC grid. Used for validating the list of gains parsed fro...
Definition lsc_base.h:30
std::vector< std::string > keys
The list of colour components to which a list of gains is associated with in the tuning file....
Definition lsc_base.h:28
unsigned int numHSamples
Number of horizontal gain samples of the ISP LSC grid. Used for validating the list of gains parsed f...
Definition lsc_base.h:29
Size sensorSize
The physical sensor size. This is the largest frame size used to generate the LSC table....
Definition lsc_base.h:31
Data structure to manage tree of values.