ipa: raspberrypi: Switch AgcAlgorithm API to use utils::Duration
Switch the AgcAlgorithm API functions to use utils::Duration for all time based variables. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
caa753179c
commit
2db8a767ca
4 changed files with 17 additions and 15 deletions
|
@ -638,8 +638,8 @@ void IPARPi::queueRequest(const ControlList &controls)
|
|||
break;
|
||||
}
|
||||
|
||||
/* This expects units of micro-seconds. */
|
||||
agc->SetFixedShutter(ctrl.second.get<int32_t>());
|
||||
/* The control provides units of microseconds. */
|
||||
agc->SetFixedShutter(ctrl.second.get<int32_t>() * 1.0us);
|
||||
|
||||
libcameraMetadata_.set(controls::ExposureTime, ctrl.second.get<int32_t>());
|
||||
break;
|
||||
|
@ -1091,7 +1091,7 @@ void IPARPi::applyFrameDurations(Duration minFrameDuration, Duration maxFrameDur
|
|||
|
||||
RPiController::AgcAlgorithm *agc = dynamic_cast<RPiController::AgcAlgorithm *>(
|
||||
controller_.GetAlgorithm("agc"));
|
||||
agc->SetMaxShutter(maxShutter.get<std::micro>());
|
||||
agc->SetMaxShutter(maxShutter);
|
||||
}
|
||||
|
||||
void IPARPi::applyAGC(const struct AgcStatus *agcStatus, ControlList &ctrls)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue