hi_isp_awb_lum_histgram_attr

Description

Defines the parameters of the luminance histogram statistics for WB.

Definition

typedef struct {     
    hi_bool enable;        
    hi_op_mode op_type;   
    hi_u8 hist_thresh[HI_ISP_AWB_LUM_HIST_NUM];
    hi_u16 hist_wt[HI_ISP_AWB_LUM_HIST_NUM];
} hi_isp_awb_lum_histgram_attr;

Members

Member

Description

enable

Whether the luminance affects the block weight.

The options are as follows:

  • HI_FALSE: disabled
  • HI_TRUE: enabled

op_type

In automatic mode, the AWB algorithm implements luminance histogram statistics on block statistical results and automatically allocates the luminance weight. In manual mode, you need to configure the threshold and weight of the luminance histogram.

The options are as follows:

  • HI_ISP_OP_TYPE_AUTO: automatic mode
  • HI_ISP_OP_TYPE_MANUAL: manual mode

hist_thresh[HI_ISP_AWB_LUM_HIST_NUM]

Configured threshold of the luminance histogram, valid only in manual mode.

Value range: [0x0, 0xFF]

#define HI_ISP_AWB_LUM_HIST_NUM    6

hist_wt[HI_ISP_AWB_LUM_HIST_NUM]

Configured weight of the luminance histogram, valid in both automatic and manual modes (8-bit decimal precision).

Value range: [0x0, 0xFFFF]

#define HI_ISP_AWB_LUM_HIST_NUM    6

Restrictions

  • hist_thresh[0] is fixed at 0, and hist_thresh[5] is fixed at 0xFF. The value of hist_thresh must be monotonically increasing.
  • hist_wt is used to set the weight of hist_thresh. You can set a high priority to the bright region or the dark region by configuring hist_wt.