libcamera v0.8.0+1-3c8337a0-nvm
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
libcamera::ipa::AgcMeanLuminance::Configuration Class Reference

A collection of parameters. More...

Collaboration diagram for libcamera::ipa::AgcMeanLuminance::Configuration:

Static Public Member Functions

static std::optional< Configuration > parse (const ValueNode &tuningData)
 Parse tuning data.
 

Public Attributes

Pwl relativeLuminanceTarget
 The relative mean luminance target by lux value.
 
std::map< int32_t, std::vector< AgcConstraint > > constraintModes
 The available constraint modes.
 
std::map< int32_t, ExposureModeHelper > exposureModeHelpers
 The available exposure modes.
 

Detailed Description

A collection of parameters.

This type contains various configuration parameters for the algorithm that are generally parsed from a tuning file.

Member Function Documentation

◆ parse()

std::optional< AgcMeanLuminance::Configuration > libcamera::ipa::AgcMeanLuminance::Configuration::parse ( const ValueNode &  tuningData)
static

Parse tuning data.

Parameters
[in]tuningDatathe ValueNode representing the tuning data

This function parses tuning data to build the list of allowed values for the AeConstraintMode and AeExposureMode controls. Those tuning data must provide the data in a specific format; the Agc algorithm's tuning data should contain a dictionary called AeConstraintMode containing per-mode setting dictionaries with the key being a value from controls::AeConstraintModeNameValueMap. The yTarget can either be provided as single value or as array in which case it is interpreted as a PWL mapping lux levels to yTarget values. Each mode dict may contain either a "lower" or "upper" key or both, for example:

algorithms:
- Agc:
AeConstraintMode:
Normal:
lower:
qLo: 0.98
qHi: 1.0
yTarget: 0.5
Highlight:
lower:
qLo: 0.98
qHi: 1.0
yTarget: 0.5
upper:
qLo: 0.98
qHi: 1.0
yTarget: [ 100, 0.8, 20000, 0.5 ]

For the AeExposureMode control the data should contain a dictionary called AeExposureMode containing per-mode setting dictionaries with the key being a value from controls::AeExposureModeNameValueMap. Each mode dict should contain an array of exposure times with the key "exposureTime" and an array of gain values with the key "gain", in this format:

algorithms:
- Agc:
AeExposureMode:
Normal:
exposureTime: [ 100, 10000, 30000, 60000, 120000 ]
gain: [ 2.0, 4.0, 6.0, 8.0, 10.0 ]
Short:
exposureTime: [ 100, 10000, 30000, 60000, 120000 ]
gain: [ 2.0, 4.0, 6.0, 8.0, 10.0 ]
Returns
0 on success or a negative error code

The documentation for this class was generated from the following files: