hi_mpi_isp_sensor_reg_callback

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

×

Atlas A3 training products/Atlas A3 inference products

×

Atlas A2 training products/Atlas A2 inference products

×

Atlas 200I/500 A2 inference products

√

Atlas inference products

×

Atlas training products

×

Description

Registers a sensor. This callback API is provided by the ISP library to obtain differentiated initialization parameters and control the sensor.

This API does not support multiple processes.

Prototype

hi_s32 hi_mpi_isp_sensor_reg_callback(hi_vi_pipe vi_pipe, const hi_isp_sns_attr_info *sns_attr_info, const hi_isp_sensor_register *sns_register)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID

Value range: [0, 12)

sns_attr_info

Input

Attributes of the sensor that is registered with the ISP 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.

sns_register

Input

Pointer to the sensor registration structure

Returns

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