hi_isp_color_matrix_auto

Description

Defines the automatic CCM attribute.

Definition

typedef struct {     
    hi_bool iso_act_en;    
    hi_bool temp_act_en;        
    hi_u16  ccm_tab_num;       
    hi_isp_color_matrix_param  ccm_tab[HI_ISP_CCM_MATRIX_NUM]; 
} hi_isp_color_matrix_auto;

Members

Member

Description

iso_act_en

CCM bypass enable under low illuminance

Value range: [0, 1]

temp_act_en

CCM bypass enable at the high and low color temperatures

Value range: [0, 1]

ccm_tab_num

Number of current CCM groups

Value range: [3, 7]

ccm_tab[HI_ISP_CCM_MATRIX_NUM]

CCM and color temperature value under different color temperatures

#define HI_ISP_CCM_MATRIX_NUM    7

Restrictions

  • When op_type in hi_isp_saturation_attr is set to HI_OP_MODE_AUTO and the automatic saturation adjustment function is used, iso_act_en and temp_act_en take effect. When op_type is set to HI_OP_MODE_MANUAL, the manual saturation adjustment function is enabled, iso_act_en and temp_act_en do not take effect.
  • If iso_act_en is enabled, the CCM is automatically bypassed under extremely low illuminance (ISO > 12800), and the CCM matrix controlled by the saturation array sat[16] is gradually adjusted to close to the unit matrix. In this way, the actual saturation of the CCM is inconsistent with that configured in the saturation array. After iso_act_en is disabled, the saturation array still takes effect under the extremely low illuminance.
  • If temp_act_en is enabled, the AWB may not be completely restored at a high color temperature (> 8000K) or a low color temperature (< 2500K). In this case, if a high-saturation CCM matrix is used, the color cast of the AWB aggravates. For example, in the sodium lamp scenario, the effect of the blue color is not good enough in the white area after AWB correction. If a high-saturation CCM is used, the B component of the white area may be 0 and the entire image has a yellow cast. After temp_act_en is enabled, the CCM is gradually bypassed at the high and low color temperatures, and the CCM matrix obtained from the saturation array sat[16] is gradually adjusted to close to the unit matrix. In this way, the color performance in similar scenarios is optimized.
  • The data format of the CCM must be the same as that of the correction tool.