Definitions on status types and values. More...
Definitions on status types and values.
Controller operational status.
Defines the current operational state of an auto feature controller. The status indicates what the controller is currently doing and whether it is available for new operations.
| Enumerator | |
|---|---|
| PEAK_AFL_CONTROLLER_STATUS_UNDEFINED | Controller status undefined. |
| PEAK_AFL_CONTROLLER_STATUS_OFF | Controller is disabled or inactive. The controller is in OFF mode and not processing images. No automatic adjustments will be made until the controller is set to CONTINUOUS or ONCE mode.
|
| PEAK_AFL_CONTROLLER_STATUS_IN_PROGRESS | Controller is actively processing. The controller is currently in the middle of processing an image or executing an algorithm. This indicates ongoing work that has not yet completed.
|
| PEAK_AFL_CONTROLLER_STATUS_FINISHED | Controller completed its operation successfully. The controller has finished processing and reached its target or completed the requested operation. In ONCE mode, the controller automatically transitions to OFF after reaching this state.
|
| PEAK_AFL_CONTROLLER_STATUS_BUSY | Controller is busy and cannot accept new requests. The controller is currently occupied and cannot process new images or requests. This typically occurs when the controller is already processing an image or waiting for camera parameter adjustments.
|
| PEAK_AFL_CONTROLLER_STATUS_CANCELED | Controller operation was canceled. The current operation was canceled before completion, either by user request or due to changing conditions. The controller is available for new operations.
|
| PEAK_AFL_CONTROLLER_STATUS_ERROR | Controller encountered an error. An error occurred during processing or parameter adjustment. The controller may need to be reset or reconfigured. Use peak_afl_GetLastError() for detailed error information.
|
| PEAK_AFL_CONTROLLER_STATUS_SKIPPED | Controller skipped processing this frame. The controller deliberately skipped processing the current frame, typically due to skip frames configuration or because the frame did not meet processing criteria.
|
| enum peak_afl_status |
Auto feature library status codes.
All auto feature library functions return one of these status codes to indicate success or the specific type of error that occurred. Applications should always check return values and handle errors appropriately.
| Enumerator | |
|---|---|
| PEAK_AFL_STATUS_SUCCESS | Operation completed successfully. The function executed without any errors and completed the requested operation. |
| PEAK_AFL_STATUS_ERROR | General error occurred. An unspecified error occurred during function execution. Use peak_afl_GetLastError() to get detailed information about the specific error.
|
| PEAK_AFL_STATUS_NOT_INITIALIZED | Library not initialized. The auto feature library has not been initialized. Call peak_afl_Init() before using any other library functions.
|
| PEAK_AFL_STATUS_INVALID_PARAMETER | Invalid parameter provided. One or more function parameters are invalid (e.g., NULL pointers where valid pointers are required, out-of-range values, invalid handles).
|
| PEAK_AFL_STATUS_ACCESS_DENIED | Access denied to resource. The requested operation could not be performed due to insufficient permissions or the resource being locked by another process. |
| PEAK_AFL_STATUS_BUSY | Resource is busy. The requested resource (manager, controller, or device) is currently busy processing another operation. Try again later or check the status. |
| PEAK_AFL_STATUS_BUFFER_TOO_SMALL | Provided buffer is too small. The buffer provided for output data is smaller than required. Use the two-stage query pattern to determine the required buffer size.
|
| PEAK_AFL_STATUS_INVALID_IMAGE_FORMAT | Invalid or unsupported image format. The provided image format is not supported by the auto feature algorithms or the format parameters are invalid.
|
| PEAK_AFL_STATUS_NOT_SUPPORTED | Feature or operation not supported. The requested feature or operation is not supported by the current device or configuration. Check feature availability before use. |
| PEAK_AFL_STATUS_VALUE_ADJUSTED | Parameter value was adjusted. The operation succeeded, but one or more parameter values were automatically adjusted to fit within valid ranges. Check current values after the operation.
|