---
title: hi_mpi_isp_set_stats_cfg
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0455.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0455.html
indexId: 0c5d2601f63ce6e8304de5ce76c8042f46b0d9402a3bd7dab5eac399fca1af0b65
---
# hi_mpi_isp_set_stats_cfg

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | ☓ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | ☓ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | ☓ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | ☓ |
| Atlas 训练系列产品 | ☓ |


#### 功能说明

设置ISP 3A统计信息配置。


#### 函数原型

```
hi_s32
hi_mpi_isp_set_stats_cfg(
hi_vi_pipe
vi_pipe, const
hi_isp_stats_cfg
*stat_cfg)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| vi\_pipe | 输入 | VI PIPE号。 取值范围：[0, 12)。 |
| stat\_cfg | 输入 | ISP统计信息配置。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  ISP返回码
。


#### 约束说明

- 用户可以关闭不需要的统计信息，以提高系统性能。
- 该接口必须在调用  hi_mpi_isp_init
接口之后才能调用。
- 如果要变更ae统计算法配置，图像宽度不能小于256，图像高度不能小于120。
