ipa: raspberrypi: Add sensitivity field to camera mode
We use the CamHelper class to initialise it to the usual value of 1. The CamHelper's GetModeSensitivity method can be redefined to implement a different behaviour for sensors that require it. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
2288550f7d
commit
d0c429c34c
@@ -325,6 +325,12 @@ void IPARPi::setMode(const IPACameraSensorInfo &sensorInfo)
|
||||
*/
|
||||
mode_.min_frame_length = sensorInfo.minFrameLength;
|
||||
mode_.max_frame_length = sensorInfo.maxFrameLength;
|
||||
|
||||
/*
|
||||
* Some sensors may have different sensitivities in different modes;
|
||||
* the CamHelper will know the correct value.
|
||||
*/
|
||||
mode_.sensitivity = helper_->GetModeSensitivity(mode_);
|
||||
}
|
||||
|
||||
int IPARPi::configure(const IPACameraSensorInfo &sensorInfo,
|
||||
|
||||
Reference in New Issue
Block a user