hi_mpi_isp_set_black_level_attr

Description

Sets the black level attribute.

Prototype

hi_s32 hi_mpi_isp_set_black_level_attr(hi_vi_pipe vi_pipe, const hi_isp_black_level_attr *black_level)

Constraints

  • When this MPI is set to automatic mode, if bUpdate in the ISP_CMOS_BLACK_LEVEL_S structure in cmos.c is set to HI_TRUE, the associated black level configuration in cmos.c is always used. If bUpdate is set to HI_FALSE, the non-associated black level configuration in cmos.c is used. When this MPI is set to manual mode, the black level configured through the MPI takes effect and the ISP uses the configured value.
  • In linear mode, the black level module is integrated in the ISP Dgain module. Therefore, when the ISP Dgain module is bypassed, the black level function will be disabled simultaneously. This greatly affects the image quality.
  • In WDR mode, the black level module is integrated in the ISP Dgain and WDR modules, when the ISP Dgain module is bypassed, the picture quality is affected.

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

VI pipe ID

Value range: [0, 8)

black_level

Input

Black level attribute

Returns

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