ipa: rkisp1: Move shutter speed and analogue gain limits from agc to sensor
The limits for the shutter speed and analogue gain are stored in IPASessionConfiguration::agc. While they're related to the AGC, they are properties of the sensor, and are stored in the session configuration by the IPA module, not the AGC algorithm. Move them to the IPASessionConfiguration::sensor structure where they belong. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
02bc2a8a24
commit
00b650b6b8
4 changed files with 32 additions and 26 deletions
|
@ -256,10 +256,12 @@ int IPARkISP1::configure([[maybe_unused]] const IPACameraSensorInfo &info,
|
|||
*
|
||||
* \todo take VBLANK into account for maximum shutter speed
|
||||
*/
|
||||
context_.configuration.agc.minShutterSpeed = minExposure * context_.configuration.sensor.lineDuration;
|
||||
context_.configuration.agc.maxShutterSpeed = maxExposure * context_.configuration.sensor.lineDuration;
|
||||
context_.configuration.agc.minAnalogueGain = camHelper_->gain(minGain);
|
||||
context_.configuration.agc.maxAnalogueGain = camHelper_->gain(maxGain);
|
||||
context_.configuration.sensor.minShutterSpeed =
|
||||
minExposure * context_.configuration.sensor.lineDuration;
|
||||
context_.configuration.sensor.maxShutterSpeed =
|
||||
maxExposure * context_.configuration.sensor.lineDuration;
|
||||
context_.configuration.sensor.minAnalogueGain = camHelper_->gain(minGain);
|
||||
context_.configuration.sensor.maxAnalogueGain = camHelper_->gain(maxGain);
|
||||
|
||||
for (auto const &algo : algorithms()) {
|
||||
int ret = algo->configure(context_, info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue