hi_mpi_isp_mem_init

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

☓

Function

Initializes the internal resources of the ISP.

Prototype

hi_s32 hi_mpi_isp_mem_init(hi_vi_pipe vi_pipe)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID.

Value range: [0, 12)

Returns

Restrictions

  • Call hi_mpi_isp_sensor_reg_callback to register the sensor with the ISP before calling this API.
  • Multiple processes are not supported. This API must be called in the same process as hi_mpi_isp_sensor_reg_callback, hi_mpi_isp_ae_lib_reg_callback, hi_mpi_isp_awb_lib_reg_callback, hi_mpi_isp_init, hi_mpi_isp_run, hi_mpi_isp_exit, hi_mpi_ae_register, and hi_mpi_awb_register.
  • This API cannot be called when the current service is running the hi_mpi_isp_run API.
  • You are advised to call this API to reinitialize the module after calling hi_mpi_isp_exit.
  • When the same vi_pipe is used, multiple threads cannot be used for ISP creation or destruction (which means multiple threads cannot call hi_mpi_isp_sensor_reg_callback, hi_mpi_isp_ae_lib_reg_callback, hi_mpi_isp_awb_lib_reg_callback, hi_mpi_isp_init, hi_mpi_isp_run, hi_mpi_isp_exit, hi_mpi_ae_register, and hi_mpi_awb_register at the same time).

Reference

For the API call sequence, see Video Data Obtaining.