hi_isp_shading_gain_lut

Description

Defines parameters of the mesh shading gain LUT.

Definition

typedef struct {     
    hi_u16  r_gain[HI_ISP_LSC_GRID_POINTS];  
    hi_u16  gr_gain[HI_ISP_LSC_GRID_POINTS];  
    hi_u16  gb_gain[HI_ISP_LSC_GRID_POINTS];  
    hi_u16  b_gain[HI_ISP_LSC_GRID_POINTS];
} hi_isp_shading_gain_lut;

Members

Member

Description

r_gain[HI_ISP_LSC_GRID_POINTS]

Stores the calibration data of channel R required for mesh shading. This array indicates the shadow correction gain data of the R component at the grid intersection points from left to right and from top to bottom.

Value range: [0, 1023]

#define HI_ISP_LSC_GRID_POINTS 	(HI_ISP_LSC_GRID_COL * HI_ISP_LSC_GRID_ROW)

gr_gain[HI_ISP_LSC_GRID_POINTS]

Stores the calibration data of channel Gr required for mesh shading. This array indicates the shadow correction gain data of the Gr component at the grid intersection points from left to right and from top to bottom.

Value range: [0, 1023]

gb_gain[HI_ISP_LSC_GRID_POINTS]

Stores the calibration data of channel Gb required for mesh shading. This array indicates the shadow correction gain data of the Gb component at the grid intersection points from left to right and from top to bottom.

Value range: [0, 1023]

b_gain[HI_ISP_LSC_GRID_POINTS]

Stores the calibration data of channel B required for mesh shading. This array indicates the shadow correction gain data of the B component at the grid intersection points from left to right and from top to bottom.

Value range: [0, 1023]

Restrictions

  • The default configuration for the gain table is associated with the value of bit1(Lsc flag) in hi_isp_cmos_alg_key. If bit1(Lsc=1) is set, the configured value in cmos_ex.h is used as the default value. Otherwise, the default value is 1x gain.
  • The precision of the gain table is related to the value of mesh_scale. For details, see Table 1 in section "hi_isp_shading_lut_attr". When mesh_scale is set to the default value 4, the gain table is set to 0, indicating 1x gain.