hi_isp_wb_attr

Description

Defines the WB attribute.

Definition

typedef struct {
    hi_bool bypass;
    hi_u8  awb_run_interval;
    hi_op_mode   op_type;     
    hi_isp_mwb_attr  manual_attr;     
    hi_isp_awb_attr  auto_attr;     
    hi_isp_awb_alg   alg_type;
} hi_isp_wb_attr;

Members

Member

Description

bypass

WB bypass enable

The options are as follows:

  • HI_FALSE: disabled
  • HI_TRUE: enabled

awb_run_interval

Operating frequency of the WB module. Value range: [0x1, 0xFF]

op_type

Automatic/Manual WB switch.

The options are as follows:

  • HI_ISP_OP_TYPE_AUTO: automatic mode
  • HI_ISP_OP_TYPE_MANUAL: manual mode

manual_attr

Manual WB parameter

auto_attr

AWB parameter

alg_type

GW AWB or SpecAWB algorithm. Currently, only HI_ISP_ALG_AWB_GW is supported.

Restrictions

  • When bypass is HI_TRUE, the configuration of other WB parameters does not take effect and the RGB channel gain coefficient is fixed at 0x100.
  • The default value of awb_run_interval is 2, indicating that the AWB works once every two frames. You can reduce the AWB running frequency based on service requirements.