ipa: raspberrypi: Switch the AGC/Lux code to use utils::Duration
Convert the core AGC and Lux controller code to use utils::Duration for all exposure time related variables and calculations. Convert the exposure/shutter time fields in AgcStatus and DeviceStatus to use utils::Duration. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
2db8a767ca
commit
6914fc487f
@@ -184,7 +184,7 @@ void CamHelper::parseEmbeddedData(Span<const uint8_t> buffer,
|
||||
return;
|
||||
}
|
||||
|
||||
deviceStatus.shutter_speed = Exposure(exposureLines).get<std::micro>();
|
||||
deviceStatus.shutter_speed = Exposure(exposureLines);
|
||||
deviceStatus.analogue_gain = Gain(gainCode);
|
||||
|
||||
LOG(IPARPI, Debug) << "Metadata updated - Exposure : "
|
||||
|
||||
Reference in New Issue
Block a user