|
libcamera v0.8.0+1-3c8337a0-nvm
Supporting cameras in Linux since 2019
|
Lux estimation algorithm. More...
Classes | |
| class | ProcessParams |
| Parameters for LuxAlgorithm::process() More... | |
Public Member Functions | |
| int | init (const ValueNode &tuningData) |
| Initialize algorithm and parse tuning data. | |
| void | prepare (const lux::ActiveState &state, lux::FrameContext &frameContext) |
| void | process (lux::ActiveState &state, const lux::FrameContext &frameContext, ControlList &metadata, std::optional< ProcessParams > &¶ms) |
Lux estimation algorithm.
This algorithm provides lux estimation based on tuning data. IPAs that wish to use lux estimation should create a Lux algorithm module that lightly wraps this module by providing the platform-specific luminance histogram. The Lux entry in the tuning file must then precede the algorithms that depend on the estimated lux value.
| int libcamera::ipa::LuxAlgorithm::init | ( | const ValueNode & | tuningData | ) |
Initialize algorithm and parse tuning data.
| [in] | tuningData | The ValueNode representing the tuning data |
This function parses tuning data for the common Lux module. It requires reference exposure time, analogue gain, digital gain, and lux values.
| void libcamera::ipa::LuxAlgorithm::prepare | ( | const lux::ActiveState & | state, |
| lux::FrameContext & | frameContext | ||
| ) |
| [in] | state | The active state |
| [in] | frameContext | The frame context |
This function finalizes frameContext.lux based on the latest estimation.
| void libcamera::ipa::LuxAlgorithm::process | ( | lux::ActiveState & | state, |
| const lux::FrameContext & | frameContext, | ||
| ControlList & | metadata, | ||
| std::optional< ProcessParams > && | params | ||
| ) |
| [in] | state | The active state |
| [in] | frameContext | The frame context |
| [in] | params | The processing parameters |
| [in] | metadata | The metadata |
This function updates the lux estimation based on the luminance histogram and other parameters of a completed frame, and additionally it also updates metadata for the frame.