pipeline: ipa: raspberrypi: Correctly report available control limits

The ipa currently advertises a static ControlInfoMap to specify the available
controls and their limits. Fix this limitation by having the IPA populate a new
ControlInfoMap with updated limits for ExposureTime, AnalogueGain, and
FrameDurationLimits controls based on the current sensor mode. This new
ControlInfoMap is then returned back to the pipeline handler and available to
the application after a successful Camera::configure() call.

Before the first call to Camera::configure(), this ControlInfoMap provides some
reasonable default limits for ExposureTime, AnalogueGain, and
FrameDurationLimits. However, applications must not rely on these values, but
obtain the correct limits after the call to Camera::configure().

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Naushir Patuck
2022-06-22 11:20:46 +01:00
committed by Kieran Bingham
parent 53ada24e63
commit ac955c425d
3 changed files with 34 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@ struct IPAConfig {
struct IPAConfigResult {
float modeSensitivity;
libcamera.ControlInfoMap controlInfo;
};
struct StartConfig {