[misc]: Change internal API interface

1. Change internal api RK_S32 cmd to MpiCmd.
2. Remove external MppEncCfgSet in MPI and move it internal data.

Change-Id: I0b93429f3b9f92712a57d0df54a1c76b3e08bf9d
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2019-10-14 19:45:46 +08:00
parent 585b187b18
commit ea476ad4d1
103 changed files with 249 additions and 303 deletions

View File

@@ -456,10 +456,12 @@ static MPP_RET mpi_rc_codec(MpiRcTestCtx *ctx)
RK_U64 stream_size_1s = 0;
// runtime config
MppEncCfgSet cfg;
MppEncRcCfg *rc_cfg = &cfg.rc;
MppEncPrepCfg *prep_cfg = &cfg.prep;
MppEncCodecCfg *codec_cfg = &cfg.codec;
MppEncRcCfg rc;
MppEncPrepCfg prep;
MppEncCodecCfg codec;
MppEncRcCfg *rc_cfg = &rc;
MppEncPrepCfg *prep_cfg = &prep;
MppEncCodecCfg *codec_cfg = &codec;
RK_S32 fps = 20;
mpp_log_f("test start width %d height %d codingtype %d\n", width, height, type);