acl.himpi.venc_destroy_chn

C Prototype

hi_s32 hi_mpi_venc_destroy_chn(hi_venc_chn chn);

Python Function

ret = acl.himpi.venc_destroy_chn(chn)

Function Usage

Destroys a created encoding channel to release related resources when the user exits the encoding process.

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

  • Destroying a non-existing channel returns a failure.
  • Before this API call, ensure that the channel has stopped receiving images. Otherwise, a failure is returned.