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_;
utils::Duration minExposureTime() const
Retrieve the configured minimum exposure time limit set through setLimits()
Definition exposure_mode_helper.h:33
std::tuple< utils::Duration, double, double > splitExposure(utils::Duration exposure) const
Split exposure into exposure time and gain.
Definition exposure_mode_helper.cpp:153
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
double minGain() const
Retrieve the configured minimum gain set through setLimits()
Definition exposure_mode_helper.h:35
ExposureModeHelper(const Span< std::pair< utils::Duration, double > > stages)
Construct an ExposureModeHelper instance.
Definition exposure_mode_helper.cpp:72
double maxGain() const
Retrieve the configured maximum gain set through setLimits()
Definition exposure_mode_helper.h:36
utils::Duration maxExposureTime() const
Retrieve the configured maximum exposure time set through setLimits()
Definition exposure_mode_helper.h:34
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double pr...
Definition utils.h:371
The IPA (Image Processing Algorithm) namespace.
Definition af.cpp:58
Top-level libcamera namespace.
Definition backtrace.h:17
Miscellaneous utility functions.