hi_mpi_isp_set_iris_attr
Description
Sets iris control attributes. This function can be used to set parameters such as manual iris attributes and iris types.
Prototype
hi_s32 hi_mpi_isp_set_iris_attr(hi_vi_pipe vi_pipe, const hi_isp_iris_attr *iris_attr)
Constraints
- You are advised to set the iris type attribute based on the iris type of the actual connected lens, and then set the corresponding control attribute of the DC-Iris or P-Iris. If the connected lens uses the manual iris, the iris type can be set to HI_ISP_IRIS_DC_TYPE, and you are advised to disable AI in this case.
- The manual iris attribute is used for debugging, and can be configured by using this MPI. For the P-Iris, the manual iris parameter iris_fno is affected by the maximum and minimum iris target values. Parameters related to the automatic iris attribute can be configured by calling hi_mpi_isp_set_dciris_attr and hi_mpi_isp_get_piris_attr.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
vi_pipe |
Input |
VI pipe ID Value range: [0, 8) |
iris_attr |
Input |
Pointer to the data structure of the iris control attribute |
Returns
- 0: success
- Other values: failure. For details, see Error Codes.
Parent topic: AI Control Module