hi_isp_awb_sensor_default

Description

Defines the initialization parameters for the AWB algorithm library.

Definition

typedef struct {
    hi_u16  wb_ref_temp;
    hi_u16  gain_offset[HI_ISP_BAYER_CHN_NUM];
    hi_s32  wb_para[HI_ISP_AWB_CURVE_PARA_NUM];
    hi_u16  golden_rgain;
    hi_u16  golden_bgain;
    hi_u16  sample_rgain;
    hi_u16  sample_bgain;
    hi_isp_awb_agc_table agc_tbl;
    hi_isp_awb_ccm ccm;
    hi_u16    init_rgain;
    hi_u16    init_ggain;
    hi_u16    init_bgain;
    hi_u8     awb_run_interval;
    hi_u16    init_ccm[HI_ISP_CCM_MATRIX_SIZE];
} hi_isp_awb_sensor_default;

Members

Member

Description

wb_ref_temp

Color temperature for correcting the static white balance. The value range is [0, 0xFFFF].

gain_offset

Gain array of the R, Gr, Gb, and B color channels for static white balance. The value range is [0, 0xFFFF].

HI_ISP_BAYER_CHN_NUM defines the number of Bayer data channels. The value is 4.

wb_para

White balance parameter array provided by the correction tool. The value range is [0, 0xFFFFFFFF].

HI_ISP_AWB_CURVE_PARA_NUM defines the number of Planck curve parameters for self-developed AWB calibration. The value is 6.

golden_rgain

G/R value output by the online calibration of the golden sample.

golden_bgain

G/B value output by the online calibration of the golden sample.

sample_rgain

G/R value output by the online calibration of the current sample.

sample_bgain

G/B value output by the online calibration of the current sample.

agc_tbl

Whether the data of the structure is valid. The value range is [0, 1].

Interpolation array for dynamically adjusting the saturation based on the gain. The value range is [0, 255].

ccm

Number of current CCM groups.

Value range: [3, 7]

CCM and color temperature value under different color temperatures.

init_rgain

Initial R channel gain of the white balance when the ISP starts.

init_ggain

Initial G channel gain of the white balance when the ISP starts.

init_bgain

Initial B channel gain of the white balance when the ISP starts.

awb_run_interval

AWB operating frequency when the ISP starts.

Value range: [0x1, 0xFF]

init_ccm

Initial CCM value array when the ISP starts.

HI_ISP_CCM_MATRIX_SIZE defines the number of CCM parameters. The value is 9.

Precautions

The reference color temperature is the environmental color temperature after static white balance correction. The actual value measured by the colorimeter needs to be provided.