Lines Matching refs:ps_rbip
206 rem_bit_in_prd_t *ps_rbip, in init_rbip() argument
218 ps_rbip->i4_rem_bits_in_period = in init_rbip()
224 ps_rbip->i4_tot_frms_in_gop = i4_tot_frms_in_gop; in init_rbip()
225 ps_rbip->i4_num_intra_frm_interval = i4_num_intra_frm_interval; in init_rbip()
226 ps_rbip->i4_bits_per_frm = i4_bits_per_frm; in init_rbip()
238 static void check_update_rbip(rem_bit_in_prd_t *ps_rbip, pic_handling_handle ps_pic_handling) in check_update_rbip() argument
242 if(i4_new_tot_frms_in_gop != ps_rbip->i4_tot_frms_in_gop) in check_update_rbip()
244 WORD32 i4_num_frames_in_period = ps_rbip->i4_num_intra_frm_interval * in check_update_rbip()
245 (i4_new_tot_frms_in_gop - ps_rbip->i4_tot_frms_in_gop); in check_update_rbip()
247 &ps_rbip->i4_rem_bits_in_period, (ps_rbip->i4_bits_per_frm * i4_num_frames_in_period)); in check_update_rbip()
250 ps_rbip->i4_tot_frms_in_gop = i4_new_tot_frms_in_gop; in check_update_rbip()
261 ret_rbip_default_preenc(rem_bit_in_prd_t *ps_rbip, pic_handling_handle ps_pic_handling) in ret_rbip_default_preenc() argument
264 pic_type_get_intra_frame_interval(ps_pic_handling) * ps_rbip->i4_bits_per_frm; in ret_rbip_default_preenc()
276 rem_bit_in_prd_t *ps_rbip, pic_handling_handle ps_pic_handling, WORD32 i4_num_of_bits) in update_rbip() argument
278 check_update_rbip(ps_rbip, ps_pic_handling); in update_rbip()
279 overflow_avoided_summation(&ps_rbip->i4_rem_bits_in_period, i4_num_of_bits); in update_rbip()
280 return (ps_rbip->i4_rem_bits_in_period); in update_rbip()
292 rem_bit_in_prd_t *ps_rbip, in get_rbip_and_num_frames() argument
297 check_update_rbip(ps_rbip, ps_pic_handling); in get_rbip_and_num_frames()
298 overflow_avoided_summation(&ps_rbip->i4_rem_bits_in_period, i4_num_of_bits); in get_rbip_and_num_frames()
299 *pi4_num_frames = ps_rbip->i4_tot_frms_in_gop; in get_rbip_and_num_frames()
300 return (ps_rbip->i4_rem_bits_in_period); in get_rbip_and_num_frames()
310 static WORD32 set_rbip(rem_bit_in_prd_t *ps_rbip, WORD32 i4_error_bits) in set_rbip() argument
312 ps_rbip->i4_rem_bits_in_period = (ps_rbip->i4_bits_per_frm * ps_rbip->i4_tot_frms_in_gop * in set_rbip()
313 ps_rbip->i4_num_intra_frm_interval) + in set_rbip()
316 return ps_rbip->i4_rem_bits_in_period; in set_rbip()
331 rem_bit_in_prd_t *ps_rbip, in multi_pass_set_rbip() argument
337 ps_rbip->i4_rem_bits_in_period = in multi_pass_set_rbip()
339 ps_rbip->i4_tot_frms_in_gop = i4_num_frames_in_gop; in multi_pass_set_rbip()
340 ps_rbip->i4_bits_per_frm = ps_rbip->i4_rem_bits_in_period / i4_num_frames_in_gop; in multi_pass_set_rbip()
343 rem_bit_in_prd_t *ps_rbip, WORD32 i4_new_bits_per_frm, WORD32 i4_new_num_intra_frm_interval) in change_rbip() argument
345 if(i4_new_bits_per_frm != ps_rbip->i4_bits_per_frm) in change_rbip()
348 (ps_rbip->i4_num_intra_frm_interval) * ps_rbip->i4_tot_frms_in_gop; in change_rbip()
350 &ps_rbip->i4_rem_bits_in_period, in change_rbip()
351 ((i4_new_bits_per_frm - ps_rbip->i4_bits_per_frm) * i4_rem_frms_in_period)); in change_rbip()
353 if(i4_new_num_intra_frm_interval != ps_rbip->i4_num_intra_frm_interval) in change_rbip()
356 &ps_rbip->i4_rem_bits_in_period, in change_rbip()
357 (i4_new_bits_per_frm * ps_rbip->i4_tot_frms_in_gop * in change_rbip()
358 (i4_new_num_intra_frm_interval - ps_rbip->i4_num_intra_frm_interval))); in change_rbip()
361 ps_rbip->i4_num_intra_frm_interval = i4_new_num_intra_frm_interval; in change_rbip()
362 ps_rbip->i4_bits_per_frm = i4_new_bits_per_frm; in change_rbip()