hi_isp_awb_exp_func
Description
Defines the AWB callback function.
Definition
typedef struct {
hi_s32 (*pfn_awb_init)(hi_s32 handle, const hi_isp_awb_param *awb_param, hi_isp_awb_result *awb_result);
hi_s32 (*pfn_awb_run)(hi_s32 handle,
const hi_isp_awb_info *awb_info,
hi_isp_awb_result *awb_result,
hi_s32 reserved);
hi_s32 (*pfn_awb_ctrl)(hi_s32 handle, hi_u32 cmd, hi_void *value);
hi_s32 (*pfn_awb_exit)(hi_s32 handle);
} hi_isp_awb_exp_func;
Members
Member |
Description |
|---|---|
pfn_awb_init |
Pointer to the callback function for initializing the AWB |
pfn_awb_run |
Pointer to the callback function for running the AWB |
pfn_awb_ctrl |
Pointer to the callback function for controlling the internal status of the AWB. For details about the cmd value, see hi_isp_ctrl_cmd. |
pfn_awb_exit |
Pointer to the callback function for destroying the AWB algorithm library |
Restrictions
- pfn_awb_init is called when hi_mpi_isp_init is called to initialize the AWB algorithm library.
- hi_isp_awb_result of pfn_awb_init returns the initial AWB gain and initial CCM when the ISP starts.
- pfn_awb_run is called when hi_mpi_isp_run is called to run the AWB algorithm library and calculate the white balance gain and color correction matrix (CCM).
- pfn_awb_ctrl is called inexplicitly when the ISP control unit is running to instruct the AWB algorithm library to switch the WDR or linear mode and set the ISO and exposure time (in μs). The ISO is related to the saturation. The chrominance noise becomes large when the gain is large. As a result, the saturation needs to be adjusted. The exposure time is set to assist indoor/outdoor judgment.
For details about the ctrl commands defined by the firmware, see hi_isp_ctrl_cmd.
- pfn_awb_exit is called when hi_mpi_isp_exit is called to destroy the AWB algorithm library.
Parent topic: Data Types