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

CreateVideoEncoder

Function Usage

Creates an encoder instance.

Restrictions

N/A

Prototype

EncoderRetCode CreateVideoEncoder(VideoEncoder** encoder, EncoderFormat encoderFormat)

Parameter Description

Parameter

Input/Output

Type

Description

encoder

Output

VideoEncoder interface class

Pointer to the encoder instance. It is used to store the encoder instance created in the API.

encodeFomat

Input

EncodeFormat enumeration

Type of the encoder to be created.

Return Value Description

Data type: EncoderRetCode

The value can be any of the following:

  • VIDEO_ENCODER_SUCCESS: The encoder instance is successfully created.
  • VIDEO_ENCODER_CREATE_FAIL: Failed to create an encoder instance.