---
title: acl.himpi.vdec_get_chn_param
description: "| c函数原型 | hi\\_s32 hi\\_mpi\\_vdec\\_get\\_chn\\_param(hi\\_vdec\\_chn chn, hi\\_vdec\\_chn\\_param \\*chn\\_param); |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0477.html"
---

# acl.himpi.vdec_get_chn_param

| c函数原型 | hi\_s32 hi\_mpi\_vdec\_get\_chn\_param(hi\_vdec\_chn chn, hi\_vdec\_chn\_param \*chn\_param); |
| --- | --- |
| Python函数 | chn\_param, ret = acl.himpi.vdec\_get\_chn\_param(chn) |
| 函数功能 | 修改通道参数前可先调用此接口获取通道参数。 |
| 输入说明 | chn：解码通道号。 Atlas 200/500 A2推理产品，该参数的取值范围：[0, 128)，JPEGD功能和VDEC功能共用通道，且通道总数最多128。 |
| 返回值说明 | chn\_param：解码通道参数字典，具体请参见hi\_vdec\_chn\_param。 ret：int，错误码。 返回0表示成功。 返回非0表示失败，参见VDEC视频/JPEGD图像解码返回码。 |
| 约束说明 | 必须保证通道已创建，否则会返回错误码“HI\_ERR\_VDEC\_UNEXIST”。 |
| 参考资源 | 接口调用流程，参见JPEGD图片解码、VDEC视频解码。 |
