FrameScaling
Function Usage
Sets the expected encoding width and height.
Restrictions
This parameter passes through the parameters listed in Configuration Parameters to FrameScaling. The restrictions on these parameters are still valid.
Secondary developers can directly call this API to implement YUV frame scaling.
Prototype
EncoderRetCode FrameScaling(uint32_t width, uint32_t height)
Parameter Description
width: expected encoding width. Its value type is uint32_t. This field is described as follows.
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
width |
Input |
uint32_t |
Expected encoding width. |
height: expected encoding height. Its value type is uint32_t. This field is described as follows.
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
height |
Input |
uint32_t |
Expected encoding height. |
Return Value Description
Data type: EncoderRetCode
The value can be any of the following:
- VIDEO_ENCODER_SUCCESS: success
- VIDEO_ENCODER_SET_ENCODE_PARAMS_FAIL: failure