/external/libavc/decoder/ |
D | ih264d_quant_scaling.c | 92 WORD32 i4_i, i4_j; in ih264d_form_default_scaling_matrix() local 97 for(i4_i = 0; i4_i < 6; i4_i++) in ih264d_form_default_scaling_matrix() 101 ps_dec->s_high_profile.i2_scalinglist4x4[i4_i][pu1_inv_scan[i4_j]] = in ih264d_form_default_scaling_matrix() 108 for(i4_i = 0; i4_i < 2; i4_i++) in ih264d_form_default_scaling_matrix() 112 … ps_dec->s_high_profile.i2_scalinglist8x8[i4_i][gau1_ih264d_inv_scan_prog8x8_cabac[i4_j]] = in ih264d_form_default_scaling_matrix() 126 WORD32 i4_i; in ih264d_form_scaling_matrix_picture() local 131 for(i4_i = 0; i4_i < 8; i4_i++) in ih264d_form_scaling_matrix_picture() 133 if(i4_i < 6) in ih264d_form_scaling_matrix_picture() 136 if(!ps_seq->u1_seq_scaling_list_present_flag[i4_i]) in ih264d_form_scaling_matrix_picture() 138 if((i4_i == 0) || (i4_i == 3)) in ih264d_form_scaling_matrix_picture() [all …]
|
D | ih264d_parse_headers.c | 285 WORD32 i4_i; in ih264d_parse_pps() local 422 for(i4_i = 0; i4_i < (6 + (ps_pps->i4_transform_8x8_mode_flag << 1)); i4_i++) in ih264d_parse_pps() 424 ps_pps->u1_pic_scaling_list_present_flag[i4_i] = in ih264d_parse_pps() 427 if(ps_pps->u1_pic_scaling_list_present_flag[i4_i]) in ih264d_parse_pps() 430 if(i4_i < 6) in ih264d_parse_pps() 433 ps_pps->i2_pic_scalinglist4x4[i4_i], in ih264d_parse_pps() 435 &ps_pps->u1_pic_use_default_scaling_matrix_flag[i4_i], in ih264d_parse_pps() 441 ps_pps->i2_pic_scalinglist8x8[i4_i - 6], in ih264d_parse_pps() 443 &ps_pps->u1_pic_use_default_scaling_matrix_flag[i4_i], in ih264d_parse_pps() 594 WORD32 i4_i; in ih264d_parse_sps() local [all …]
|
/external/libhevc/encoder/ |
D | ihevce_tile_interface.c | 119 WORD32 i4_i; in ihevce_update_tile_params() local 206 for(i4_i = 0; i4_i < i4_pos; i4_i++) in ihevce_update_tile_params() 208 i4_x_y += ps_app_tile_prms->ai4_column_width[i4_i]; in ihevce_update_tile_params() 218 for(i4_i = 0; i4_i < i4_pos; i4_i++) in ihevce_update_tile_params() 220 i4_x_y += ps_app_tile_prms->ai4_row_height[i4_i]; in ihevce_update_tile_params() 232 for(i4_i = 0; i4_i < i4_num_tile_cols; i4_i++) in ihevce_update_tile_params() 234 i4_value = ((i4_i + 1) * i4_pic_wd_in_ctb) / i4_num_tile_cols - in ihevce_update_tile_params() 235 (i4_i * i4_pic_wd_in_ctb) / i4_num_tile_cols; in ihevce_update_tile_params() 237 if(i4_i == (i4_curr_tile_id % i4_num_tile_cols)) in ihevce_update_tile_params() 242 if(i4_i == (i4_num_tile_cols - 1)) in ihevce_update_tile_params() [all …]
|
D | hme_fullpel.c | 122 S32 i4_i; in hme_fullpel_cand_sifter() local 151 for(i4_i = 0; i4_i < ps_fullpel_refine_ctxt->i4_num_valid_parts; i4_i++) in hme_fullpel_cand_sifter() 153 if(ps_fullpel_refine_ctxt->i2_tot_cost[0][i4_i] > in hme_fullpel_cand_sifter() 154 ps_fullpel_refine_ctxt->i2_tot_cost[1][i4_i]) in hme_fullpel_cand_sifter() 156 i2_temp_tot_cost = ps_fullpel_refine_ctxt->i2_tot_cost[0][i4_i]; in hme_fullpel_cand_sifter() 158 ps_fullpel_refine_ctxt->i2_stim_injected_cost[0][i4_i]; in hme_fullpel_cand_sifter() 159 i2_temp_mv_cost = ps_fullpel_refine_ctxt->i2_mv_cost[0][i4_i]; in hme_fullpel_cand_sifter() 160 i2_temp_mv_x = ps_fullpel_refine_ctxt->i2_mv_x[0][i4_i]; in hme_fullpel_cand_sifter() 161 i2_temp_mv_y = ps_fullpel_refine_ctxt->i2_mv_y[0][i4_i]; in hme_fullpel_cand_sifter() 162 i2_temp_ref_idx = ps_fullpel_refine_ctxt->i2_ref_idx[0][i4_i]; in hme_fullpel_cand_sifter() [all …]
|
D | ihevce_ipe_pass.c | 1445 WORD32 i4_i; in ihevce_populate_ipe_frame_init() local 1479 for(i4_i = 0; i4_i < 2; i4_i++) in ihevce_populate_ipe_frame_init() 1481 ps_ctxt->ld_curr_frame_8x8_log_avg[i4_i] = ps_curr_out->ld_curr_frame_8x8_log_avg[i4_i]; in ihevce_populate_ipe_frame_init() 1482 ps_ctxt->ld_curr_frame_16x16_log_avg[i4_i] = ps_curr_out->ld_curr_frame_16x16_log_avg[i4_i]; in ihevce_populate_ipe_frame_init() 1483 ps_ctxt->ld_curr_frame_32x32_log_avg[i4_i] = ps_curr_out->ld_curr_frame_32x32_log_avg[i4_i]; in ihevce_populate_ipe_frame_init() 1490 for(i4_i = 0; i4_i < 2; i4_i++) in ihevce_populate_ipe_frame_init() 1492 ps_ctxt->i8_curr_frame_8x8_avg_act[i4_i] = ps_curr_out->i8_curr_frame_8x8_avg_act[i4_i]; in ihevce_populate_ipe_frame_init() 1493 ps_ctxt->i8_curr_frame_16x16_avg_act[i4_i] = ps_curr_out->i8_curr_frame_16x16_avg_act[i4_i]; in ihevce_populate_ipe_frame_init() 1494 ps_ctxt->i8_curr_frame_32x32_avg_act[i4_i] = ps_curr_out->i8_curr_frame_32x32_avg_act[i4_i]; in ihevce_populate_ipe_frame_init() 1543 for(i4_i = 0; i4_i < 2; i4_i++) in ihevce_populate_ipe_frame_init() [all …]
|
D | hme_coarse.c | 810 S32 i4_i, id, i; in hme_coarsest() local 871 for(i4_i = 0; i4_i < i4_num_ref; i4_i++) in hme_coarsest() 873 aps_best_search_node_8x4[i4_i] = ps_search_results->aps_part_results[i4_i][PART_ID_2NxN_B]; in hme_coarsest() 874 aps_best_search_node_4x8[i4_i] = ps_search_results->aps_part_results[i4_i][PART_ID_Nx2N_R]; in hme_coarsest() 914 for(i4_i = 0; i4_i < i4_num_ref; i4_i++) in hme_coarsest() 921 INIT_SEARCH_NODE(&ps_ctxt->aps_best_search_nodes_4x8_n_rows[i4_i][blk], i4_i); in hme_coarsest() 924 delta_poc = ABS(ps_curr_layer->i4_poc - ps_curr_layer->ai4_ref_id_to_poc_lc[i4_i]); in hme_coarsest() 962 as_mv_limit[i4_i].i2_min_x = -mv_x_clip; in hme_coarsest() 963 as_mv_limit[i4_i].i2_min_y = -mv_y_clip; in hme_coarsest() 964 as_mv_limit[i4_i].i2_max_x = mv_x_clip; in hme_coarsest() [all …]
|
D | ihevce_decomp_pre_intra_pass.c | 738 WORD32 i4_i; in ihevce_ed_calc_ctb() local 740 for(i4_i = 0; i4_i < 64; i4_i++) in ihevce_ed_calc_ctb() 742 (ps_ed_ctb + i4_i)->i4_4x4_satd = -1; in ihevce_ed_calc_ctb() 745 for(i4_i = 0; i4_i < 16; i4_i++) in ihevce_ed_calc_ctb() 747 ps_ed_ctb_l1->i4_sum_4x4_satd[i4_i] = -2; in ihevce_ed_calc_ctb() 748 ps_ed_ctb_l1->i4_min_4x4_satd[i4_i] = 0x7FFFFFFF; in ihevce_ed_calc_ctb() 749 ps_ed_ctb_l1->i4_8x8_satd[i4_i][0] = -2; in ihevce_ed_calc_ctb() 750 ps_ed_ctb_l1->i4_8x8_satd[i4_i][1] = -2; in ihevce_ed_calc_ctb() 753 for(i4_i = 0; i4_i < 4; i4_i++) in ihevce_ed_calc_ctb() 755 ps_ed_ctb_l1->i4_16x16_satd[i4_i][0] = -2; in ihevce_ed_calc_ctb() [all …]
|
D | cbr_buffer_control.c | 786 WORD32 i4_i, i4_bits_per_frm[MAX_NUM_DRAIN_RATES]; in change_cbr_vbv_tgt_frame_rate() local 813 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in change_cbr_vbv_tgt_frame_rate() 823 i4_index = i4_i > 0 ? 1 : 0; in change_cbr_vbv_tgt_frame_rate() 824 ps_cbr_buffer->i4_upr_thr[i4_i] = in change_cbr_vbv_tgt_frame_rate() 829 ps_cbr_buffer->i4_low_thr[i4_i] = i4_bits_per_frm[i4_index]; in change_cbr_vbv_tgt_frame_rate() 845 WORD32 i4_i; in change_cbr_buffer_delay() local 859 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in change_cbr_buffer_delay() 868 ps_cbr_buffer->i4_upr_thr[i4_i] = in change_cbr_buffer_delay()
|
D | ihevce_recur_bracketing.c | 2741 WORD32 i4_i, i4_j; in ihevce_bracketing_analysis() local 2821 for(i4_i = 0; i4_i < 4; i4_i++) in ihevce_bracketing_analysis() 2823 if(i4_i < pos) in ihevce_bracketing_analysis() 2825 ASSERT(ps_ed_ctb_l1->i4_16x16_satd[i4_i][0] != -2); in ihevce_bracketing_analysis() 2826 ASSERT(ps_ed_ctb_l1->i4_16x16_satd[i4_i][1] != -2); in ihevce_bracketing_analysis() 2827 ASSERT(ps_ed_ctb_l1->i4_16x16_satd[i4_i][2] != -2); in ihevce_bracketing_analysis() 2830 ps_ed_ctb_l1->i4_16x16_satd[i4_i][0], in ihevce_bracketing_analysis() 2833 &ps_l0_ipe_out_ctb->i4_32x32_act_factor[i4_i][0][i4_j], in ihevce_bracketing_analysis() 2838 ps_ed_ctb_l1->i4_16x16_satd[i4_i][1], in ihevce_bracketing_analysis() 2841 &ps_l0_ipe_out_ctb->i4_32x32_act_factor[i4_i][1][i4_j], in ihevce_bracketing_analysis() [all …]
|
D | ihevce_error_check.c | 181 WORD32 i4_resolution_id_loop, i4_i; in ihevce_hle_validate_static_params() local 362 for(i4_i = 0; i4_i < 3; i4_i++) in ihevce_hle_validate_static_params() 363 …splay_primaries_x[i4_i] %d \n", ps_static_cfg_prms->s_out_strm_prms.au2_display_primaries_x[i4_i]); in ihevce_hle_validate_static_params() 364 for(i4_i = 0; i4_i < 3; i4_i++) in ihevce_hle_validate_static_params() 365 …splay_primaries_y[i4_i] %d \n", ps_static_cfg_prms->s_out_strm_prms.au2_display_primaries_y[i4_i]); in ihevce_hle_validate_static_params() 378 for(i4_i = 0; i4_i < ps_static_cfg_prms->s_app_tile_params.i4_num_tile_cols; i4_i++) in ihevce_hle_validate_static_params() 379 …EVCE : i4_column_width[i4_i] %d \n", ps_static_cfg_prms->s_app_tile_params.ai4_column_width[i4_i]); in ihevce_hle_validate_static_params() 381 for(i4_i = 0; i4_i < ps_static_cfg_prms->s_app_tile_params.i4_num_tile_rows; i4_i++) in ihevce_hle_validate_static_params() 382 … "IHEVCE : i4_row_height[i4_i] %d \n", ps_static_cfg_prms->s_app_tile_params.ai4_row_height[i4_i]); in ihevce_hle_validate_static_params()
|
D | ihevce_rc_interface.c | 4329 WORD32 i4_ctr = -1, i4_i, i4_j; in ihevce_rc_update_pic_info() local 4420 for(i4_i = 0; i4_i < MAX_NON_REF_B_PICS_IN_QUEUE_SGI; i4_i++) in ihevce_rc_update_pic_info() 4422 if(ps_rc_lap_out->u4_rc_scene_num == ps_rc_ctxt->au4_prev_scene_num_multi_scene[i4_i]) in ihevce_rc_update_pic_info() 4424 i4_ctr = i4_i; in ihevce_rc_update_pic_info() 4446 WORD32 i4_i; in ihevce_rc_update_pic_info() local 4448 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in ihevce_rc_update_pic_info() 4449 ps_rc_ctxt->ai4_prev_pic_hevc_qp[i4_scene_num + HALF_MAX_SCENE_ARRAY_QP][i4_i] = in ihevce_rc_update_pic_info() 4454 WORD32 i4_i; in ihevce_rc_update_pic_info() local 4456 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in ihevce_rc_update_pic_info() 4457 ps_rc_ctxt->ai4_prev_pic_hevc_qp[i4_scene_num - HALF_MAX_SCENE_ARRAY_QP][i4_i] = in ihevce_rc_update_pic_info() [all …]
|
D | rate_control_api.c | 1993 WORD32 i4_i; in update_frame_level_info() local 1994 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in update_frame_level_info() 1996 pi4_qp_array[i4_i] = 0x7FFFFFFF; in update_frame_level_info() 1997 pi4_qp_array_q6[i4_i] = 0x7FFFFFFF; in update_frame_level_info() 2380 WORD32 i4_i = 0; in update_frame_rc_get_frame_qp_info() local 2381 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in update_frame_rc_get_frame_qp_info() 2383 if(ps_rate_control_api->ai4_prev_frm_qp[i4_scene_num][i4_i] == 0x7FFFFFFF) in update_frame_rc_get_frame_qp_info() 2385 ps_rate_control_api->ai4_prev_frm_qp[i4_scene_num][i4_i] = i4_avg_qp; in update_frame_rc_get_frame_qp_info() 2386 ps_rate_control_api->ai4_prev_frm_qp_q6[i4_scene_num][i4_i] = i4_avg_qp_q6; in update_frame_rc_get_frame_qp_info()
|
D | hme_err_compute.c | 2298 WORD32 i4_i; in hme_calc_sad_and_2_best_results() local 2301 for(i4_i = 0; i4_i < ps_mv_refine_ctxt->i4_num_valid_parts; i4_i++) in hme_calc_sad_and_2_best_results() 2303 part_id = ps_mv_refine_ctxt->ai4_part_id[i4_i]; in hme_calc_sad_and_2_best_results() 2825 WORD32 i4_i; in hme_calc_stim_injected_sad_and_2_best_results() local 2828 for(i4_i = 0; i4_i < ps_mv_refine_ctxt->i4_num_valid_parts; i4_i++) in hme_calc_stim_injected_sad_and_2_best_results() 2830 part_id = ps_mv_refine_ctxt->ai4_part_id[i4_i]; in hme_calc_stim_injected_sad_and_2_best_results() 3065 WORD32 i4_i; in hme_calc_sad_and_1_best_result() local 3068 for(i4_i = 0; i4_i < ps_mv_refine_ctxt->i4_num_valid_parts; i4_i++) in hme_calc_sad_and_1_best_result() 3070 part_id = ps_mv_refine_ctxt->ai4_part_id[i4_i]; in hme_calc_sad_and_1_best_result() 3389 WORD32 i4_i; in hme_calc_stim_injected_sad_and_1_best_result() local [all …]
|
D | hme_subpel.c | 2304 S32 i4_ref_stride, i4_i; in hme_subpel_refine_search_node_high_speed() local 2440 for(i4_i = 0; i4_i < i4_num_hpel_refine; i4_i++) in hme_subpel_refine_search_node_high_speed() 2724 for(i4_i = 0; i4_i < i4_num_qpel_refine; i4_i++) in hme_subpel_refine_search_node_high_speed() 2923 S32 i4_ref_stride, i4_i; in hme_subpel_refine_search_node_high_speed() local 3059 for(i4_i = 0; i4_i < i4_num_hpel_refine; i4_i++) in hme_subpel_refine_search_node_high_speed() 3234 if(!i4_i) in hme_subpel_refine_search_node_high_speed() 3399 if(i4_i) in hme_subpel_refine_search_node_high_speed() 3536 for(i4_i = 0; i4_i < i4_num_qpel_refine; i4_i++) in hme_subpel_refine_search_node_high_speed() 3661 if(!i4_i) in hme_subpel_refine_search_node_high_speed() 3810 if(i4_i) in hme_subpel_refine_search_node_high_speed()
|
D | ihevce_encode_header.c | 2793 WORD32 i4_i; in ihevce_populate_pps() local 2794 for(i4_i = 0; i4_i < ps_tile_params_base->i4_num_tile_cols; i4_i++) in ihevce_populate_pps() 2796 ps_pps->ps_tile[i4_i].u2_wd = pi4_column_width_array[i4_i] >> in ihevce_populate_pps() 2799 for(i4_i = 0; i4_i < ps_tile_params_base->i4_num_tile_rows; i4_i++) in ihevce_populate_pps() 2801 ps_pps->ps_tile[i4_i].u2_ht = pi4_row_height_array[i4_i] >> in ihevce_populate_pps()
|
D | ihevce_enc_loop_pass.c | 5897 int i4_i; in ihevce_enc_loop_frame_init() local 5898 for(i4_i = 0; i4_i < ps_slice_hdr->i1_num_ref_idx_l0_active; i4_i++) in ihevce_enc_loop_frame_init() 5900 ps_frm_recon->ai4_col_l0_poc[i4_i] = aps_ref_list[0][i4_i]->i4_poc; in ihevce_enc_loop_frame_init() 5905 int i4_i; in ihevce_enc_loop_frame_init() local 5906 for(i4_i = 0; i4_i < ps_slice_hdr->i1_num_ref_idx_l1_active; i4_i++) in ihevce_enc_loop_frame_init() 5908 ps_frm_recon->ai4_col_l1_poc[i4_i] = aps_ref_list[1][i4_i]->i4_poc; in ihevce_enc_loop_frame_init()
|
D | ihevce_cabac_tu.c | 3444 WORD32 i4_i; in ihevce_copy_backup_ctxt() local 3453 for(i4_i = 0; i4_i < MAX_NUM_CONTEXT_ELEMENTS; i4_i++) in ihevce_copy_backup_ctxt()
|
D | hme_refine.c | 7578 WORD32 i4_i; in hme_refine() local 7580 for(i4_i = 0; i4_i < TOT_NUM_PARTS; i4_i++) in hme_refine() 7582 ps_fullpel_refine_ctxt->i2_tot_cost[0][i4_i] = MAX_SIGNED_16BIT_VAL; in hme_refine() 7583 ps_fullpel_refine_ctxt->i2_mv_cost[0][i4_i] = MAX_SIGNED_16BIT_VAL; in hme_refine() 7584 ps_fullpel_refine_ctxt->i2_stim_injected_cost[0][i4_i] = in hme_refine() 7586 ps_fullpel_refine_ctxt->i2_mv_x[0][i4_i] = 0; in hme_refine() 7587 ps_fullpel_refine_ctxt->i2_mv_y[0][i4_i] = 0; in hme_refine() 7588 ps_fullpel_refine_ctxt->i2_ref_idx[0][i4_i] = u1_default_ref_id; in hme_refine() 7592 ps_fullpel_refine_ctxt->i2_tot_cost[1][i4_i] = in hme_refine() 7594 ps_fullpel_refine_ctxt->i2_mv_cost[1][i4_i] = in hme_refine() [all …]
|
D | hme_utils.c | 1194 S32 i4_i, i4_j, blk_ht; in hme_init_mv_bank() local 1251 for(i4_i = 0; i4_i < blks_in_col; i4_i++) in hme_init_mv_bank()
|
/external/libavc/encoder/ |
D | irc_cbr_buffer_control.c | 120 WORD32 i4_i, i4_bits_per_frm[MAX_NUM_DRAIN_RATES]; in irc_init_cbr_buffer() local 168 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in irc_init_cbr_buffer() 180 i4_index = i4_i > 0 ? 1 : 0; in irc_init_cbr_buffer() 181 ps_cbr_buffer->i4_upr_thr[i4_i] = ps_cbr_buffer->i4_buffer_size in irc_init_cbr_buffer() 188 ps_cbr_buffer->i4_low_thr[i4_i] = i4_bits_per_frm[i4_index]; in irc_init_cbr_buffer() 454 WORD32 i4_i, i4_bits_per_frm[MAX_NUM_DRAIN_RATES]; in irc_change_cbr_vbv_tgt_frame_rate() local 493 for(i4_i = 0; i4_i < MAX_PIC_TYPE; i4_i++) in irc_change_cbr_vbv_tgt_frame_rate() 505 i4_index = i4_i > 0 ? 1 : 0; in irc_change_cbr_vbv_tgt_frame_rate() 506 ps_cbr_buffer->i4_upr_thr[i4_i] = ps_cbr_buffer->i4_buffer_size in irc_change_cbr_vbv_tgt_frame_rate() 514 ps_cbr_buffer->i4_low_thr[i4_i] = i4_bits_per_frm[i4_index]; in irc_change_cbr_vbv_tgt_frame_rate() [all …]
|
D | ih264e_deblk.c | 362 WORD32 i4_i; in ih264e_calculate_csbp() local 368 for (i4_i = 0; i4_i < 16; i4_i++ ) in ih264e_calculate_csbp() 370 u4_csbp |= ((!!*(pu1_curr_nnz + i4_i))<< i4_i); in ih264e_calculate_csbp()
|