CreateVideoEncoder
Function Usage
Creates an encoder instance.
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. |
encoderFomat |
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++)