---
title: hi_mpi_vpc_set_chn_opt_attr
description: "| 产品 | 是否支持 |"
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/dvpp/aclcppdevg_03_0682.html"
---

# hi_mpi_vpc_set_chn_opt_attr

#### 产品支持情况

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


#### 功能说明

设置通道可选属性。


#### 函数原型

```
hi_s32
hi_mpi_vpc_set_chn_opt_attr(
hi_vpc_chn
chn, const
hi_opt_attr
* opt_attr)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| chn | 输入 | 图片处理通道号。 Atlas 200I/500 A2 推理产品 ，该参数的取值范围：[0, 128)，通道总数最多128。 |
| opt\_attr | 输入 | 通道可选属性信息。 |


#### 返回值说明

- 0：成功
- 非0：失败，  VPC图像处理返回码
