hi_mpi_isp_init
Description
Initializes the ISP firmware.
Prototype
hi_s32 hi_mpi_isp_init(hi_vi_pipe vi_pipe)
Constraints
- Call hi_mpi_isp_set_pub_attr to set public image attributes before calling this API.
- To ensure that resources are completely cleared before the previous process exits, you are advised to call hi_mpi_isp_exit and before calling this API to initialize the ISP firmware.
- Multiple processes are not supported. This API must be called in the same process as hi_mpi_isp_sensor_reg_callback, hi_mpi_isp_run, hi_mpi_isp_exit, hi_mpi_ae_register, and hi_mpi_awb_register.
- This API cannot be called repeatedly.
- When the same vi_pipe is used, multiple threads cannot be used for ISP creation or destroying (multiple threads cannot call hi_mpi_isp_sensor_reg_callback, hi_mpi_isp_run, hi_mpi_isp_exit, hi_mpi_ae_register, and hi_mpi_awb_register at the same time).
- After the ISP is initialized, it takes one frame for the hardware to read the algorithm coefficient table. Therefore, within one frame after this API is called, hi_mpi_vi_stop_pipe cannot be called to stop the VI pipe.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
vi_pipe |
Input |
VI pipe ID Value range: [0, 8) |
Returns
- 0: success
- Other values: failure. For details, see Error Codes.
Parent topic: ISP System Control and 3A Algorithm Registration