---
title: hi_isp_af_level_depend
description: "AF Level Depend Gain 模块配置。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0492.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0492.html
indexId: d5621c961a38683e876d8600d271978dbfda5368d8b5642ff527d43e8981a34365
---
# hi_isp_af_level_depend

#### 说明

AF Level Depend Gain 模块配置。


#### 定义

```
typedef struct {
hi_bool
en;
hi_u16
threshold_low;
hi_u16
gain_low;
hi_u16
slope_low;
hi_u16
threshold_high;
hi_u16
gain_high;
hi_u16
slope_high;
} hi_isp_af_level_depend;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| en | 使能 Level Depend Gain 模块。 |
| threshold\_low | 设置 Dark Side Threshold，取值范围：[0x0, 0xFF]。 |
| gain\_low | 设置 Dark Side Minimum Gain，取值范围：[0x0, 0xFF]。 |
| slope\_low | 设置 Dark Side Slope，取值范围：[0x0, 0xF]。 |
| threshold\_high | 设置 Bright Side Threshold，取值范围：[0x0, 0xFF]。 |
| gain\_high | 设置 Bright Side Minimum Gain，取值范围：[0x0, 0xFF]。 |
| slope\_high | 设置 Bright Side Slope，取值范围：[0x0, 0xF]。 |
