---
title: hi_mpi_vpss_get_chn_attr
description: 获取VPSS物理通道属性。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgc/aclcppdevg_03_0895.html"
---

# hi_mpi_vpss_get_chn_attr

#### 函数功能

获取VPSS物理通道属性。


#### 约束说明

VPSS组必须已创建，请参见hi_mpi_vpss_create_grp接口。


#### 函数原型

hi_s32 hi_mpi_vpss_get_chn_attr(hi_vpss_grp grp, hi_vpss_chn chn, hi_vpss_chn_attr *chn_attr);


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| grp | 输入 | VPSS组ID。 取值范围：[0, 264)。如果通过hi\_mpi\_vpss\_create\_grp接口的hi\_vpss\_grp\_attr.nr\_en参数开启3DNR功能，则VPSS组ID的取值范围为：[256, 264)。 |
| chn | 输入 | VPSS 通道号。 取值范围：[0, 2) |
| chn\_attr | 输出 | VPSS通道属性。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  6.10.7-VPSS视频处理子系统返回码
