hi_mpi_isp_awb_lib_reg_callback

Description

Registers the AWB algorithm library.

Constraints

  • The ISP provides unified APIs for initializing, running, controlling, and destroying the AWB algorithm library. If you use the Ascend AWB algorithm library, this API can be ignored. If you use your own AWB algorithm library, you need to call this API to register callback functions with the ISP.
  • This API does not support multiple processes.
  • A maximum of two AWB libraries can be registered.

Prototype

hi_s32 hi_mpi_isp_awb_lib_reg_callback(hi_vi_pipe vi_pipe, const hi_isp_3a_alg_lib *awb_lib, const hi_isp_awb_register *awb_register)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID

Value range: [0, 8)

awb_lib

Input

Pointer to the structure of the AWB algorithm library

awb_register

Input

Pointer to the structure for registering the AWB algorithm library

Returns

  • 0: success
  • Other values: failure. For details, see Error Codes.