SetParams
Function Usage
Sets the encoding parameters of the encoder.
Restrictions
N/A
Prototype
EncoderRetCode SetParams(const VmiEncoderParams¶ms)
Parameter Description
Parameter |
Input/Output |
Type |
Description |
|---|---|---|---|
config |
Input |
struct VmiEncoderParams |
Encoding parameters to be set. |
The struct declaration of VmiEncoderParams is as follows:
struct VmiEncoderParams {
uint32_t bitRate = 3000000;
uint32_t gopSize = 30;
uint32_t profile = 1;
uint32_t keyFrame = 0;
};
Return Value Description
Data type: EncoderRetCode
The value can be any of the following:
- VIDEO_ENCODER_SUCCESS: The encoder is successfully set.
Parent topic: Encoding APIs (C and C++)