---
title: hi_isp_calc_flicker_input
description: "定义计算工频闪输入参数。"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/others/ispdevug/ispdevapi_0435.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/others/ispdevug/ispdevapi_0435.html
indexId: f441ba8eae0470b799478bfbed9ad419d0fe54ea0d99f7b9531a8d142cfccfb876
---
# hi_isp_calc_flicker_input

#### 说明

定义计算工频闪输入参数。


#### 定义

```
typedef struct {
hi_u32
lines_per_second;
} hi_isp_calc_flicker_input;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| lines\_per\_second | 当前序列1秒的最大曝光总行数。 取值范围：[0x1F4,0xFFFFFFFF]。默认值0 |


#### 注意事项

- lines_per_second等于1秒的最大总曝光行数，比如一帧的最大曝光时间为1125行，帧率为30fps，那么lines_per_second = 1125*30。通常，可以使用hi_isp_exp_info这个结构体成员变量lines_per500ms乘以 2。
- 需要注意这里的1行时间需要和1行数据的Readout Timing的时间相等，一般sensor的曝光行数单位时间和Readout 1行的时间相同，需要注意少部分sensor的Readout 1行时间等于2行，那么计算lines_per_second时需要除以2。其他等效倍率则除以相应的倍率。
