25 AE_CONSTRAINT_MODE = 4,
37 COLOUR_TEMPERATURE = 16,
39 SENSOR_BLACK_LEVELS = 18,
42 COLOUR_CORRECTION_MATRIX = 21,
46 FRAME_DURATION_LIMITS = 25,
47 SENSOR_TIMESTAMP = 26,
48 AE_PRECAPTURE_TRIGGER = 27,
50 NOISE_REDUCTION_MODE = 29,
51 COLOR_CORRECTION_ABERRATION_MODE = 30,
55 SENSOR_ROLLING_SHUTTER_SKEW = 34,
56 LENS_SHADING_MAP_MODE = 35,
60 TEST_PATTERN_MODE = 39,
Describe a control and its intrinsic properties.
Definition: controls.h:254
Framework to manage controls related to an object.
const Control< int32_t > LensShadingMapMode
Control to report if the lens shading map is available. Currently identical to ANDROID_STATISTICS_LEN...
const Control< int32_t > SceneFlicker
Control to report the detected scene light frequency. Currently identical to ANDROID_STATISTICS_SCENE...
const Control< int32_t > PipelineDepth
Specifies the number of pipeline stages the frame went through from when it was exposed to when the f...
const std::array< const ControlValue, 3 > AfTriggerValues
List of all AfTrigger supported values.
AeStateEnum
Supported AeState values.
Definition: control_ids.h:156
@ AeStateConverged
The AE algorithm has converged.
Definition: control_ids.h:159
@ AeStateLocked
The AE algorithm is locked.
Definition: control_ids.h:160
@ AeStateInactive
The AE algorithm is inactive.
Definition: control_ids.h:157
@ AeStatePrecapture
The AE algorithm has started a pre-capture metering session.
Definition: control_ids.h:162
@ AeStateSearching
The AE algorithm has not converged yet.
Definition: control_ids.h:158
@ AeStateFlashRequired
The AE algorithm would need a flash for good results.
Definition: control_ids.h:161
NoiseReductionModeEnum
Supported NoiseReductionMode values.
Definition: control_ids.h:140
@ NoiseReductionModeHighQuality
High quality noise reduction at the expense of frame rate.
Definition: control_ids.h:143
@ NoiseReductionModeMinimal
Minimal noise reduction is applied without reducing the frame rate.
Definition: control_ids.h:144
@ NoiseReductionModeOff
No noise reduction is applied.
Definition: control_ids.h:141
@ NoiseReductionModeZSL
Noise reduction is applied at different levels to different streams.
Definition: control_ids.h:145
@ NoiseReductionModeFast
Noise reduction is applied without reducing the frame rate.
Definition: control_ids.h:142
AfTriggerEnum
Supported AfTrigger values.
Definition: control_ids.h:133
@ AfTriggerCancel
The camera will cancel any active trigger and the AF routine is reset to its initial state.
Definition: control_ids.h:136
@ AfTriggerStart
The AF routine is started by the camera.
Definition: control_ids.h:135
@ AfTriggerIdle
The trigger is idle.
Definition: control_ids.h:134
AwbStateEnum
Supported AwbState values.
Definition: control_ids.h:177
@ AwbLocked
The AWB algorithm is locked.
Definition: control_ids.h:181
@ AwbStateInactive
The AWB algorithm is inactive.
Definition: control_ids.h:178
@ AwbConverged
The AWB algorithm has converged.
Definition: control_ids.h:180
@ AwbStateSearching
The AWB algorithm has not converged yet.
Definition: control_ids.h:179
const Control< int32_t > AeState
Control to report the current AE algorithm state. Currently identical to ANDROID_CONTROL_AE_STATE.
const Control< int32_t > AwbState
Control to report the current AWB algorithm state. Currently identical to ANDROID_CONTROL_AWB_STATE.
const std::array< const ControlValue, 3 > SceneFlickerValues
List of all SceneFlicker supported values.
const std::array< const ControlValue, 6 > AeStateValues
List of all AeState supported values.
const std::array< const ControlValue, 5 > NoiseReductionModeValues
List of all NoiseReductionMode supported values.
const Control< int32_t > NoiseReductionMode
Control to select the noise reduction algorithm mode. Currently identical to ANDROID_NOISE_REDUCTION_...
const std::array< const ControlValue, 3 > AePrecaptureTriggerValues
List of all AePrecaptureTrigger supported values.
const Control< int32_t > TestPatternMode
Control to select the test pattern mode. Currently identical to ANDROID_SENSOR_TEST_PATTERN_MODE.
const Control< int32_t > AePrecaptureTrigger
Control for AE metering trigger. Currently identical to ANDROID_CONTROL_AE_PRECAPTURE_TRIGGER.
LensShadingMapModeEnum
Supported LensShadingMapMode values.
Definition: control_ids.h:186
@ LensShadingMapModeOn
The lens shading map mode is available.
Definition: control_ids.h:188
@ LensShadingMapModeOff
No lens shading map mode is available.
Definition: control_ids.h:187
const Control< int32_t > ColorCorrectionAberrationMode
Control to select the color correction aberration mode. Currently identical to ANDROID_COLOR_CORRECTI...
const std::array< const ControlValue, 4 > AwbStateValues
List of all AwbState supported values.
SceneFlickerEnum
Supported SceneFlicker values.
Definition: control_ids.h:192
@ SceneFicker50Hz
50Hz flickering detected.
Definition: control_ids.h:194
@ SceneFickerOff
No flickering detected.
Definition: control_ids.h:193
@ SceneFicker60Hz
60Hz flickering detected.
Definition: control_ids.h:195
TestPatternModeEnum
Supported TestPatternMode values.
Definition: control_ids.h:201
@ TestPatternModeColorBarsFadeToGray
The test pattern is similar to TestPatternModeColorBars, except that each bar should start at its spe...
Definition: control_ids.h:205
@ TestPatternModeCustom1
The first custom test pattern. All custom patterns that are available only on this camera device are ...
Definition: control_ids.h:207
@ TestPatternModePn9
All pixel data is replaced by a pseudo-random sequence generated from a PN9 512-bit sequence (typical...
Definition: control_ids.h:206
@ TestPatternModeOff
No test pattern mode is used. The camera device returns frames from the image sensor.
Definition: control_ids.h:202
@ TestPatternModeSolidColor
Each pixel in [R, G_even, G_odd, B] is replaced by its respective color channel provided in test patt...
Definition: control_ids.h:203
@ TestPatternModeColorBars
All pixel data is replaced with an 8-bar color pattern. The vertical bars (left-to-right) are as foll...
Definition: control_ids.h:204
const std::array< const ControlValue, 2 > LensShadingMapModeValues
List of all LensShadingMapMode supported values.
AfStateEnum
Supported AfState values.
Definition: control_ids.h:166
@ AfStatePassiveUnfocused
AF has completed a passive scan without finding focus.
Definition: control_ids.h:173
@ AfStatePassiveFocused
AF believes the scene is in focus, but might restart scanning.
Definition: control_ids.h:169
@ AfStateFocusedLock
AF believes has focused correctly and has locked focus.
Definition: control_ids.h:171
@ AfStateActiveScan
AF is performing a scan triggered by an AF trigger request.
Definition: control_ids.h:170
@ AfStateNotFocusedLock
AF has not been able to focus and has locked.
Definition: control_ids.h:172
@ AfStatePassiveScan
AF is performing a passive scan of the scene in continuous auto-focus mode.
Definition: control_ids.h:168
@ AfStateInactive
The AF algorithm is inactive.
Definition: control_ids.h:167
const Control< int32_t > AfState
Control to report the current AF algorithm state. Currently identical to ANDROID_CONTROL_AF_STATE.
const std::array< const ControlValue, 7 > AfStateValues
List of all AfState supported values.
const Control< int32_t > MaxLatency
The maximum number of frames that can occur after a request (different than the previous) has been su...
const std::array< const ControlValue, 6 > TestPatternModeValues
List of all TestPatternMode supported values.
ColorCorrectionAberrationModeEnum
Supported ColorCorrectionAberrationMode values.
Definition: control_ids.h:149
@ ColorCorrectionAberrationHighQuality
High quality aberration correction which might reduce the frame rate.
Definition: control_ids.h:152
@ ColorCorrectionAberrationOff
No aberration correction is applied.
Definition: control_ids.h:150
@ ColorCorrectionAberrationFast
Aberration correction will not slow down the frame rate.
Definition: control_ids.h:151
const Control< int64_t > SensorRollingShutterSkew
Control to report the time between the start of exposure of the first row and the start of exposure o...
const std::array< const ControlValue, 3 > ColorCorrectionAberrationModeValues
List of all ColorCorrectionAberrationMode supported values.
const Control< int32_t > AfTrigger
Control for AF trigger. Currently identical to ANDROID_CONTROL_AF_TRIGGER.
AePrecaptureTriggerEnum
Supported AePrecaptureTrigger values.
Definition: control_ids.h:126
@ AePrecaptureTriggerStart
The pre-capture AE metering is started by the camera.
Definition: control_ids.h:128
@ AePrecaptureTriggerIdle
The trigger is idle.
Definition: control_ids.h:127
@ AePrecaptureTriggerCancel
The camera will cancel any active or completed metering sequence. The AE algorithm is reset to its in...
Definition: control_ids.h:129
const Control< int64_t > SensorTimestamp
The time when the first row of the image sensor active array is exposed.
const Control< float > Brightness
Specify a fixed brightness parameter. Positive values (up to 1.0) produce brighter images; negative v...
const std::array< const ControlValue, 4 > AeConstraintModeValues
List of all AeConstraintMode supported values.
const Control< int32_t > AeExposureMode
Specify an exposure mode for the AE algorithm to use. These specify how the desired total exposure is...
const Control< int32_t > AwbMode
Specify the range of illuminants to use for the AWB algorithm. The modes supported are platform speci...
const Control< Span< const int32_t > > SensorBlackLevels
Reports the sensor black levels used for processing a frame, in the order R, Gr, Gb,...
const Control< int64_t > FrameDuration
The instantaneous frame duration from start of frame exposure to start of next exposure,...
const Control< bool > AwbEnable
Enable or disable the AWB.
const Control< int32_t > FocusFoM
Reports a Figure of Merit (FoM) to indicate how in-focus the frame is. A larger FocusFoM value indica...
const Control< int32_t > ExposureTime
Exposure time (shutter speed) for the frame applied in the sensor device. This value is specified in ...
const Control< bool > AeLocked
Report the lock status of a running AE algorithm.
const Control< Span< const int64_t > > FrameDurationLimits
The minimum and maximum (in that order) frame duration, expressed in microseconds.
const std::array< const ControlValue, 4 > AeMeteringModeValues
List of all AeMeteringMode supported values.
const std::array< const ControlValue, 4 > AeExposureModeValues
List of all AeExposureMode supported values.
const Control< float > Contrast
Specify a fixed contrast parameter. Normal contrast is given by the value 1.0; larger values produce ...
const Control< float > ExposureValue
Specify an Exposure Value (EV) parameter. The EV parameter will only be applied if the AE algorithm i...
const Control< bool > AeEnable
Enable or disable the AE.
AwbModeEnum
Supported AwbMode values.
Definition: control_ids.h:96
@ AwbDaylight
Daylight AWB lighting mode.
Definition: control_ids.h:102
@ AwbTungsten
Tungsten AWB lamp mode.
Definition: control_ids.h:99
@ AwbAuto
Search over the whole colour temperature range.
Definition: control_ids.h:97
@ AwbCustom
Custom AWB mode.
Definition: control_ids.h:104
@ AwbIndoor
Indoor AWB lighting mode.
Definition: control_ids.h:101
@ AwbFluorescent
Fluorescent AWB lamp mode.
Definition: control_ids.h:100
@ AwbIncandescent
Incandescent AWB lamp mode.
Definition: control_ids.h:98
@ AwbCloudy
Cloudy AWB lighting mode.
Definition: control_ids.h:103
const Control< float > DigitalGain
Digital gain value applied during the processing steps applied to the image as captured from the sens...
const Control< Rectangle > ScalerCrop
Sets the image portion that will be scaled to form the whole of the final output image....
const Control< int32_t > ColourTemperature
Report the current estimate of the colour temperature, in kelvin, for this frame. The ColourTemperatu...
const ControlIdMap controls
List of all supported libcamera controls.
Definition: control_ids.cpp:997
const Control< float > Saturation
Specify a fixed saturation parameter. Normal saturation is given by the value 1.0; larger values prod...
const Control< float > Lux
Report an estimate of the current illuminance level in lux. The Lux control can only be returned in m...
const Control< int32_t > AeMeteringMode
Specify a metering mode for the AE algorithm to use. The metering modes determine which parts of the ...
const std::array< const ControlValue, 8 > AwbModeValues
List of all AwbMode supported values.
AeMeteringModeEnum
Supported AeMeteringMode values.
Definition: control_ids.h:65
@ MeteringCentreWeighted
Centre-weighted metering mode.
Definition: control_ids.h:66
@ MeteringMatrix
Matrix metering mode.
Definition: control_ids.h:68
@ MeteringCustom
Custom metering mode.
Definition: control_ids.h:69
@ MeteringSpot
Spot metering mode.
Definition: control_ids.h:67
AeExposureModeEnum
Supported AeExposureMode values.
Definition: control_ids.h:81
@ ExposureLong
Exposure mode allowing long exposure times.
Definition: control_ids.h:84
@ ExposureNormal
Default exposure mode.
Definition: control_ids.h:82
@ ExposureShort
Exposure mode allowing only short exposure times.
Definition: control_ids.h:83
@ ExposureCustom
Custom exposure mode.
Definition: control_ids.h:85
const Control< float > AnalogueGain
Analogue gain value applied in the sensor device. The value of the control specifies the gain multipl...
AeConstraintModeEnum
Supported AeConstraintMode values.
Definition: control_ids.h:73
@ ConstraintHighlight
Highlight constraint mode. This mode adjusts the exposure levels in order to try and avoid over-expos...
Definition: control_ids.h:75
@ ConstraintCustom
Custom constraint mode.
Definition: control_ids.h:77
@ ConstraintShadows
Shadows constraint mode. This mode adjusts the exposure levels in order to try and avoid under-exposi...
Definition: control_ids.h:76
@ ConstraintNormal
Default constraint mode. This mode aims to balance the exposure of different parts of the image so as...
Definition: control_ids.h:74
const Control< Span< const float > > ColourGains
Pair of gain values for the Red and Blue colour channels, in that order. ColourGains can only be appl...
const Control< Span< const float > > ColourCorrectionMatrix
The 3x3 matrix that converts camera RGB to sRGB within the imaging pipeline. This should describe the...
const Control< float > Sharpness
A value of 0.0 means no sharpening. The minimum value means minimal sharpening, and shall be 0....
const Control< bool > AwbLocked
Report the lock status of a running AWB algorithm.
const Control< int32_t > AeConstraintMode
Specify a constraint mode for the AE algorithm to use. These determine how the measured scene brightn...
Top-level libcamera namespace.
Definition: backtrace.h:17
std::unordered_map< unsigned int, const ControlId * > ControlIdMap
A map of numerical control ID to ControlId.
Definition: controls.h:302