libcamera: ipa: raspberrypi: Allow SwitchMode method to return camera settings

This commit adds a Metadata parameter to the SwitchMode method
enabling it to return camera and other settings to the caller
(usually the configure method, just after the camera mode has been
selected).

In future this will allow the Raspberry Pi IPAs to take those settings
(such as exposure and analogue gain) and program them directly into
the camera or ISP before the camera is even started.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman 2020-06-18 12:12:35 +01:00 committed by Laurent Pinchart
parent 1023107b64
commit ff291b3c15
11 changed files with 20 additions and 12 deletions

View file

@ -267,7 +267,8 @@ void IPARPi::configure(const CameraSensorInfo &sensorInfo,
queueFrameAction.emit(0, op);
}
controller_.SwitchMode(mode_);
RPi::Metadata metadata;
controller_.SwitchMode(mode_, &metadata);
lastMode_ = mode_;
}