mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 03:20:38 +01:00
[jpege]: set default rc_mode to fix_qp.
Change-Id: Icd0e0148865b96ddb78657296479a965eed5de9b Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
This commit is contained in:
parent
e025b079a2
commit
fbe861d86b
1 changed files with 6 additions and 0 deletions
|
|
@ -562,6 +562,8 @@ MPP_RET mpi_enc_test_cmd_update_by_args(MpiEncTestArgs* cmd, int argc, char **ar
|
|||
if ((argc < 2) || NULL == cmd || NULL == argv)
|
||||
goto done;
|
||||
|
||||
cmd->rc_mode = MPP_ENC_RC_MODE_BUTT;
|
||||
|
||||
mpp_opt_init(&opts);
|
||||
/* should change node count when option increases */
|
||||
mpp_opt_setup(opts, cmd, 67, enc_opt_cnt);
|
||||
|
|
@ -580,6 +582,10 @@ MPP_RET mpi_enc_test_cmd_update_by_args(MpiEncTestArgs* cmd, int argc, char **ar
|
|||
ret = MPP_NOK;
|
||||
}
|
||||
|
||||
if (cmd->rc_mode == MPP_ENC_RC_MODE_BUTT)
|
||||
cmd->rc_mode = (cmd->type == MPP_VIDEO_CodingMJPEG) ?
|
||||
MPP_ENC_RC_MODE_FIXQP : MPP_ENC_RC_MODE_VBR;
|
||||
|
||||
if (!cmd->hor_stride)
|
||||
cmd->hor_stride = mpi_enc_width_default_stride(cmd->width, cmd->format);
|
||||
if (!cmd->ver_stride)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue