[rk_mpi_cmd]: Add max_reenc_cnt for reencode flow

When max_reenc_cnt is zero the reencode flow is disabled.

Change-Id: Iba600b37bb5ab6e4f720b652d59abfae36f9e52f
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2020-05-14 15:33:46 +08:00
parent 85f9662150
commit 0b4532c6d5
15 changed files with 29 additions and 23 deletions

View File

@@ -594,7 +594,7 @@ static MPP_RET mpi_rc_codec(MpiRcTestCtx *ctx)
rc_cfg->fps_in_flex = 0;
rc_cfg->fps_out_flex = 0;
rc_cfg->gop = fps;
rc_cfg->skip_cnt = 0;
rc_cfg->max_reenc_times = 1;
ret = enc_mpi->control(enc_ctx, MPP_ENC_SET_RC_CFG, rc_cfg);
if (ret) {