Rate This Document
Findability
Accuracy
Completeness
Readability

DestroyVideoEncoder

Function Usage

Destroys an encoder instance.

Prototype

EncoderRetCode DestroyVideoEncoder(int32_t fd)

Parameter Description

Parameter

Input/Output

Type

Description

fd

Input

int32_t

Encoder descriptor.

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: Failed to destroy the encoder instance.

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.