To minimize CPU usage, the application layer should invoke MPI only when necessary. Avoid redundant MPI calls by caching retrieved information locally.
For instance, information retrieved from MPI_ENC_getVencAttr can be stored in a local variable and reused when needed.
MPI_ENC_getVencAttr should only be reinvoked to obtain updated information upon notification that the encoder configuration has changed.