Rate This Document
Findability
Accuracy
Completeness
Readability

DestroyVideoEncoder

Function Usage

Destroys an encoder instance.

Restrictions

N/A

Prototype

EncoderRetCode DestroyVideoEncoder(VideoEncoder* encoder)

Parameter Description

Parameter

Input/Output

Type

Description

encoder

Input

VideoEncoder interface class

Pointer to the encoder instance.

Return Value Description

Data type: EncoderRetCode

The value can be any of the following:

  • VIDEO_ENCODER_SUCCESS: The encoder instance is successfully destroyed.
  • VIDEO_ENCODER_DESTROY_FAIL: The encoder instance fails to be destroyed.

Involved APIs of the VideoEncoder Class

For details about involved APIs of the VideoEncoder class, see Config, InitEncoder, StartEncoder, SetParams, EncodeOneFrame, StopEncoder, DestroyEncoder, and ResetEncoder.