hi_isp_awb_result
Description
Defines the results returned by the AWB algorithm library to the ISP for configuring registers.
Definition
typedef struct {
hi_u32 white_balance_gain[HI_ISP_BAYER_CHN_NUM];
hi_u16 color_matrix[HI_ISP_CCM_MATRIX_SIZE];
hi_u32 color_temp;
hi_u8 saturation;
hi_isp_awb_raw_stat_attr raw_stat_attr;
} hi_isp_awb_result;
Members
Member |
Description |
|---|---|
white_balance_gain |
Gains of the R, Gr, Gb, and B color channels obtained by using the white balance algorithm (16-bit precision) #define HI_ISP_BAYER_CHN_NUM 4 |
color_matrix |
CCM (8-bit precision) #define HI_ISP_CCM_MATRIX_NUM 7 |
color_temp |
Current color temperature of the AWB |
saturation |
Current saturation |
raw_stat_attr |
Results returned by the AWB algorithm library to the ISP for configuring registers |
Restrictions
- The AWB algorithm calculates the gains of the R, Gr, Gb, and B color channels to correct the white color.
- The 16-bit precision indicates that the last 16 bits are decimals.
- Special processing is not required for the AWB statistics and gains in WDR mode and linear mode.
- The AWB algorithm also calculates a 3 x 3 CCM to reproduce actual colors. The 8-bit precision indicates that the last eight bits are decimals.
Parent topic: Data Types