---
title: hi_mpi_rgn_get_display_attr
description: "获取区域的通道显示属性。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_0878.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_0878.html
indexId: c7e48828c7454644eda039280b75ff16132f8115632ce87a08c857f50044de4c105
---
# hi_mpi_rgn_get_display_attr

#### 函数功能

获取区域的通道显示属性。


#### 约束说明

区域必须已创建。


#### 函数原型

hi_s32 hi_mpi_rgn_get_display_attr(hi_rgn_handle handle, const hi_mpp_chn *chn, hi_rgn_chn_attr *chn_attr)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| handle | 输入 | 区域句柄号。 取值范围：[0, 1024)。 |
| chn | 输入 | 通道结构体指针，不能为空。 该参数的详细配置请参见表2 region支持的模块信息。 |
| chn\_attr | 输出 | 区域通道显示属性指针，不能为空。 |


#### 返回值说明

- 0：获取数据成功
- 非0：失败，参见  19.18.5-区域管理返回码


#### 参考资源

接口调用流程，参见视频解码、处理和显示功能（NVR场景）。
