|
libcamera
v0.1.0
Supporting cameras in Linux since 2019
|
Go to the documentation of this file.
67 static std::unique_ptr<CameraSensorHelper>
create(
const std::string &name);
69 static std::vector<CameraSensorHelperFactoryBase *> &
factories();
76 virtual std::unique_ptr<CameraSensorHelper> createInstance()
const = 0;
81 template<
typename _Helper>
91 std::unique_ptr<CameraSensorHelper> createInstance()
const
93 return std::make_unique<_Helper>();
97 #define REGISTER_CAMERA_SENSOR_HELPER(name, helper) \
98 static CameraSensorHelperFactory<helper> global_##helper##Factory(name);
Analogue gain constants for the linear gain model.
Definition: camera_sensor_helper.h:37
static std::unique_ptr< CameraSensorHelper > create(const std::string &name)
Create an instance of the CameraSensorHelper corresponding to a named factory.
Definition: camera_sensor_helper.cpp:254
Utilities to help constructing class interfaces.
@ AnalogueGainExponential
Gain is expressed using an exponential model.
Definition: camera_sensor_helper.h:34
Registration of CameraSensorHelperFactory classes and creation of instances.
Definition: camera_sensor_helper.h:83
virtual double gain(uint32_t gainCode) const
Compute the real gain from the V4L2 subdev control gain code.
Definition: camera_sensor_helper.cpp:91
double m
Constant used in the exponential gain coding/decoding.
Definition: camera_sensor_helper.h:46
AnalogueGainType
The gain calculation modes as defined by the MIPI CCS.
Definition: camera_sensor_helper.h:32
CameraSensorHelperFactory(const char *name)
Construct a camera sensor helper factory.
Definition: camera_sensor_helper.h:85
Top-level libcamera namespace.
Definition: backtrace.h:17
int16_t m0
Constant used in the linear gain coding/decoding.
Definition: camera_sensor_helper.h:38
Base class for computing sensor tuning parameters using sensor-specific constants.
Definition: camera_sensor_helper.h:23
Base class for camera sensor helper factories.
Definition: camera_sensor_helper.h:62
virtual uint32_t gainCode(double gain) const
Construct a CameraSensorHelper instance.
Definition: camera_sensor_helper.cpp:59
int16_t c1
Constant used in the linear gain coding/decoding.
Definition: camera_sensor_helper.h:41
static std::vector< CameraSensorHelperFactoryBase * > & factories()
Retrieve the list of all camera sensor helper factories.
Definition: camera_sensor_helper.cpp:288
Analogue gain constants for the exponential gain model.
Definition: camera_sensor_helper.h:44
double a
Constant used in the exponential gain coding/decoding.
Definition: camera_sensor_helper.h:45
@ AnalogueGainLinear
Gain is computed using linear gain estimation.
Definition: camera_sensor_helper.h:33
AnalogueGainType gainType_
The analogue gain model type.
Definition: camera_sensor_helper.h:54
int16_t m1
Constant used in the linear gain coding/decoding.
Definition: camera_sensor_helper.h:40
Analogue gain model constants.
Definition: camera_sensor_helper.h:49
AnalogueGainConstants gainConstants_
The analogue gain parameters used for calculation.
Definition: camera_sensor_helper.h:55
AnalogueGainLinearConstants linear
Constants for the linear gain model.
Definition: camera_sensor_helper.h:50
#define LIBCAMERA_DISABLE_COPY_AND_MOVE(klass)
Disable copy and move construction and assignment of the klass.
AnalogueGainExpConstants exp
Constants for the exponential gain model.
Definition: camera_sensor_helper.h:51
CameraSensorHelperFactoryBase(const std::string name)
Construct a camera sensor helper factory base.
Definition: camera_sensor_helper.cpp:239
int16_t c0
Constant used in the linear gain coding/decoding.
Definition: camera_sensor_helper.h:39