ipa: raspberrypi: Add a constructor struct DeviceStatus
The constructor sets all fields to 0. This replaces the memset(0) and default value initialisation usage in the agc and lux controllers respectively. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.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:
committed by
Laurent Pinchart
parent
ace5e21feb
commit
df8cafaf87
@@ -14,6 +14,12 @@
|
||||
*/
|
||||
|
||||
struct DeviceStatus {
|
||||
DeviceStatus()
|
||||
: shutter_speed(std::chrono::seconds(0)), analogue_gain(0.0),
|
||||
lens_position(0.0), aperture(0.0), flash_intensity(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
/* time shutter is open */
|
||||
libcamera::utils::Duration shutter_speed;
|
||||
double analogue_gain;
|
||||
|
||||
Reference in New Issue
Block a user