Lines Matching refs:ps_rbip
105 static void init_rbip(rem_bit_in_prd_t *ps_rbip, in init_rbip() argument
115 number_t *pvq_rem_bits_in_period = &ps_rbip->vq_rem_bits_in_period; in init_rbip()
134 ps_rbip->i4_tot_frms_in_gop = i4_tot_frms_in_gop; in init_rbip()
135 ps_rbip->i4_num_intra_frm_interval = i4_num_intra_frm_interval; in init_rbip()
136 ps_rbip->i4_bits_per_frm = i4_bits_per_frm; in init_rbip()
139 static void check_update_rbip(rem_bit_in_prd_t *ps_rbip, in check_update_rbip() argument
149 if(i4_new_tot_frms_in_gop != ps_rbip->i4_tot_frms_in_gop) in check_update_rbip()
152 ps_rbip->i4_num_intra_frm_interval in check_update_rbip()
154 - ps_rbip->i4_tot_frms_in_gop); in check_update_rbip()
159 SET_VAR_Q(s_bits_per_frm, ps_rbip->i4_bits_per_frm, 0); in check_update_rbip()
166 add32_var_q(vq_delta_bits_in_period, ps_rbip->vq_rem_bits_in_period, in check_update_rbip()
167 &ps_rbip->vq_rem_bits_in_period); in check_update_rbip()
170 ps_rbip->i4_tot_frms_in_gop = i4_new_tot_frms_in_gop; in check_update_rbip()
173 static void irc_ba_update_rbip(rem_bit_in_prd_t *ps_rbip, in irc_ba_update_rbip() argument
179 check_update_rbip(ps_rbip, ps_pic_handling); in irc_ba_update_rbip()
183 add32_var_q(vq_num_bits, ps_rbip->vq_rem_bits_in_period, in irc_ba_update_rbip()
184 &ps_rbip->vq_rem_bits_in_period); in irc_ba_update_rbip()
187 static void irc_ba_change_rbip(rem_bit_in_prd_t *ps_rbip, in irc_ba_change_rbip() argument
199 if(i4_new_bits_per_frm != ps_rbip->i4_bits_per_frm) in irc_ba_change_rbip()
201 WORD32 i4_rem_frms_in_period = (ps_rbip->i4_num_intra_frm_interval - 1) in irc_ba_change_rbip()
202 * ps_rbip->i4_tot_frms_in_gop + i4_rem_frms_in_gop; in irc_ba_change_rbip()
209 (i4_new_bits_per_frm - ps_rbip->i4_bits_per_frm), 0); in irc_ba_change_rbip()
218 add32_var_q(vq_delta_bits_in_period, ps_rbip->vq_rem_bits_in_period, in irc_ba_change_rbip()
219 &ps_rbip->vq_rem_bits_in_period); in irc_ba_change_rbip()
222 if(i4_new_num_intra_frm_interval != ps_rbip->i4_num_intra_frm_interval) in irc_ba_change_rbip()
224 WORD32 i4_rem_frms_in_period = ps_rbip->i4_tot_frms_in_gop in irc_ba_change_rbip()
226 - ps_rbip->i4_num_intra_frm_interval); in irc_ba_change_rbip()
241 add32_var_q(vq_delta_bits_in_period, ps_rbip->vq_rem_bits_in_period, in irc_ba_change_rbip()
242 &ps_rbip->vq_rem_bits_in_period); in irc_ba_change_rbip()
245 ps_rbip->i4_num_intra_frm_interval = i4_new_num_intra_frm_interval; in irc_ba_change_rbip()
246 ps_rbip->i4_bits_per_frm = i4_new_bits_per_frm; in irc_ba_change_rbip()
745 rem_bit_in_prd_t *ps_rbip = &ps_bit_allocation->s_rbip; in irc_ba_check_and_update_bit_allocation() local
780 vq_rem_bits_in_period = ps_rbip->vq_rem_bits_in_period; in irc_ba_check_and_update_bit_allocation()
783 VQ_A_GT_VQ_B(ps_rbip->vq_rem_bits_in_period, vq_max_drain_bits, in irc_ba_check_and_update_bit_allocation()
787 VQ_A_LT_VQ_B(ps_rbip->vq_rem_bits_in_period, vq_min_bits_for_period, in irc_ba_check_and_update_bit_allocation()
798 sub32_var_q(ps_rbip->vq_rem_bits_in_period, vq_max_drain_bits, in irc_ba_check_and_update_bit_allocation()
806 ps_rbip->vq_rem_bits_in_period = vq_max_drain_bits; in irc_ba_check_and_update_bit_allocation()
811 sub32_var_q(ps_rbip->vq_rem_bits_in_period, vq_min_bits_for_period, in irc_ba_check_and_update_bit_allocation()
819 ps_rbip->vq_rem_bits_in_period = vq_min_bits_for_period; in irc_ba_check_and_update_bit_allocation()
831 add32_var_q(ps_rbip->vq_rem_bits_in_period, vq_allocated_saved_bits, in irc_ba_check_and_update_bit_allocation()
832 &ps_rbip->vq_rem_bits_in_period); in irc_ba_check_and_update_bit_allocation()