hi_isp_awb_raw_stat_attr
Description
Defines the results returned by the AWB algorithm library to the ISP for configuring registers.
Definition
typedef struct {
hi_bool stat_cfg_update;
hi_u16 metering_white_level_awb;
hi_u16 metering_black_level_awb;
hi_u16 metering_cr_ref_max_awb;
hi_u16 metering_cb_ref_max_awb;
hi_u16 metering_cr_ref_min_awb;
hi_u16 metering_cb_ref_min_awb;
} hi_isp_awb_raw_stat_attr;
Members
|
Member |
Description |
|---|---|
|
stat_cfg_update |
Whether a register needs to be configured in the structure |
|
metering_white_level_awb |
Upper limit of the luminance for searching for white points during white point statistics collection for the Bayer domain. The value range is [0x0, 0xFFFF] and the default value is 0xFFF. |
|
metering_black_level_awb |
Lower limit of the luminance for searching for white points during white point statistics for the Bayer domain. The value range is [0x0, 0xFFFF] and the default value is 0x0. |
|
metering_cr_ref_max_awb |
Maximum R/G color difference during white point statistics for the Bayer domain (8-bit precision). The default value is 512. |
|
metering_cb_ref_max_awb |
Maximum B/G color difference during white point statistics for the Bayer domain (8-bit precision). The default value is 512. |
|
metering_cr_ref_min_awb |
Minimum R/G color difference during white point statistics for the Bayer domain (8-bit precision). The default value is 128. |
|
metering_cb_ref_min_awb |
Minimum B/G color difference during white point statistics for the Bayer domain (8-bit precision). The default value is 128. |
Restrictions
- The information in hi_isp_awb_raw_stat_attr determines what pixels can be considered as white points for statistics. You can use the default or customized values when you develop a new AWB algorithm. stat_cfg_update indicates that whether the values of stat_attr need to be configured to registers in the current frame.
- The position of the AWB statistical module is configurable in the ISP pipeline and can be set after the Digital Gain, Expander or DRC module. However, the AWB statistical module is set after the Digital Gain module by default.
- Only the Bayer domain statistics are supported.