Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 2 of 2) sorted by relevance

/rockchip-linux_mpp/mpp/codec/rc/
H A Drc_model_v2.c573 RK_S32 ratio = ((ctx->pre_real_bits - bits_alloc) << 8) / bits_alloc; in calc_next_i_ratio() local
575 ratio = mpp_clip(ratio, -256, 256); in calc_next_i_ratio()
576 ratio = ctx->next_i_ratio + ratio; in calc_next_i_ratio()
577 if (ratio >= 0) { in calc_next_i_ratio()
578 if (ratio > max_i_delta_qp[pre_qp]) in calc_next_i_ratio()
579 ratio = max_i_delta_qp[pre_qp]; in calc_next_i_ratio()
581 ratio = 0; in calc_next_i_ratio()
583 ctx->next_i_ratio = ratio; in calc_next_i_ratio()
H A Drc_model_v2_smt.c957 RK_S32 ratio = mpp_clip(fps_out / 10 + 1, 1, 3); in rc_model_v2_smt_start() local
960 qp_out_f0 = cal_smt_first_i_start_qp(p->bits_tgt_upper * ratio, mb_w * mb_h); in rc_model_v2_smt_start()
973 mb_w, mb_h, ratio, p->qp_out); in rc_model_v2_smt_start()