hi_isp_cmos_acs

Description

Defines the CMOS parameters of ACS.

Definition

typedefstruct {
    hi_bool                       enable;
    hi_u16                        acs_shading_str;
    hi_isp_acs_calib_param        acs_calib_param;
    hi_isp_acs_y_shading_lut      acs_y_shading_lut;
    hi_isp_acs_color_shading_lut  acs_color_shading_lut;
} hi_isp_cmos_acs;

Members

Member

Description

enable

ACS module enable

acs_shading_str

Luma shading correction strength of the ACS algorithm

acs_calib_param

Calibration parameter of ACS

acs_y_shading_lut

Correction strength table of the luminance component in ACS, that is, the correction strength of the Gr or Gb component.

acs_color_shading_lut

LUT table of the color component in ACS. The algorithm dynamically generates the LUT suitable for the current scenario based on the R or B component.

Restrictions

  • The default configuration for the gain table is associated with the value of bit1_acs of hi_isp_cmos_alg_key. If bit1_acs is set to 1, the configured value in cmos_ex.h is used as the default value. Otherwise, the default value is 0.
  • The OTP of the ACS module is implemented through lsc_lut.lsc_gain_lut in hi_isp_cmos_lsc. lsc_lut.lsc_gain_lut[0] is set to the table calibrated by golden sample in D50, and lsc_lut.lsc_gain_lut[1] is set to the table calibrated by the current lens module in D50. This can solve the lens consistency problem. The smaller the difference between the module and golden sample, the better the correction effect. Alternatively, you follow the preceding description to configure lsc_gain_lut[0] and lsc_gain_lut[1] in hi_mpi_isp_set_mesh_shading_gain_lut_attr after the ISP starts.