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:
Stefan Klug
2025-09-19 11:40:23 +02:00
committed by Kieran Bingham
parent 3d310f106a
commit 0ba6d930de
2 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -42,6 +42,7 @@ public:
double yTarget;
};
void configure(utils::Duration lineDuration, const CameraSensorHelper *sensorHelper);
int parseTuningData(const YamlObject &tuningData);
void setExposureCompensation(double gain)