Lines Matching refs:total_bits
448 MPP_RET bits_model_alloc(RcModelV2Ctx *ctx, EncRcTaskInfo *cfg, RK_S64 total_bits) in bits_model_alloc() argument
457 RK_S64 total_bits_fix = total_bits; in bits_model_alloc()
464 cfg->frame_type, max_i_prop, i_scale, total_bits); in bits_model_alloc()
478 total_bits = total_bits * i_scale; in bits_model_alloc()
485 total_bits = total_bits * 16; in bits_model_alloc()
489 total_bits = total_bits * vi_scale; 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()
508 total_bits = total_bits * i_scale; in bits_model_alloc()
516 total_bits = total_bits * 16; in bits_model_alloc()
520 total_bits = total_bits * ctx->i_refresh_scale; in bits_model_alloc()
528 alloc_bits = total_bits / (i_scale + 16 * (gop_len - 1)); in bits_model_alloc()
530 alloc_bits = total_bits / 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()