acl.himpi.venc_stop_chn

C Prototype

hi_s32 hi_mpi_venc_stop_chn(hi_venc_chn chn);

Python Function

ret = acl.himpi.venc_stop_chn(chn)

Function Usage

Makes an encoding channel stop receiving source images.

The Atlas 200/300/500 Inference Product does not support this API in the current version.

The Atlas Training Series Product does not support this API in the current version.

Input Description

chn: int, encoding channel ID.

Return Value

ret: int, error code.

Restrictions

  • Ensure that a channel has been created. Otherwise, a failure is returned.
  • Repeated calls to this API return successful responses.
  • Prior to any attempt to destroy or reset an encoding channel, stop the channel from receiving new images by using this API.
  • After you call this interface, the encoding channel stops receiving original data, and the stream buffer is not cleared.