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

# acl.himpi.venc_close_fd

| c函数原型 | hi\_s32 hi\_mpi\_venc\_close\_fd(hi\_venc\_chn chn); |
| --- | --- |
| Python函数 | ret = acl.himpi.venc\_close\_fd(chn) |
| 函数功能 | 关闭编码通道对应的设备文件句柄。 当前版本不支持该接口。 |
| 输入说明 | chn：编码通道号。 Atlas 200/500 A2推理产品，编码通道号的取值范围：[0, 128)，JPEGE功能和VENC功能共用通道，且通道总数最多128。 |
| 返回值说明 | ret：int，错误码。 0：关闭成功。 \-1：关闭失败。 |
| 约束说明 | 用户可以不调用本接口，在应用程序执行完成，对应的进程退出后，系统会自动清理句柄；如果用户主动调用本接口，必须确保在调用acl.himpi.venc\_destroy\_chn接口之后再调用。此接口不能与其它 MPI 接口同时调用，用户必须保证此接口与其它接口在时间上是串行调用的。 |
| 参考资源 | 无 |
