hi_mpi_venc_release_stream

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Releases the stream buffer.

Restrictions

  • Ensure that a channel has been created. Otherwise, the error code HI_ERR_VENC_UNEXIST is returned.
  • Use this API in pair with hi_mpi_venc_get_stream. Release the stream buffer in a timely manner to avoid encoding suspension due to stream buffer insufficiency.
  • When an encoding channel is reset, the stream buffer becomes invalid, even if the packets are not released.
  • An attempt to release the buffer of an invalid stream returns the HI_ERR_VENC_ILLEGAL_PARAM error.

Prototype

hi_s32 hi_mpi_venc_release_stream(hi_venc_chn chn, hi_venc_stream *stream)

Parameters

Parameter

Input/Output

Description

chn

Input

Encoding channel ID.

stream

Input

Pointer to the encoded output stream.

If stream is left empty, the error code HI_ERR_VENC_NULL_PTR is returned.

Returns