我要评分
获取效率
正确性
完整性
易理解

DestroyVideoDecoder

Function Usage

Destroys a decoder instance.

Prototype

DecoderRetCode DestroyVideoDecoder(VideoDecoder *decoder)

Parameter Description

Parameter

Input/Output

Type

Description

decoder

Input

VideoDecoder *

Pointer to the decoder instance to be destroyed.

Return Value Description

Data type: DecoderRetCode

The value can be any of the following:

  • VIDEO_DECODER_SUCCESS: The decoder instance is successfully destroyed.
  • VIDEO_DECODER_DESTROY_FAIL: Failed to destroy the decoder instance.

Involved APIs of the VideoDecoder Class

For details about involved APIs of the VideoDecoder class, see CreateDecoder, InitDecoder, SetDecodeParams, GetDecodeParams, SetCallbacks, SetCopyFrameFunc, SendStreamData, Flush, StartDecoder, StopDecoder, and DestroyDecoder.