hi_mpi_ae_sensor_reg_callback

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Registers a sensor. This callback API is provided by the AE algorithm library. The AE obtains differentiated initialization parameters and controls the sensor based on related callback APIs. This API does not support multiple processes.

Prototype

hi_s32 hi_mpi_ae_sensor_reg_callback(hi_vi_pipe vi_pipe, hi_isp_3a_alg_lib *ae_lib, const hi_isp_sns_attr_info *sns_attr_info, const hi_isp_ae_sensor_register *pregister)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID.

Value range: [0, 12)

ae_lib

Input

Pointer to the data structure of the AE algorithm library.

sns_attr_info

Input

Attributes of the sensor that is registered with the AE algorithm library.

sensor_id in this structure can be configured in the sensor library and must be unique. It is used to ensure that the sensor registered with the ISP library is the same as that registered with the 3A algorithm library.

pregister

Input

Pointer to the sensor registration structure.

Returns

See Also

For details about the API call sequence, see Video Data Obtaining.