With this feature it is possible to define precisely the allowed range of the exposure time or gains for automatic adjustments, when auto brightness is enabled.
◆ peak_afl_AutoController_GainAnalogLimit_Get()
◆ peak_afl_AutoController_GainAnalogLimit_GetRange()
◆ peak_afl_AutoController_GainAnalogLimit_Set()
Set autofeature analog gain limit for a controller.
The valid values are dependent on the analog gain node and can be between minimum and maximum. Default is the complete range.
If any value of the limit is out of range, the value is clamped to be valid. In this case, the function returns with PEAK_AFL_STATUS_VALUE_ADJUSTED. It is recommended to check the current values by calling peak_afl_AutoController_GainAnalogLimit_Set after this call.
- Parameters
-
| [in] | controller | controller handle |
| [in] | limit | Limits the controller to adjust the analog gain to the supplied range between min and max of limit. |
- Returns
- PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
-
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
-
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
-
PEAK_AFL_STATUS_VALUE_ADJUSTED At least one value of the limit is out of range. The limit was adjusted accordingly.
-
PEAK_AFL_STATUS_NOT_SUPPORTED The function is not supported.
-
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.
- Since
- 1.6