---
title: hi_mpi_venc_stop_chn
description: 停止编码通道接收输入图片。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgc/aclcppdevg_03_1045.html"
---

# hi_mpi_venc_stop_chn

#### 函数功能

停止编码通道接收输入图片。


#### 约束说明

- 如果通道未创建，则返回失败。
- 此接口并不判断当前是否停止接收，即允许重复停止接收不返回错误。
- 此接口用于编码通道停止接收图像来编码，在编码通道销毁或复位前必须停止接收图像。
- 调用此接口仅停止接收原始数据编码，码流buffer并不会被清除。


#### 函数原型

hi_s32 hi_mpi_venc_stop_chn(hi_venc_chn chn)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| chn | 输入 | 编码通道号。 Atlas 200/500 A2推理产品，编码通道号的取值范围：[0, 128)，JPEGE功能和VENC功能共用通道，且通道总数最多128。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  VENC视频编码/JPEGE图片编码返回码


#### 参考资源

接口调用流程及示例，参见JPEGE图片编码、VENC视频编码。
