DestroyVideoDecoder
Function Usage
Destroys a decoder instance.
Restrictions
N/A
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.
Parent topic: Decoding APIs (C and C++)