---
title: hi_isp_awb_result
description: "定义AWB库返回给ISP的配置寄存器结构体。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0154.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0154.html
indexId: a36c87c1efa0d2ca876d56ed8a48c6c27d1901227a60e6922e8f30d8af0d6ef865
---
# hi_isp_awb_result

#### 说明

定义AWB库返回给ISP的配置寄存器结构体。


#### 定义

```
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;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| white\_balance\_gain | 白平衡算法得出的R、Gr、 Gb、B颜色通道的增益，16bit精度表示。 \#define HI\_ISP\_BAYER\_CHN\_NUM 4 |
| color\_matrix | 色彩还原矩阵，8bit精度表示。 \#define HI\_ISP\_CCM\_MATRIX\_NUM 7 |
| color\_temp | AWB当前的色温。 |
| saturation | 当前的饱和度。 |
| raw\_stat\_attr | 定义AWB库返回给ISP的配置寄存器结构体。 |


#### 注意事项

- AWB算法首先将会计算出R、Gr、Gb、B颜色通道的增益，以校正出白色。
- 16bit精度表明最后16位为小数。
- WDR模式，AWB统计结果和增益不需要做特别处理，和Linear模式一致。
- AWB算法其次会计算一个3x3的颜色校正矩阵，以还原出真实的色彩，8bit精度表明最后8位为小数。
