[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:
Yandong Lin
2021-01-29 14:16:07 +08:00
committed by Herman Chen
parent 1b822d1fdd
commit 4cb7a32226

View File

@@ -76,14 +76,21 @@ static MPP_RET jpege_init_v2(void *ctx, EncImplCfg *cfg)
mpp_assert(cfg->coding = MPP_VIDEO_CodingMJPEG); mpp_assert(cfg->coding = MPP_VIDEO_CodingMJPEG);
cfg->task_count = 1; cfg->task_count = 1;
/* init default fps config */ {
MppEncRcCfg *rc = &p->cfg->rc; /* init default rc config */
rc->fps_in_flex = 0; MppEncRcCfg *rc = &p->cfg->rc;
rc->fps_in_num = 30; MppEncJpegCfg *jpeg_cfg = &p->cfg->codec.jpeg;
rc->fps_in_denorm = 1;
rc->fps_out_flex = 0; rc->fps_in_flex = 0;
rc->fps_out_num = 30; rc->fps_in_num = 30;
rc->fps_out_denorm = 1; 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); jpege_dbg_func("leave ctx %p\n", ctx);
return MPP_OK; return MPP_OK;