hi_mpi_isp_awb_lib_reg_callback

Applicable Products

Product

Supported

Ascend 950PR&950DT products

×

Atlas A3 products

×

Atlas A2 products

×

Atlas 200I/500 A2 inference products

√

Atlas inference products

×

Atlas training products

×

Description

Registers the AWB algorithm library.

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, 12)

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.

Constraints

  • The ISP provides unified APIs for initializing, running, controlling, and destroying the AWB algorithm library. If you use the preset 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 MPI does not support multi-process operations.
  • A maximum of two AWB libraries can be registered.