hi_isp_ca_lut

Description

Defines the CA mode attribute.

Definition

typedef struct {
     hi_u32  y_ratio_lut[HI_ISP_CA_YRATIO_LUT_LENGTH];
     hi_s32  iso_ratio[HI_ISP_AUTO_ISO_NUM];
} hi_isp_ca_lut;

Members

Member

Description

y_ratio_lut

Gain for adjusting the chrominance UV based on the luminance Y in CA mode. The luminance is evenly divided into 256 parts, and 256 adjustment coefficient As are configured accordingly for adjusting the UV value. During adjustment, a smaller Y value (dark region) corresponds to a smaller gain A, which can effectively suppress chrominance noise in dark regions. If the luminance gain is set to a larger value, the colors in the bright regions are brighter.

Value range: [0, 2047]

#define HI_ISP_CA_YRATIO_LUT_LENGTH               128

iso_ratio[HI_ISP_AUTO_ISO_NUM]

Gain B for adjusting the chrominance UV based on the ISO value in CA mode. This is a global gain, that is, the ISO value is fixed, and the UV adjustment gains for all pixels in the image are gain B. You are advised to set gain B to a larger value when the ISO value is small and to a smaller value when the ISO value is large (low illuminance). In this way, chrominance noise in dark regions under low illumination is reduced.

Value range: [0, 2047]

#define HI_ISP_AUTO_ISO_NUM 	16