mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-09 19:10:15 +08:00
[jpege_api_v2]: Init fixqp as default rc mode for jpege
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com> Change-Id: I5d16f3225133386360f83f0853e1e13e4569ebd0
This commit is contained in:
@@ -76,14 +76,21 @@ static MPP_RET jpege_init_v2(void *ctx, EncImplCfg *cfg)
|
||||
mpp_assert(cfg->coding = MPP_VIDEO_CodingMJPEG);
|
||||
cfg->task_count = 1;
|
||||
|
||||
/* init default fps config */
|
||||
{
|
||||
/* init default rc config */
|
||||
MppEncRcCfg *rc = &p->cfg->rc;
|
||||
MppEncJpegCfg *jpeg_cfg = &p->cfg->codec.jpeg;
|
||||
|
||||
rc->fps_in_flex = 0;
|
||||
rc->fps_in_num = 30;
|
||||
rc->fps_in_denorm = 1;
|
||||
rc->fps_out_flex = 0;
|
||||
rc->fps_out_num = 30;
|
||||
rc->fps_out_denorm = 1;
|
||||
rc->rc_mode = MPP_ENC_RC_MODE_FIXQP;
|
||||
/* init default quant */
|
||||
jpeg_cfg->quant = 10;
|
||||
}
|
||||
|
||||
jpege_dbg_func("leave ctx %p\n", ctx);
|
||||
return MPP_OK;
|
||||
|
Reference in New Issue
Block a user