hi_isp_shading_attr

Description

Defines the attribute of the mesh shading algorithm.

Definition

typedef struct {
     hi_bool enable;
     hi_u16  mesh_strength;  
     hi_u16  blend_ratio;
} hi_isp_shading_attr;

Members

Member

Description

enable

Mesh shading enable

  • HI_FALSE: disabled
  • HI_TRUE: enabled

mesh_strength

Global mesh shading correction strength after calibration. When the lens shading is serious, the compensation gain of the four corners of the image is large. As a result, the noise is obvious and grids may appear. If the value of mesh_strength is less than 1x, the mesh shading compensation can be reduced so that the compensation gains of the four corners are small. In this way, the noise and image grid problems are optimized.

Value range: [0, 65535]

blend_ratio

Ratio for blending two gain LUTs, indicating the weight of the zeroth table. 256 indicates that only the zeroth table is selected. 0 indicates that only the first table is selected.

Value range: [0, 256]