/external/libhevc/encoder/ |
D | cbr_buffer_control.c | 126 static void set_upper_lower_vbv_threshold(cbr_buffer_t *ps_cbr_buffer, WORD32 i4_bits_per_frm) in set_upper_lower_vbv_threshold() argument 131 ps_cbr_buffer->i4_upr_thr[i] = in set_upper_lower_vbv_threshold() 132 (WORD32)(((LWORD64)ps_cbr_buffer->i4_buffer_size >> 4) * UPPER_THRESHOLD_EBF_Q4); in set_upper_lower_vbv_threshold() 133 if(ps_cbr_buffer->e_rc_type == VBR_STREAMING) in set_upper_lower_vbv_threshold() 136 if(ps_cbr_buffer->i4_vbr_no_peak_rate_duration_limit) in set_upper_lower_vbv_threshold() 137 ps_cbr_buffer->i4_low_thr[i] = 0; in set_upper_lower_vbv_threshold() 139 ps_cbr_buffer->i4_low_thr[i] = ps_cbr_buffer->i4_inter_frame_int * i4_bits_per_frm; in set_upper_lower_vbv_threshold() 143 if(ps_cbr_buffer->i4_inter_frame_int == 1) in set_upper_lower_vbv_threshold() 144 ps_cbr_buffer->i4_low_thr[i] = 0; in set_upper_lower_vbv_threshold() 147 ps_cbr_buffer->i4_low_thr[i] = ps_cbr_buffer->i4_inter_frame_int * i4_bits_per_frm; in set_upper_lower_vbv_threshold() [all …]
|
D | cbr_buffer_control.h | 60 cbr_buffer_handle ps_cbr_buffer, 78 cbr_buffer_handle ps_cbr_buffer, 86 cbr_buffer_handle ps_cbr_buffer, 94 cbr_buffer_handle ps_cbr_buffer, WORD32 i4_tot_consumed_bits, picture_type_e e_pic_type); 98 cbr_buffer_handle ps_cbr_buffer, WORD32 i4_tot_consumed_bits, picture_type_e e_pic_type); 99 WORD32 get_cbr_buffer_delay(cbr_buffer_handle ps_cbr_buffer); 100 WORD32 get_cbr_buffer_size(cbr_buffer_handle ps_cbr_buffer); 101 WORD32 get_cbr_ebf(cbr_buffer_handle ps_cbr_buffer); 102 WORD32 get_cbr_max_ebf(cbr_buffer_handle ps_cbr_buffer); 103 void update_cbr_buf_mismatch_bit(cbr_buffer_handle ps_cbr_buffer, WORD32 i4_error_bits); [all …]
|
D | rate_control_api.c | 172 &pps_rate_control_api[0]->ps_cbr_buffer, &ps_memtab[i4_mem_tab_idx], e_func_type); in rate_control_num_fill_use_free_memtab() 389 ps_rate_control_api->ps_cbr_buffer, in initialise_rate_control() 415 ps_rate_control_api->ps_cbr_buffer, in initialise_rate_control() 487 ps_rate_control_api->ps_cbr_buffer, in initialise_rate_control() 535 get_buf_max_drain_rate(ps_rate_control_api->ps_cbr_buffer); in initialise_rate_control() 652 cbr_modify_ebf_estimate(ps_rate_control_api->ps_cbr_buffer, i4_get_error); //ELP_RC in get_min_max_bits_based_on_buffer() 675 ps_rate_control_api->ps_cbr_buffer, 0, e_pic_type, &i4_max_bits, &i4_min_bits); in get_min_max_bits_based_on_buffer() 680 ps_rate_control_api->ps_cbr_buffer, 0, e_pic_type, &i4_max_bits, &i4_min_bits); in get_min_max_bits_based_on_buffer() 975 i4_bits_per_frame = get_buf_max_drain_rate(ps_rate_control_api->ps_cbr_buffer); in rc_get_estimate_bit_error() 1037 WORD32 i4_drain_bits_per_frame = get_buf_max_drain_rate(ps_rate_control_api->ps_cbr_buffer), in clip_qp_based_on_prev_ref() [all …]
|
D | bit_allocation.c | 1277 cbr_buffer_handle ps_cbr_buffer, in get_cur_frm_est_texture_bits() argument 1463 WORD32 i4_drain_bits_per_frame = get_buf_max_drain_rate(ps_cbr_buffer), i4_ebf; in get_cur_frm_est_texture_bits() 1464 WORD32 i4_delay = cbr_get_delay_frames(ps_cbr_buffer), max_buffer_level = 0, in get_cur_frm_est_texture_bits() 1465 rc_type = get_rc_type(ps_cbr_buffer); in get_cur_frm_est_texture_bits() 1470 max_buffer_level = get_cbr_buffer_size(ps_cbr_buffer); in get_cur_frm_est_texture_bits() 1472 i4_ebf = get_cbr_ebf(ps_cbr_buffer); in get_cur_frm_est_texture_bits() 1545 ps_cbr_buffer, in get_cur_frm_est_texture_bits() 2898 cbr_buffer_handle ps_cbr_buffer, in set_bit_allocation_i_frames() argument 2906 rc_type_e e_rc_type = get_rc_type(ps_cbr_buffer); in set_bit_allocation_i_frames() 2915 ps_cbr_buffer, in set_bit_allocation_i_frames() [all …]
|
D | bit_allocation.h | 90 cbr_buffer_handle ps_cbr_buffer, 275 cbr_buffer_handle ps_cbr_buffer,
|
D | rate_control_api_structs.h | 67 cbr_buffer_handle ps_cbr_buffer; member
|
/external/libavc/encoder/ |
D | irc_cbr_buffer_control.c | 113 void irc_init_cbr_buffer(cbr_buffer_t *ps_cbr_buffer, in irc_init_cbr_buffer() argument 128 ps_cbr_buffer->i4_drain_bits_per_frame[i] = i4_bits_per_frm[i]; in irc_init_cbr_buffer() 130 irc_init_error_bits(ps_cbr_buffer->aps_bpf_error_bits[i], in irc_init_cbr_buffer() 139 ps_cbr_buffer->i4_buffer_size); in irc_init_cbr_buffer() 140 ps_cbr_buffer->i4_is_cbr_mode = 1; in irc_init_cbr_buffer() 145 ps_cbr_buffer->i4_buffer_size = u4_num_pics_in_delay_prd[0] in irc_init_cbr_buffer() 146 * ps_cbr_buffer->i4_drain_bits_per_frame[0] in irc_init_cbr_buffer() 148 * ps_cbr_buffer->i4_drain_bits_per_frame[1]; in irc_init_cbr_buffer() 150 ps_cbr_buffer->i4_is_cbr_mode = 0; in irc_init_cbr_buffer() 153 if(ps_cbr_buffer->i4_buffer_size > (WORD32)u4_vbv_buf_size) in irc_init_cbr_buffer() [all …]
|
D | irc_cbr_buffer_control.h | 56 void irc_init_cbr_buffer(cbr_buffer_handle ps_cbr_buffer, 64 WORD32 irc_cbr_buffer_constraint_check(cbr_buffer_handle ps_cbr_buffer, 69 vbv_buf_status_e irc_get_cbr_buffer_status(cbr_buffer_handle ps_cbr_buffer, 75 void irc_update_cbr_buffer(cbr_buffer_handle ps_cbr_buffer, 80 WORD32 irc_get_cbr_bits_to_stuff(cbr_buffer_handle ps_cbr_buffer, 84 WORD32 irc_get_cbr_buffer_delay(cbr_buffer_handle ps_cbr_buffer); 86 WORD32 irc_get_cbr_buffer_size(cbr_buffer_handle ps_cbr_buffer); 88 WORD32 irc_vbr_stream_buffer_constraint_check(cbr_buffer_handle ps_cbr_buffer, 92 void irc_change_cbr_vbv_bit_rate(cbr_buffer_handle ps_cbr_buffer, 95 void irc_change_cbr_vbv_tgt_frame_rate(cbr_buffer_handle ps_cbr_buffer, [all …]
|
D | irc_rate_control_api.c | 105 &pps_rate_control_api[0]->ps_cbr_buffer, in irc_rate_control_num_fill_use_free_memtab() 223 irc_init_cbr_buffer(ps_rate_control_api->ps_cbr_buffer, in irc_initialise_rate_control() 240 irc_init_cbr_buffer(ps_rate_control_api->ps_cbr_buffer, in irc_initialise_rate_control() 479 ps_rate_control_api->ps_cbr_buffer, in irc_get_frame_level_qp() 491 ps_rate_control_api->ps_cbr_buffer, in irc_get_frame_level_qp() 703 ps_rate_control_api->ps_cbr_buffer, i4_total_frame_bits, in irc_get_buffer_status() 711 ps_rate_control_api->ps_cbr_buffer, i4_total_frame_bits, in irc_get_buffer_status() 857 irc_update_cbr_buffer(ps_rate_control_api->ps_cbr_buffer, in irc_update_frame_level_info() 868 irc_update_cbr_buffer(ps_rate_control_api->ps_cbr_buffer, in irc_update_frame_level_info() 875 ps_rate_control_api->ps_cbr_buffer, in irc_update_frame_level_info() [all …]
|
D | irc_rate_control_api_structs.h | 67 cbr_buffer_handle ps_cbr_buffer; member
|