ipa: libipa: Pass a reference instead of pointer to Algorithm::process()
Frame contexts will become the core component of IPA modules, always available to functions of the algorithms. To indicate and prepare for this, turn the frame context pointer passed to Algorithm::process() into a reference. The RkISP1 IPA module doesn't use frame contexts yet, so pass a dummy context for now. While at it, drop an unneeded [[maybe_unused]] from Agc::process() and add a missing parameter documentation for the frameContext argument to Awb::process(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
024d16b7db
commit
2101af47e4
15 changed files with 23 additions and 19 deletions
|
@ -183,13 +183,13 @@ utils::Duration Agc::filterExposure(utils::Duration exposureValue)
|
|||
* \param[in] yGain The gain calculated based on the relative luminance target
|
||||
* \param[in] iqMeanGain The gain calculated based on the relative luminance target
|
||||
*/
|
||||
void Agc::computeExposure(IPAContext &context, IPAFrameContext *frameContext,
|
||||
void Agc::computeExposure(IPAContext &context, IPAFrameContext &frameContext,
|
||||
double yGain, double iqMeanGain)
|
||||
{
|
||||
const IPASessionConfiguration &configuration = context.configuration;
|
||||
/* Get the effective exposure and gain applied on the sensor. */
|
||||
uint32_t exposure = frameContext->sensor.exposure;
|
||||
double analogueGain = frameContext->sensor.gain;
|
||||
uint32_t exposure = frameContext.sensor.exposure;
|
||||
double analogueGain = frameContext.sensor.gain;
|
||||
|
||||
/* Use the highest of the two gain estimates. */
|
||||
double evGain = std::max(yGain, iqMeanGain);
|
||||
|
@ -323,7 +323,7 @@ double Agc::estimateLuminance(IPAActiveState &activeState,
|
|||
* Identify the current image brightness, and use that to estimate the optimal
|
||||
* new exposure and gain for the scene.
|
||||
*/
|
||||
void Agc::process(IPAContext &context, [[maybe_unused]] IPAFrameContext *frameContext,
|
||||
void Agc::process(IPAContext &context, IPAFrameContext &frameContext,
|
||||
const ipu3_uapi_stats_3a *stats)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue