libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
Camera sensor configuration. More...
Public Member Functions | |
bool | isValid () const |
Check if the sensor configuration is valid. More... | |
Public Attributes | |
unsigned int | bitDepth = 0 |
The sensor image format bit depth. More... | |
Rectangle | analogCrop |
The analog crop rectangle. More... | |
struct { | |
unsigned int binX = 1 | |
unsigned int binY = 1 | |
} | binning |
Sensor binning configuration. More... | |
struct { | |
unsigned int xOddInc = 1 | |
unsigned int xEvenInc = 1 | |
unsigned int yOddInc = 1 | |
unsigned int yEvenInc = 1 | |
} | skipping |
The sensor skipping configuration. More... | |
Size | outputSize |
The frame output (visible) size. More... | |
Camera sensor configuration.
The SensorConfiguration class collects parameters to control the operations of the camera sensor, according to the abstract camera sensor model implemented by libcamera.
Applications that populate the SensorConfiguration class members are expected to be highly-specialized applications that know what sensor they are operating with and what parameters are valid for the sensor in use.
A detailed description of the abstract camera sensor model implemented by libcamera and the description of its configuration parameters is available in the libcamera documentation camera-sensor-model file.
bool libcamera::SensorConfiguration::isValid | ( | ) | const |
Check if the sensor configuration is valid.
A sensor configuration is valid if it's fully populated.
libcamera::SensorConfiguration::analogCrop |
The analog crop rectangle.
The selected portion of the active pixel array used to produce the image frame.
libcamera::SensorConfiguration::binning |
Sensor binning configuration.
Refer to the camera-sensor-model documentation for an accurate description of the binning operations. Disabled by default.
libcamera::SensorConfiguration::binX = 1 |
Horizontal binning factor.
The horizontal binning factor. Default to 1.
libcamera::SensorConfiguration::binY = 1 |
Vertical binning factor.
The vertical binning factor. Default to 1.
libcamera::SensorConfiguration::bitDepth = 0 |
The sensor image format bit depth.
The number of bits (resolution) used to represent a pixel sample.
libcamera::SensorConfiguration::outputSize |
The frame output (visible) size.
The size of the data frame as received by the host processor.
libcamera::SensorConfiguration::skipping |
The sensor skipping configuration.
Refer to the camera-sensor-model documentation for an accurate description of the skipping operations.
If no skipping is performed, all the structure fields should be set to 1. Disabled by default.