Rate This Document
Findability
Accuracy
Completeness
Readability

Parameter Obtaining

The VO module provides the feature of obtaining parameters through the GetParam API.

VIDEO_GET_ENCODER_PARAM

Set module to DATA_VIDEO and cmd to VIDEO_GET_ENCODER_PARAM, and input data of the EncodeParams type to obtain encoding parameters. The following is an example:

1
2
3
4
5
VmiDataType module = DATA_VIDEO;
VmiCmd cmd = VIDEO_GET_ENCODER_PARAM;
EncodeParams encodeParams;
uint8_t* param = &encodeParams;
GetParam(module, cmd, param, sizeof(EncodeParams));