libcamera: ipa: raspberrypi: agc: Report fixed exposure/gain values during SwitchMode

When an application has specified fixed exposure time and/or gain they
must be programmed into the sensor immediately, even before the sensor
has been started. For this to happen they must be written into the
image metadata when the SwitchMode method is invoked.

We also make the default exposure/gain, when nothing has been set,
customisable in the tuning file.

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:
David Plowman 2020-11-23 07:38:01 +00:00 committed by Kieran Bingham
parent 23ada683db
commit 2fb5b298da
2 changed files with 60 additions and 16 deletions

View file

@ -60,6 +60,8 @@ struct AgcConfig {
std::string default_exposure_mode;
std::string default_constraint_mode;
double base_ev;
double default_exposure_time;
double default_analogue_gain;
};
class Agc : public AgcAlgorithm