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

# acl.himpi.vdec_query_status

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