---
title: hi_isp_dp_dynamic_auto_attr
description: "定义动态坏点校正的自动属性。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0380.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0380.html
indexId: 89e173852fdbac19948450484a6e72630faac34960e0efa89e3381de900bab5e65
---
# hi_isp_dp_dynamic_auto_attr

#### 说明

定义动态坏点校正的自动属性。


#### 定义

```
typedef struct {
hi_u16
strength[HI_ISP_AUTO_ISO_NUM];
hi_u16
blend_ratio[HI_ISP_AUTO_ISO_NUM];
} hi_isp_dp_dynamic_auto_attr;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| strength[HI\_ISP\_AUTO\_ISO\_NUM] | 自动模式下的DPC的处理强度，该数组的16个值分别对应sensor在不同增益下的DPC的处理强度值，一般情况下，增益越大，配置的DPC处理强度值越大，对应关系如表1所示。若连续两档的处理强度不相等，则通过线性插值的方法确定两档中间某个增益值对应的处理强度。 取值范围：[0, 0xFF]。 \#define HI\_ISP\_AUTO\_ISO\_NUM 16 |
| blend\_ratio[HI\_ISP\_AUTO\_ISO\_NUM] | 自动模式下的融合比率。其值越大，图像越偏绿。若连续两档的融合比率不相等，则通过线性插值的方法确定两档中间的某个增益值对应的融合比率。 取值范围：[0,0x80]。 |


**表1 strength[16]在不同增益情况下对应的设置值**

| strength | a\_gain\*d\_gain\*isp\_d\_gain(times) |
| --- | --- |
| strength[0] | 100 |
| strength[1] | 200 |
| strength[2] | 400 |
| strength[3] | 800 |
| strength[4] | 1600 |
| strength[5] | 3200 |
| strength[6] | 6400 |
| strength[7] | 12800 |
| strength[8] | 25600 |
| strength[9] | 51200 |
| strength[10] | 102400 |
| strength[11] | 204800 |
| strength[12] | 409600 |
| strength[13] | 819200 |
| strength[14] | 1638400 |
| strength[15] | 3276800 |


#### 注意事项

- 该结构体中的默认值均在sensor_cmos_ex.h中，如果用户需要修改默认值，请修改相应参数。如果用户需要对接新的sensor，请参考已经提供的其它sensor的默认值。
- 在WDR模式与线性模式之下，a_gain*d_gain*isp_d_gain没有差异。
