DestroyVideoEncoder
Function Usage
Destroys an encoder instance.
Restrictions
N/A
Prototype
EncoderRetCode DestroyVideoEncoder(VideoEncoder* encoder)
Parameters
Parameter |
Input/Output |
Class |
Description |
|---|---|---|---|
encoder |
Input |
VideoEncoder interface class |
Pointer to the encoder instance. |
Returns
Data type: EncoderRetCode
The value can be:
- VIDEO_ENCODER_SUCCESS: The encoder instance is successfully destroyed.
- VIDEO_ENCODER_DESTROY_FAIL: The encoder instance fails to be destroyed.
Involved Functions of the VideoEncoder Interface Class
For more involved functions of the VideoEncoder interface class, see InitEncoder, StartEncoder, EncodeOneFrame, StopEncoder, DestroyEncoder, and ResetEncoder.