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> exposureTimes_;
43 std::vector<double> gains_;
double maxGain() const
Retrieve the configured maximum gain set through setLimits()
Definition: exposure_mode_helper.h:36
Top-level libcamera namespace.
Definition: backtrace.h:17
utils::Duration minExposureTime() const
Retrieve the configured minimum exposure time limit set through setLimits()
Definition: exposure_mode_helper.h:33
Miscellaneous utility functions.
Class for splitting exposure into exposure 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
void setLimits(utils::Duration minExposureTime, utils::Duration maxExposureTime, double minGain, double maxGain)
Set the exposure time and gain limits.
Definition: exposure_mode_helper.cpp:101
utils::Duration maxExposureTime() const
Retrieve the configured maximum exposure time set through setLimits()
Definition: exposure_mode_helper.h:34
std::tuple< utils::Duration, double, double > splitExposure(utils::Duration exposure) const
Split exposure into exposure 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:370
double minGain() const
Retrieve the configured minimum gain set through setLimits()
Definition: exposure_mode_helper.h:35