hi_isp_color_matrix_manual

Description

Defines the manual CCM attribute.

Definition

typedef struct {
    hi_bool sat_en;               
    hi_u16  ccm[HI_ISP_CCM_MATRIX_SIZE]; 
} hi_isp_color_matrix_manual;

Members

Member

Description

sat_en

Whether the saturation takes effect in manual CCM mode

Value range: [0, 1]

ccm[HI_ISP_CCM_MATRIX_SIZE]

Manual CCM (8-bit decimal precision). Bit 15 is a sign bit. 0 indicates a positive number, and 1 indicates a negative number. For example, 0x8010 indicates −16.

Value range: [0x0, 0xFFFF]

#define HI_ISP_CCM_MATRIX_SIZE 9

Restrictions

  • You can choose whether to validate the saturation in manual CCM mode by setting sat_en.

    sat_en = 1: Effective CCM = Manual CCM x Saturation CCM. You can use it to determine the saturation arrays under different illuminance.

    sat_en = 0: Effective CCM = Manual CCM

  • When sat_en is set to 1, the effective CCM is automatically corrected. Ensure that the sum value of parameters in each line is 0x100. When sat_en is set to 0, the effective CCM is set manually.