mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 00:19:44 +03:00
ipa: raspberrypi: Pass the maximum allowable shutter speed into the AGC
In order to provide an optimal split between shutter speed and gain, the AGC must know the maximum allowable shutter speed, as limited by the maximum frame duration (either application provided or the default). Add a new API function, SetMaxShutter, to the AgcAlgorithm class. The IPA provides the maximum shutter speed for AGC calculations. This applies to both the manual and auto AGC modes. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.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:
parent
362301b131
commit
47d243c44a
4 changed files with 48 additions and 15 deletions
|
@ -78,6 +78,7 @@ public:
|
|||
unsigned int GetConvergenceFrames() const override;
|
||||
void SetEv(double ev) override;
|
||||
void SetFlickerPeriod(double flicker_period) override;
|
||||
void SetMaxShutter(double max_shutter) override; // microseconds
|
||||
void SetFixedShutter(double fixed_shutter) override; // microseconds
|
||||
void SetFixedAnalogueGain(double fixed_analogue_gain) override;
|
||||
void SetMeteringMode(std::string const &metering_mode_name) override;
|
||||
|
@ -100,6 +101,7 @@ private:
|
|||
void filterExposure(bool desaturate);
|
||||
void divideUpExposure();
|
||||
void writeAndFinish(Metadata *image_metadata, bool desaturate);
|
||||
double clipShutter(double shutter);
|
||||
AgcMeteringMode *metering_mode_;
|
||||
AgcExposureMode *exposure_mode_;
|
||||
AgcConstraintMode *constraint_mode_;
|
||||
|
@ -126,6 +128,7 @@ private:
|
|||
std::string constraint_mode_name_;
|
||||
double ev_;
|
||||
double flicker_period_;
|
||||
double max_shutter_;
|
||||
double fixed_shutter_;
|
||||
double fixed_analogue_gain_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue