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.
Parent topic: Encoding APIs (C and C++)