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

CreateVideoEncoder

Function Usage

Creates an encoder instance.

Prototype

EncoderRetCode CreateVideoEncoder(int32_t* fd, EncoderFormat encoderFormat)

Parameter Description

Parameter

Input/Output

Type

Description

fd

Input

int32_t*

Encoder descriptor.

encoderFormat

Input

EncoderFormat 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.