14 #include <libcamera/base/span.h> 30 std::tuple<utils::Duration, double, double>
35 double minGain()
const {
return minGain_; }
36 double maxGain()
const {
return maxGain_; }
40 double clampGain(
double gain)
const;
42 std::vector<utils::Duration> shutters_;
43 std::vector<double> gains_;
double maxGain() const
Retrieve the configured maximum gain set through setShutterGainLimits()
Definition: exposure_mode_helper.h:36
utils::Duration minShutter() const
Retrieve the configured minimum shutter time limit set through setShutterGainLimits() ...
Definition: exposure_mode_helper.h:33
void setLimits(utils::Duration minShutter, utils::Duration maxShutter, double minGain, double maxGain)
Set the shutter time and gain limits.
Definition: exposure_mode_helper.cpp:101
Top-level libcamera namespace.
Definition: backtrace.h:17
Miscellaneous utility functions.
Class for splitting exposure into shutter time and total gain.
Definition: exposure_mode_helper.h:21
ExposureModeHelper(const Span< std::pair< utils::Duration, double >> stages)
Construct an ExposureModeHelper instance.
Definition: exposure_mode_helper.cpp:72
std::tuple< utils::Duration, double, double > splitExposure(utils::Duration exposure) const
Split exposure time into shutter time and gain.
Definition: exposure_mode_helper.cpp:153
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double pr...
Definition: utils.h:353
utils::Duration maxShutter() const
Retrieve the configured maximum shutter time set through setShutterGainLimits()
Definition: exposure_mode_helper.h:34
double minGain() const
Retrieve the configured minimum gain set through setShutterGainLimits()
Definition: exposure_mode_helper.h:35