Lines Matching refs:i_scale

250         ctx->i_scale = ctx->usr_cfg.init_ip_ratio;  in bits_frm_init()
255 p_bit = ctx->gop_total_bits * 16 / (ctx->i_scale + ctx->p_scale * (gop_len - 1)); in bits_frm_init()
258 mpp_data_reset_v2(ctx->i_bit, p_bit * ctx->i_scale / 16); in bits_frm_init()
259 ctx->i_sumbits = 2 * p_bit * ctx->i_scale / 16; in bits_frm_init()
261 ctx->i_refresh_scale = ctx->i_scale / usr_cfg->refresh_len + ctx->p_scale; in bits_frm_init()
271 ctx->i_scale = 320; in bits_frm_init()
278 …p_bit = ctx->gop_total_bits * 16 / (ctx->i_scale + ctx->vi_scale * vi_num + ctx->p_scale * (gop_le… in bits_frm_init()
282 mpp_data_reset_v2(ctx->i_bit, p_bit * ctx->i_scale / 16); in bits_frm_init()
283 ctx->i_sumbits = 2 * p_bit * ctx->i_scale / 16; in bits_frm_init()
350 ctx->i_scale = 80 * ctx->i_sumbits / (2 * ctx->p_sumbits); in bits_model_preset()
352 ctx->i_sumbits, ctx->p_sumbits, ctx->i_scale); in bits_model_preset()
411 ctx->i_scale = 80 * ctx->i_sumbits / (2 * ctx->p_sumbits); in bits_model_update()
413 ctx->i_sumbits, ctx->p_sumbits, ctx->i_scale); in bits_model_update()
453 RK_S32 i_scale = ctx->i_scale; in bits_model_alloc() local
459 ctx->i_scale = 80 * ctx->i_sumbits / (2 * ctx->p_sumbits); in bits_model_alloc()
460 i_scale = ctx->i_scale; in bits_model_alloc()
464 cfg->frame_type, max_i_prop, i_scale, total_bits); in bits_model_alloc()
477 i_scale = mpp_clip(i_scale, 16, 16000); in bits_model_alloc()
478 total_bits = total_bits * i_scale; in bits_model_alloc()
484 i_scale = mpp_clip(i_scale, 16, max_i_prop); in bits_model_alloc()
488 i_scale = mpp_clip(i_scale, 16, max_i_prop); in bits_model_alloc()
495 alloc_bits = total_bits / (i_scale + 16 * (gop_len - vi_num) + vi_num * vi_scale); in bits_model_alloc()
500 total_bits, i_scale, gop_len, vi_num, vi_scale); in bits_model_alloc()
507 i_scale = mpp_clip(i_scale, 16, 16000); in bits_model_alloc()
508 total_bits = total_bits * i_scale; in bits_model_alloc()
515 i_scale = mpp_clip(i_scale, 16, max_i_prop); in bits_model_alloc()
519 i_scale = mpp_clip(i_scale, 16, max_i_prop); in bits_model_alloc()
528 alloc_bits = total_bits / (i_scale + 16 * (gop_len - 1)); in bits_model_alloc()
534 alloc_bits = total_bits / i_scale; in bits_model_alloc()
537 rc_dbg_rc("i_scale %d, total_bits %lld", i_scale, total_bits); in bits_model_alloc()
872 if (p->i_scale > 640) { in calc_vbr_ratio()