Lines Matching refs:S32
107 S32 stride, in ihevce_open_loop_pred_data()
108 S32 src_strd, in ihevce_open_loop_pred_data()
111 S32 best_sad_l0 = -1, best_sad_l1 = -1; in ihevce_open_loop_pred_data()
112 S32 sad_diff, status; in ihevce_open_loop_pred_data()
193 void *hme_get_wkg_mem(buf_mgr_t *ps_buf_mgr, S32 i4_size) in hme_get_wkg_mem()
223 void hme_init_histogram(mv_hist_t *ps_hist, S32 i4_max_mv_x, S32 i4_max_mv_y) in hme_init_histogram()
225 S32 i4_num_bins, i4_num_cols, i4_num_rows; in hme_init_histogram()
226 S32 i4_shift_x, i4_shift_y, i, i4_range, i4_val; in hme_init_histogram()
291 void hme_update_histogram(mv_hist_t *ps_hist, S32 i4_mv_x, S32 i4_mv_y) in hme_update_histogram()
293 S32 i4_bin_index, i4_col, i4_row; in hme_update_histogram()
321 void hme_get_global_mv(layer_ctxt_t *ps_prev_layer, hme_mv_t *ps_mv, S32 i4_delta_poc) in hme_get_global_mv()
324 S32 i4_delta_poc_prev; in hme_get_global_mv()
325 S32 i4_poc_prev = ps_prev_layer->i4_poc; in hme_get_global_mv()
326 S32 i4_poc_prev_ref = ps_prev_layer->ai4_ref_id_to_poc_lc[0]; in hme_get_global_mv()
356 S32 i4_offset, i4_lobe_size, i4_y, i4_x, *pi4_bin_count; in hme_calculate_global_mv()
357 S32 i4_max_sum = -1; in hme_calculate_global_mv()
358 S32 i4_max_x = 0, i4_max_y = 0; in hme_calculate_global_mv()
370 S32 i4_bin_id, i4_sum; in hme_calculate_global_mv()
436 S32 i4_num_pred_dir) in hme_map_mvs_to_grid()
438 S32 i4_cu_start_offset; in hme_map_mvs_to_grid()
443 S32 i4_cu_offset_x = (S32)ps_search_results->u1_x_off >> 2; in hme_map_mvs_to_grid()
444 S32 i4_cu_offset_y = (S32)ps_search_results->u1_y_off >> 2; in hme_map_mvs_to_grid()
450 S32 i4_part, i4_part_id, num_parts, i4_stride; in hme_map_mvs_to_grid()
455 S32 x_start, y_start, x_end, y_end, i4_x, i4_y; in hme_map_mvs_to_grid()
466 S32 shift, i, mv_shift = 2; in hme_map_mvs_to_grid()
536 void hme_set_ctb_pred_attr(ctb_node_t *ps_parent, U08 *pu1_pred0, U08 *pu1_pred1, S32 i4_stride) in hme_set_ctb_pred_attr()
543 S32 blk_wd = (S32)ps_parent->ps_tr->u1_x_off; in hme_set_ctb_pred_attr()
544 blk_wd -= (S32)ps_parent->u1_x_off; in hme_set_ctb_pred_attr()
579 S32 hme_create_valid_part_ids(S32 i4_part_mask, S32 *pi4_valid_part_ids) in hme_create_valid_part_ids()
581 S32 id = 0, i; in hme_create_valid_part_ids()
596 get_ctb_attrs(S32 ctb_start_x, S32 ctb_start_y, S32 pic_wd, S32 pic_ht, me_frm_ctxt_t *ps_ctxt) in get_ctb_attrs()
598 S32 horz_crop, vert_crop; in get_ctb_attrs()
657 S32 i4_src1_stride, in hevc_avg_2d()
658 S32 i4_src2_stride, in hevc_avg_2d()
659 S32 i4_blk_wd, in hevc_avg_2d()
660 S32 i4_blk_ht, in hevc_avg_2d()
662 S32 i4_dst_stride) in hevc_avg_2d()
664 S32 i, j; in hevc_avg_2d()
704 S32 i4_part_idx, in hme_pick_back_search_node()
707 S32 is_past_l0, is_past_l1, id, i, i4_poc; in hme_pick_back_search_node()
708 S32 *pi4_ref_id_to_poc_lc = ps_curr_layer->ai4_ref_id_to_poc_lc; in hme_pick_back_search_node()
791 S32 hme_study_input_segmentation(U08 *pu1_inp, S32 i4_inp_stride, S32 limit_active_partitions) in hme_study_input_segmentation()
793 S32 i4_rsum[16], i4_csum[16]; in hme_study_input_segmentation()
795 S32 i4_max_ridx, i4_max_cidx, i4_tmp; in hme_study_input_segmentation()
796 S32 i, j, i4_ret; in hme_study_input_segmentation()
797 S32 i4_max_rp[4], i4_max_cp[4]; in hme_study_input_segmentation()
798 S32 i4_seg_lutc[4] = { 0, ENABLE_nLx2N, ENABLE_Nx2N, ENABLE_nRx2N }; in hme_study_input_segmentation()
799 S32 i4_seg_lutr[4] = { 0, ENABLE_2NxnU, ENABLE_2NxN, ENABLE_2NxnD }; in hme_study_input_segmentation()
977 S32 i4_num_ref, in hme_init_search_results()
978 S32 i4_num_best_results, in hme_init_search_results()
979 S32 i4_num_results_per_part, in hme_init_search_results()
981 S32 i4_x_off, in hme_init_search_results()
982 S32 i4_y_off, in hme_init_search_results()
1016 void hme_reset_search_results(search_results_t *ps_search_results, S32 i4_part_mask, S32 mv_res) in hme_reset_search_results()
1018 S32 i4_num_ref = (S32)ps_search_results->u1_num_active_ref; in hme_reset_search_results()
1020 S32 i, j; in hme_reset_search_results()
1075 S32 hme_clamp_grid_by_mvrange(search_node_t *ps_search_node, S32 i4_step, range_prms_t *ps_mvrange) in hme_clamp_grid_by_mvrange()
1077 S32 i4_mask = GRID_ALL_PTS_VALID; in hme_clamp_grid_by_mvrange()
1113 me_ctxt_t *ps_ctxt, me_frm_ctxt_t *ps_frm_ctxt, S32 i4_layer_id, S32 i4_num_me_frm_pllel) in hme_get_past_layer_ctxt()
1115 S32 i4_poc = ps_frm_ctxt->ai4_ref_idx_to_poc_lc[0]; in hme_get_past_layer_ctxt()
1116 S32 i; in hme_get_past_layer_ctxt()
1143 layer_ctxt_t *hme_coarse_get_past_layer_ctxt(coarse_me_ctxt_t *ps_ctxt, S32 i4_layer_id) in hme_coarse_get_past_layer_ctxt()
1145 S32 i4_poc = ps_ctxt->ai4_ref_idx_to_poc_lc[0]; in hme_coarse_get_past_layer_ctxt()
1146 S32 i; in hme_coarse_get_past_layer_ctxt()
1186 S32 i4_num_ref, in hme_init_mv_bank()
1187 S32 i4_num_results_per_part, in hme_init_mv_bank()
1193 S32 blk_wd, mvs_in_blk, blks_in_row, mvs_in_row, blks_in_col; in hme_init_mv_bank()
1194 S32 i4_i, i4_j, blk_ht; in hme_init_mv_bank()
1273 S32 blk_wd, blks_in_row, mvs_in_row, blks_in_col; in hme_fill_mvbank_intra()
1274 S32 i, j, blk_ht; in hme_fill_mvbank_intra()
1346 S32 i4_x, in hme_derive_search_range()
1347 S32 i4_y, in hme_derive_search_range()
1348 S32 blk_wd, in hme_derive_search_range()
1349 S32 blk_ht) in hme_derive_search_range()
1395 S32 i4_blk_x, in hme_get_spatial_candt()
1396 S32 i4_blk_y, in hme_get_spatial_candt()
1400 S32 i4_result_id, in hme_get_spatial_candt()
1401 S32 tr_avail, in hme_get_spatial_candt()
1402 S32 bl_avail, in hme_get_spatial_candt()
1403 S32 encode) in hme_get_spatial_candt()
1407 S32 i4_blk_size1 = gau1_blk_size_to_wd[ps_layer_mvbank->e_blk_size]; in hme_get_spatial_candt()
1408 S32 i4_blk_size2 = gau1_blk_size_to_wd[e_search_blk_size]; in hme_get_spatial_candt()
1410 S32 i4_offset; in hme_get_spatial_candt()
1413 S32 jump = 1, mvs_in_blk, mvs_in_row; in hme_get_spatial_candt()
1414 S32 shift = (encode ? 2 : 0); in hme_get_spatial_candt()
1538 S32 i4_blk_x, in hme_get_spatial_candt_in_l1_me()
1539 S32 i4_blk_y, in hme_get_spatial_candt_in_l1_me()
1544 S32 i4_result_id, in hme_get_spatial_candt_in_l1_me()
1545 S32 tr_avail, in hme_get_spatial_candt_in_l1_me()
1546 S32 bl_avail, in hme_get_spatial_candt_in_l1_me()
1547 S32 i4_num_act_ref_l0, in hme_get_spatial_candt_in_l1_me()
1548 S32 i4_num_act_ref_l1) in hme_get_spatial_candt_in_l1_me()
1553 S32 i4_offset; in hme_get_spatial_candt_in_l1_me()
1554 S32 mvs_in_blk, mvs_in_row; in hme_get_spatial_candt_in_l1_me()
1556 S32 i4_mv_pos_in_implicit_array; in hme_get_spatial_candt_in_l1_me()
1560 S32 i4_blk_size1 = gau1_blk_size_to_wd[ps_layer_mvbank->e_blk_size]; in hme_get_spatial_candt_in_l1_me()
1561 S32 i4_blk_size2 = gau1_blk_size_to_wd[e_search_blk_size]; in hme_get_spatial_candt_in_l1_me()
1562 S32 jump = 1; in hme_get_spatial_candt_in_l1_me()
1563 S32 shift = 0; in hme_get_spatial_candt_in_l1_me()
1564 S32 i4_num_results_in_given_dir = in hme_get_spatial_candt_in_l1_me()
1856 S32 blk_x, in hme_fill_ctb_neighbour_mvs()
1857 S32 blk_y, in hme_fill_ctb_neighbour_mvs()
1861 S32 i4_num_act_ref_l0) in hme_fill_ctb_neighbour_mvs()
1865 S32 i4_offset; in hme_fill_ctb_neighbour_mvs()
1868 S32 jump = 0, inc, i, mvs_in_blk, mvs_in_row; in hme_fill_ctb_neighbour_mvs()
1947 void hme_init_wkg_mem(buf_mgr_t *ps_buf_mgr, U08 *pu1_mem, S32 size) in hme_init_wkg_mem()
1956 S32 i, j; in hme_init_mv_grid()
1996 void hme_pad_left(U08 *pu1_dst, S32 stride, S32 pad_wd, S32 pad_ht) in hme_pad_left()
1998 S32 i, j; in hme_pad_left()
2026 void hme_pad_right(U08 *pu1_dst, S32 stride, S32 pad_wd, S32 pad_ht) in hme_pad_right()
2028 S32 i, j; in hme_pad_right()
2056 void hme_pad_top(U08 *pu1_dst, S32 stride, S32 pad_ht, S32 pad_wd) in hme_pad_top()
2058 S32 i; in hme_pad_top()
2079 void hme_pad_bot(U08 *pu1_dst, S32 stride, S32 pad_ht, S32 pad_wd) in hme_pad_bot()
2081 S32 i; in hme_pad_bot()
2110 S32 dst_stride, in hme_get_wt_inp()
2111 S32 pos_x, in hme_get_wt_inp()
2112 S32 pos_y, in hme_get_wt_inp()
2113 S32 size, in hme_get_wt_inp()
2114 S32 num_ref, in hme_get_wt_inp()
2117 S32 ref, i, j; in hme_get_wt_inp()
2119 S32 log_wdc = ps_wt_inp_prms->wpred_log_wdc; in hme_get_wt_inp()
2120 S32 x_count, y_count; in hme_get_wt_inp()
2145 S32 wt, off; in hme_get_wt_inp()
2146 S32 inv_wt; in hme_get_wt_inp()
2179 S32 tmp; in hme_get_wt_inp()
2237 S32 ai4_costs[MAX_NUM_RESULTS_PER_PART_LIST << 1]; in hme_pick_best_pu_cand()
2273 static S32 hme_tu_recur_cand_harvester( in hme_tu_recur_cand_harvester()
2277 S32 i4_part_mask) in hme_tu_recur_cand_harvester()
2284 S32 i4_num_cands = 0; in hme_tu_recur_cand_harvester()
2337 S32 i4_total_cost; in hme_tu_recur_cand_harvester()
2339 S32 num_part_types = PRT_Nx2N - PRT_2NxN + 1; in hme_tu_recur_cand_harvester()
2340 S32 start_part_type = PRT_2NxN; in hme_tu_recur_cand_harvester()
2341 S32 best_cost = MAX_32BIT_VAL; in hme_tu_recur_cand_harvester()
2342 S32 part_type_cnt = 0; in hme_tu_recur_cand_harvester()
2387 S32 i4_total_cost; in hme_tu_recur_cand_harvester()
2389 S32 num_part_types = PRT_nRx2N - PRT_2NxnU + 1; in hme_tu_recur_cand_harvester()
2390 S32 start_part_type = PRT_2NxnU; in hme_tu_recur_cand_harvester()
2391 S32 best_cost = MAX_32BIT_VAL; in hme_tu_recur_cand_harvester()
2392 S32 part_type_cnt = 0; in hme_tu_recur_cand_harvester()
2516 S32 i, j; in hme_decide_part_types()
2517 S32 i4_part_mask; in hme_decide_part_types()
2520 S32 i4_noise_term; in hme_decide_part_types()
2528 S32 num_best_cand = 0; in hme_decide_part_types()
2529 const S32 i4_default_src_wt = ((1 << 15) + (WGHT_DEFAULT >> 1)) / WGHT_DEFAULT; in hme_decide_part_types()
2605 S32 i4_inp_off; in hme_decide_part_types()
2607 S32 lambda; in hme_decide_part_types()
2611 S32 ai4_inv_wt[MAX_NUM_INTER_PARTS]; in hme_decide_part_types()
2612 S32 ai4_inv_wt_shift_val[MAX_NUM_INTER_PARTS]; in hme_decide_part_types()
2784 S32 i4_bits_req; in hme_decide_part_types()
2785 S32 i4_q_level = STIM_Q_FORMAT + ALPHA_Q_FORMAT; in hme_decide_part_types()
3439 S32 i4_intra_2nx2n_cost; in hme_insert_intra_nodes_post_bipred()
3589 S32 hme_recompute_lambda_from_min_8x8_act_in_ctb( in hme_recompute_lambda_from_min_8x8_act_in_ctb()
3693 S32 i4_cur_node_cost = ps_result_node->i4_tot_cost; in hme_add_new_node_to_a_sorted_array()
3710 S32 i4_cur_node_cost = in hme_add_new_node_to_a_sorted_array()
3716 S32 i4_prev_node_cost = (pu1_shifts[i] == 0) ? pps_sorted_array[i]->i4_tot_cost in hme_add_new_node_to_a_sorted_array()
3740 S32 hme_find_pos_of_implicitly_stored_ref_id( in hme_find_pos_of_implicitly_stored_ref_id()
3741 S08 *pi1_ref_idx, S08 i1_ref_idx, S32 i4_result_id, S32 i4_num_results) in hme_find_pos_of_implicitly_stored_ref_id()
3743 S32 i; in hme_find_pos_of_implicitly_stored_ref_id()
3773 S32 hme_populate_search_candidates(fpel_srch_cand_init_data_t *ps_ctxt) in hme_populate_search_candidates()
3777 S32 wd_c, ht_c, wd_p, ht_p; in hme_populate_search_candidates()
3778 S32 blksize_p, blksize_c; in hme_populate_search_candidates()
3779 S32 i; in hme_populate_search_candidates()
3782 S32 ai4_cand_offsets[NUM_SEARCH_CAND_LOCATIONS]; in hme_populate_search_candidates()
3791 S32 i4_pos_x = ps_ctxt->i4_pos_x; in hme_populate_search_candidates()
3792 S32 i4_pos_y = ps_ctxt->i4_pos_y; in hme_populate_search_candidates()
3793 S32 i4_num_act_ref_l0 = ps_ctxt->i4_num_act_ref_l0; in hme_populate_search_candidates()
3794 S32 i4_num_act_ref_l1 = ps_ctxt->i4_num_act_ref_l1; in hme_populate_search_candidates()
3801 S32 i4_init_offset_projected = in hme_populate_search_candidates()
3803 S32 i4_init_offset_spatial = in hme_populate_search_candidates()
3810 S32 i4_num_srch_cands = MIN(u1_max_num_search_cands, ps_ctxt->i4_max_num_init_cands << 1); in hme_populate_search_candidates()
3827 S32 x = i4_pos_x >> 4; in hme_populate_search_candidates()
3828 S32 y = i4_pos_y >> 4; in hme_populate_search_candidates()
3900 S32 i4_offset = i4_init_offset_spatial; in hme_populate_search_candidates()
4014 S32 x, y; in hme_populate_search_candidates()
4066 S32 i4_num_srch_cands, in hme_mv_clipper()
4072 S32 candt; in hme_mv_clipper()
4177 S32 i4_src_pred_stride; in hme_debrief_bipred_eval()
4178 S32 i4_dst_pred_stride; in hme_debrief_bipred_eval()
4408 S32 *pi4_id_Z, in hme_search_cand_data_init()
4409 S32 *pi4_id_coloc, in hme_search_cand_data_init()
4410 S32 *pi4_num_coloc_cands, in hme_search_cand_data_init()
4412 S32 i4_num_act_ref_l0, in hme_search_cand_data_init()
4413 S32 i4_num_act_ref_l1, in hme_search_cand_data_init()
4417 S32 i, j; in hme_search_cand_data_init()
4418 S32 i4_num_coloc_cands; in hme_search_cand_data_init()
4424 S32 i; in hme_search_cand_data_init()
4486 S32 i; in hme_search_cand_data_init()
4695 hme_determine_base_block_size(S32 *pi4_valid_part_array, S32 i4_num_valid_parts, U08 u1_cu_size) in hme_determine_base_block_size()
4725 S32 i4_part_id) in hme_compute_variance_of_pu_from_base_blocks()
4731 S32 i4_part_wd = gai1_part_wd_and_ht[i4_part_id][0] * u1_part_dimension_multiplier; in hme_compute_variance_of_pu_from_base_blocks()
4732 S32 i4_part_ht = gai1_part_wd_and_ht[i4_part_id][1] * u1_part_dimension_multiplier; in hme_compute_variance_of_pu_from_base_blocks()
4844 S32 i4_data_stride, in hme_compute_variance_for_all_parts()
4845 S32 *pi4_valid_part_array, in hme_compute_variance_for_all_parts()
4847 S32 i4_num_valid_parts, in hme_compute_variance_for_all_parts()
4902 S32 i4_part_id, in hme_compute_final_sigma_of_pu_from_base_blocks()
4909 S32 i4_part_wd = gai1_part_wd_and_ht[i4_part_id][0] * u1_part_dimension_multiplier; in hme_compute_final_sigma_of_pu_from_base_blocks()
4910 S32 i4_part_ht = gai1_part_wd_and_ht[i4_part_id][1] * u1_part_dimension_multiplier; in hme_compute_final_sigma_of_pu_from_base_blocks()
5012 S32 i4_pred_stride, in hme_compute_stim_injected_distortion_for_all_parts()
5013 S32 *pi4_valid_part_array, in hme_compute_stim_injected_distortion_for_all_parts()
5016 S32 *pi4_sad_array, in hme_compute_stim_injected_distortion_for_all_parts()
5017 S32 i4_alpha_stim_multiplier, in hme_compute_stim_injected_distortion_for_all_parts()
5018 S32 i4_inv_wt, in hme_compute_stim_injected_distortion_for_all_parts()
5019 S32 i4_inv_wt_shift_val, in hme_compute_stim_injected_distortion_for_all_parts()
5020 S32 i4_num_valid_parts, in hme_compute_stim_injected_distortion_for_all_parts()
5021 S32 i4_wpred_log_wdc, in hme_compute_stim_injected_distortion_for_all_parts()
5026 S32 i4_noise_term; in hme_compute_stim_injected_distortion_for_all_parts()
5057 S32 i4_bits_req; in hme_compute_stim_injected_distortion_for_all_parts()
5058 S32 part_id = pi4_valid_part_array[i2_count]; in hme_compute_stim_injected_distortion_for_all_parts()
5128 S32 i4_buf_stride, in hme_compute_sigmaX_and_sigmaXSquared()
5275 S32 wd_c, ht_c, wd_p, ht_p; in ihevce_16x16block_temporal_noise_detect()
5276 S32 blksize_p, blk_x, blk_y, i4_offset; in ihevce_16x16block_temporal_noise_detect()
5282 S32 i4_blk_wd; in ihevce_16x16block_temporal_noise_detect()
5283 S32 i4_blk_ht; in ihevce_16x16block_temporal_noise_detect()
5286 S32 i4_part_mask; in ihevce_16x16block_temporal_noise_detect()
5287 S32 *pi4_valid_part_ids; in ihevce_16x16block_temporal_noise_detect()
5290 S32 ai4_valid_part_ids[TOT_NUM_PARTS + 1]; in ihevce_16x16block_temporal_noise_detect()
5294 S32 i4_pos_x; in ihevce_16x16block_temporal_noise_detect()
5295 S32 i4_pos_y; in ihevce_16x16block_temporal_noise_detect()
5298 S32 i4_inp_off, i4_ref_offset, i4_ref_stride; in ihevce_16x16block_temporal_noise_detect()
5308 S32 posx; in ihevce_16x16block_temporal_noise_detect()
5309 S32 posy; in ihevce_16x16block_temporal_noise_detect()
5310 S32 i4_num_results_to_proj; in ihevce_16x16block_temporal_noise_detect()
5311 S32 ai4_sad_grid[9 * TOT_NUM_PARTS]; in ihevce_16x16block_temporal_noise_detect()
5312 S32 i4_inp_stride; in ihevce_16x16block_temporal_noise_detect()
5508 S32 i4_mv_x, in hme_qpel_interp_avg_1pt()
5509 S32 i4_mv_y, in hme_qpel_interp_avg_1pt()
5510 S32 i4_buf_id, in hme_qpel_interp_avg_1pt()
5512 S32 *pi4_final_stride) in hme_qpel_interp_avg_1pt()
5516 S32 i4_mv_x_frac, i4_mv_y_frac, i4_offset; in hme_qpel_interp_avg_1pt()
5575 interp_prms_t *ps_prms, S32 i4_mv_x, S32 i4_mv_y, U08 **ppu1_final, S32 *pi4_final_stride) in hme_qpel_interp_avg_2pt_vert_with_reuse()
5583 interp_prms_t *ps_prms, S32 i4_mv_x, S32 i4_mv_y, U08 **ppu1_final, S32 *pi4_final_stride) in hme_qpel_interp_avg_2pt_horz_with_reuse()
5662 S32 hme_part_mask_populator( in hme_part_mask_populator()
5664 S32 i4_inp_stride, in hme_part_mask_populator()
5685 S32 i4_part_mask = in hme_part_mask_populator()