hi_isp_wb_stats_cfg
Description
Defines the AWB statistics configuration.
Definition
typedef struct {
hi_isp_awb_switch awb_switch;
hi_u16 zone_row;
hi_u16 zone_col;
hi_u16 zone_bin;
hi_u16 hist_bin_thresh[HI_ISP_AWB_ZONE_BIN_MAX];
hi_u16 white_level;
hi_u16 black_level;
hi_u16 cb_max;
hi_u16 cb_min;
hi_u16 cr_max;
hi_u16 cr_min;
hi_isp_awb_crop crop;
} hi_isp_wb_stats_cfg;
Members
Member |
Description |
|---|---|
awb_switch |
Position of the WB statistical module. The default value is 0, indicating that the module is located after the digital gain module. |
zone_row |
Number of WB statistical blocks in vertical direction. Value range: [0x1, min(0x20, ImageHeight/14)]. The default value is related to the image height (ensure that the height of each block is greater than or equal to 14). If the image height is greater than or equal to 448, the default value is 0x20. If the image height is less than 448, the default value is ImageHeight/14. |
zone_col |
Number of WB statistical blocks in horizontal direction. Value range: [BlkNum, min(0x20, ImageWidth/60)]. BlkNum indicates the number of ISP BE blocks. The default value is related to the image width (ensure that the width of each block is greater than or equal to 60). If the image width is greater than 1920, the default value is 0x20. If the image width is less than 1920, the default value is ImageWidth/60. |
zone_bin |
Luminance region. Value range: [1, 1]. |
hist_bin_thresh[HI_ISP_AWB_ZONE_BIN_MAX] |
Threshold of the number of the R, Gr, Gb, and B components in each block during white point statistics. Value range: [0x0, 0xFFFF] #define HI_ISP_AWB_ZONE_BIN_MAX 4 |
white_level |
Upper luminance limit for searching for white points during white point statistics. The value range is [0x0, 0xFFFF] and the default value is 0xFFFF. |
black_level |
Lower luminance limit for searching for white points during white point statistics. The value range is [0x0, white_level] and the default value is 0x0. |
cb_max |
Maximum B/G color difference during white point statistics (8-bit precision). The default value is 512. Value range: [0x0, 0xFFF]. |
cb_min |
Minimum B/G color difference during white point statistics (8-bit precision). The default value is 128. Value range: [0x0, 0xFFF]. |
cr_max |
Maximum R/G color difference during white point statistics (8-bit precision). The default value is 512. Value range: [0x0, 0xFFF]. |
cr_min |
Minimum R/G color difference during white point statistics (8-bit precision). The default value is 128. Value range: [0x0, 0xFFF]. |
crop |
Cropping configuration of the AWB input image. |
Restrictions
In stitching mode, the parameters of each channel are configured independently. The number of blocks in each channel must be the same. That is, the values of awb_switch, zone_row, and zone_col of each channel must be the same.