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

# acl.himpi.vdec_get_fd

| c函数原型 | hi\_s32 hi\_mpi\_vdec\_get\_fd(hi\_vdec\_chn chn); |
| --- | --- |
| Python函数 | ret = acl.himpi.vdec\_get\_fd(chn) |
| 函数功能 | 获取视频解码通道的设备文件句柄。 |
| 输入说明 | chn：解码通道号。 Atlas 200/500 A2推理产品，该参数的取值范围：[0, 128)，JPEGD功能和VDEC功能共用通道，且通道总数最多128。 |
| 返回值说明 | ret：int，错误码。 0或正数值：有效返回值。 非正数值：无效返回值。 |
| 约束说明 | 在进程退出时会自动关闭文件句柄，回收资源。 |
| 参考资源 | 无 |
