---
title: hi_isp_cmos_wdr_switch_attr
description: "定义WDR切换属性。"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/others/ispdevug/ispdevapi_0054.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/others/ispdevug/ispdevapi_0054.html
indexId: 5d4d17e4ff720b34f40c9c0e0d241d5a3c07f7a7a20f5ceb610a17f274e6162276
---
# hi_isp_cmos_wdr_switch_attr

#### 说明

定义WDR切换属性。


#### 定义

```
typedef struct {
hi_u32
exp_ratio[HI_ISP_EXP_RATIO_NUM];
} hi_isp_cmos_wdr_switch_attr;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| exp\_ratio | 曝光比期望值 |


#### 注意事项

在cmos_get_isp_default函数里根据WDR模式给exp_ratio赋默认值，所赋值要与cmos_get_ae_default中AE初始化的曝光比保持一致性：

- 若ae_sns_dft->man_ratio_enable为TRUE，exp_ratio与ae_sns_dft->arr_ratio的值相同；
- 若ae_sns_dft->man_ratio_enable为FALSE，exp_ratio为0x40。
