---
title: hi_isp_antiflicker
description: "定义抗闪属性。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0192.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0192.html
indexId: f9b33855953512a541d33fb96225d051a2e8700026770ba61ce89dc5e15d82d765
---
# hi_isp_antiflicker

#### 说明

定义抗闪属性。


#### 定义

```
typedef struct {
hi_bool
enable;
hi_u8
frequency;
hi_isp_antiflicker_mode
mode;
} hi_isp_antiflicker;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| enable | enable为HI\_TRUE时使能图像抗闪，为HI\_FALSE时不使能图像抗闪。 |
| frequency | 抗闪频率值。 取值范围：[0x0, 0xFF]，默认值为 0x0。 |
| mode | 抗闪模式，普通抗闪或自动抗闪。 |


#### 注意事项

抗闪开启后曝光时间会受到最大/最小曝光时间的限制，若最小抗闪时间大于最大曝光时间，那么开启抗闪后曝光时间将被限制为最大曝光时间。开启抗闪时，AE Route中各节点的Again、DGain、ISPDGain参数至少有一个需小于对应参数范围的上限，避免特定场景下无法进行补偿导致图像闪烁。
