libipa: agc_mean_luminance: Configure the exposure mode helpers
Add a function to configure the exposure mode helpers with the line length and sensor helper to take quantization effects into account. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
3d310f106a
commit
0ba6d930de
@@ -311,6 +311,21 @@ int AgcMeanLuminance::parseExposureModes(const YamlObject &tuningData)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Configure the exposure mode helpers
|
||||
* \param[in] lineDuration The sensor line length
|
||||
* \param[in] sensorHelper The sensor helper
|
||||
*
|
||||
* This function configures the exposure mode helpers so they can correctly
|
||||
* take quantization effects into account.
|
||||
*/
|
||||
void AgcMeanLuminance::configure(utils::Duration lineDuration,
|
||||
const CameraSensorHelper *sensorHelper)
|
||||
{
|
||||
for (auto &[id, helper] : exposureModeHelpers_)
|
||||
helper->configure(lineDuration, sensorHelper);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Parse tuning data for AeConstraintMode and AeExposureMode controls
|
||||
* \param[in] tuningData the YamlObject representing the tuning data
|
||||
|
||||
@@ -42,6 +42,7 @@ public:
|
||||
double yTarget;
|
||||
};
|
||||
|
||||
void configure(utils::Duration lineDuration, const CameraSensorHelper *sensorHelper);
|
||||
int parseTuningData(const YamlObject &tuningData);
|
||||
|
||||
void setExposureCompensation(double gain)
|
||||
|
||||
Reference in New Issue
Block a user