hi_isp_depurplestr_auto_attr

Description

Defines the automatic purple fringing correction attribute.

Definition

typedef struct {
    hi_u8 de_purple_cr_str[HI_ISP_LCAC_EXP_RATIO_NUM];                                                            
    hi_u8 de_purple_cb_str[HI_ISP_LCAC_EXP_RATIO_NUM]; 
} hi_isp_depurplestr_auto_attr;

Members

Member

Description

de_purple_cr_str[HI_ISP_LCAC_EXP_RATIO_NUM]

Correction strength of channel R in automatic mode. The 16 values correspond to 16 different exposure ratios, respectively. Generally, a larger exposure ratio indicates greater purple fringing correction strength. Table 1 shows the mapping relationship. If two consecutive processing strengths are not the same, the processing strength corresponding to an exposure ratio between the two consecutive processing strengths can be determined by using linear interpolation.

Value range: [0, 8]

#define HI_ISP_LCAC_EXP_RATIO_NUM       16

de_purple_cb_str[HI_ISP_LCAC_EXP_RATIO_NUM]

Correction strength of channel B in automatic mode.

Value range: [0, 8]

Table 1 Mapping between the configured values of de_purple_cr_str[16] and exposure ratios

de_purple_cr_strength

Exposure Ratio

de_purple_cr_str[0]

64

de_purple_cr_str[1]

128

de_purple_cr_str[2]

192

de_purple_cr_str[3]

256

de_purple_cr_str[4]

320

de_purple_cr_str[5]

384

de_purple_cr_str[6]

448

de_purple_cr_str[7]

512

de_purple_cr_str[8]

576

de_purple_cr_str[9]

640

de_purple_cr_str[10]

704

de_purple_cr_str[11]

768

de_purple_cr_str[12]

832

de_purple_cr_str[13]

896

de_purple_cr_str[14]

960

de_purple_cr_str[15]

1023

Restrictions

  • Exposure ratio is a concept only used in WDR mode. The exposure ratio obtained in linear mode is 1. Therefore, only the first group of configurations is valid in linear mode.
  • In built-in WDR mode, this parameter is not associated with the exposure ratio. To be distinguished from the linear mode, only the last group of configurations takes effect, that is, the configurations corresponding to the exposure ratio 1023.
  • In WDR automatic long frame mode and WDR long frame mode, the first group of configurations for the exposure ratio takes effect and remains unchanged.