mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
fix[mpi_enc_test]: Remove redundant code about smart encoding
Change-Id: I3a0876bd9476590b0e25d1c18f76a793fd4c86ab Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
This commit is contained in:

committed by
Herman Chen

parent
8f1b70dd79
commit
2988a0c499
@@ -573,26 +573,6 @@ MPP_RET test_mpp_enc_cfg_setup(MpiEncMultiCtxInfo *info)
|
|||||||
if (ref)
|
if (ref)
|
||||||
mpp_enc_ref_cfg_deinit(&ref);
|
mpp_enc_ref_cfg_deinit(&ref);
|
||||||
|
|
||||||
{
|
|
||||||
RcApiBrief rcApiBrief;
|
|
||||||
ret = mpi->control(ctx, MPP_ENC_GET_RC_API_CURRENT, &rcApiBrief);
|
|
||||||
if (ret) {
|
|
||||||
mpp_err("mpi control enc get rc api failed ret %d\n", ret);
|
|
||||||
goto RET;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (MPP_ENC_RC_MODE_SMTRC == info->cmd->rc_mode)
|
|
||||||
rcApiBrief.name = "smart";
|
|
||||||
else
|
|
||||||
rcApiBrief.name = "default";
|
|
||||||
|
|
||||||
ret = mpi->control(ctx, MPP_ENC_SET_RC_API_CURRENT, &rcApiBrief);
|
|
||||||
if (ret) {
|
|
||||||
mpp_err("mpi control enc set rc api failed ret %d\n", ret);
|
|
||||||
goto RET;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* optional */
|
/* optional */
|
||||||
{
|
{
|
||||||
RK_U32 sei_mode;
|
RK_U32 sei_mode;
|
||||||
|
Reference in New Issue
Block a user