|
libcamera v0.8.0+1-3c8337a0-nvm
Supporting cameras in Linux since 2019
|
Base class for GammaAlgorithm to implement non-templated functions. More...

Public Member Functions | |
| GammaAlgorithmBase (unsigned int nLutNodes) | |
| Construct an instance of the class. | |
| void | configure (gamma::ActiveState &state) |
| Configure the gamma correction algorithm. | |
| void | queueRequest (gamma::ActiveState &state, const uint32_t frame, gamma::FrameContext &context, const ControlList &controls) |
| Queue a request to the gamma correction algorithm. | |
| void | process (gamma::FrameContext &context, ControlList &metadata) |
| Populate metadata with the gamma correction values for a frame. | |
Protected Member Functions | |
| int | init (ControlInfoMap::Map &controls, const ValueNode &tuningData, std::span< const unsigned int > segments) |
| Initialise the algorithm with the given tuning data. | |
Base class for GammaAlgorithm to implement non-templated functions.
This base class for GammeaAlgorithm allows us to implement non templated functions. IPA specific implementations shall derive from GammaAlgorithm and not this class.
|
inline |
Construct an instance of the class.
| [in] | nLutNodes | Set the number of function knee-points expected by the IPA algorithm |
| void libcamera::ipa::GammaAlgorithmBase::configure | ( | gamma::ActiveState & | state | ) |
Configure the gamma correction algorithm.
| [out] | state | The gamma correction algorithm's active state |
Reset to the default gamma correction value.
IPA modules are expected to call this function as part of their implementation of Algorithm::configure()
|
protected |
Initialise the algorithm with the given tuning data.
This function provides the underlying non-templated implementation for GammaAlgorithm::init(). Refer to the documentation of that function for the details.
| void libcamera::ipa::GammaAlgorithmBase::process | ( | gamma::FrameContext & | context, |
| ControlList & | metadata | ||
| ) |
Populate metadata with the gamma correction values for a frame.
| [in] | context | The frame context |
| [out] | metadata | The ControlList of metadata for a frame |
Report the gamma value used to calculate the correction curve that was applied to a frame.
| void libcamera::ipa::GammaAlgorithmBase::queueRequest | ( | gamma::ActiveState & | state, |
| const uint32_t | frame, | ||
| gamma::FrameContext & | context, | ||
| const ControlList & | controls | ||
| ) |
Queue a request to the gamma correction algorithm.
| [in] | state | The algorithm's active state |
| [in] | frame | The current frame number |
| [in] | context | The algorithm's frame context |
| [in] | controls | The ControlList that was queued with the request |
Queue a new request to the gamma correction algorithm and handle any relevant controls that were queued. The only control currently handled is:
If a control with that ID is queued the value is stored in state and context.
IPA modules are expected to call this function as part of their implementation of Algorithm::queueRequest()