14#include <libcamera/base/span.h>
33 std::tuple<utils::Duration, double, double, double>
38 double minGain()
const {
return minGain_; }
39 double maxGain()
const {
return maxGain_; }
43 double *quantizationGain =
nullptr)
const;
44 double clampGain(
double gain,
double *quantizationGain =
nullptr)
const;
46 std::vector<utils::Duration> exposureTimes_;
47 std::vector<double> gains_;
Helper class that performs sensor-specific parameter computations.
Base class for computing sensor tuning parameters using sensor-specific constants.
Definition camera_sensor_helper.h:24
Class for splitting exposure into exposure time and total gain.
Definition exposure_mode_helper.h:24
utils::Duration minExposureTime() const
Retrieve the configured minimum exposure time limit set through setLimits()
Definition exposure_mode_helper.h:36
void configure(utils::Duration lineLength, const CameraSensorHelper *sensorHelper)
Configure sensor details.
Definition exposure_mode_helper.cpp:97
utils::Duration maxExposureTime() const
Retrieve the configured maximum exposure time set through setLimits()
Definition exposure_mode_helper.h:37
std::tuple< utils::Duration, double, double, double > splitExposure(utils::Duration exposure) const
Split exposure into exposure time and gain.
Definition exposure_mode_helper.cpp:194
void setLimits(utils::Duration minExposureTime, utils::Duration maxExposureTime, double minGain, double maxGain)
Set the exposure time and gain limits.
Definition exposure_mode_helper.cpp:120
double maxGain() const
Retrieve the configured maximum gain set through setLimits()
Definition exposure_mode_helper.h:39
double minGain() const
Retrieve the configured minimum gain set through setLimits()
Definition exposure_mode_helper.h:38
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double pr...
Definition utils.h:322
Top-level libcamera namespace.
Definition backtrace.h:17
Miscellaneous utility functions.