Lines Matching refs:S32
143 S32 hme_cmp_nodes(search_node_t *ps_best_node1, search_node_t *ps_best_node2) in hme_cmp_nodes()
222 (((S32)cand->pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in compute_4x4_sads_for_16x16_blk()
413 S32 i4_ref_idx = 0, i; in hme_evalsad_grid_pu_16x16()
414 S32 num_candts = 0; in hme_evalsad_grid_pu_16x16()
442 S32 *pi4_sad = ps_prms->pi4_sad_grid; in hme_evalsad_grid_npu_MxN()
443 S32 i, grid_count = 0; in hme_evalsad_grid_npu_MxN()
444 S32 step = ps_prms->i4_step; in hme_evalsad_grid_npu_MxN()
445 S32 x_off = step, y_off = step * ps_prms->i4_ref_stride; in hme_evalsad_grid_npu_MxN()
462 S32 sad = 0, j, k; in hme_evalsad_grid_npu_MxN()
498 sad += (ABS(((S32)pu1_inp[j] - (S32)pu1_ref[j]))); in hme_evalsad_pt_npu_MxN_8bit_compute()
508 S32 wd, ht; in hme_evalsad_pt_npu_MxN_8bit()
524 S32 src_strd; in compute_satd_8bit()
526 S32 dst_strd; in compute_satd_8bit()
527 S32 wd, ht; in compute_satd_8bit()
572 ps_prms->pi4_sad_grid[0] = (S32)u4_sad; in compute_satd_8bit()
609 S32 pred_lx, in hme_init_pred_ctxt_no_encode()
610 S32 lambda, in hme_init_pred_ctxt_no_encode()
611 S32 lambda_q_shift, in hme_init_pred_ctxt_no_encode()
771 S32 pred_lx, in hme_init_pred_ctxt_encode()
772 S32 lambda, in hme_init_pred_ctxt_encode()
773 S32 lambda_q_shift, in hme_init_pred_ctxt_encode()
783 S32 part_wd, part_ht, part_start_x, part_start_y; in hme_init_pred_ctxt_encode()
786 S32 part_id; in hme_init_pred_ctxt_encode()
789 S32 cu_start_x, cu_start_y; in hme_init_pred_ctxt_encode()
790 S32 shift = e_cu_size; in hme_init_pred_ctxt_encode()
793 S32 cu_tr_valid, cu_bl_valid; in hme_init_pred_ctxt_encode()
795 S32 grid_stride = ps_mv_grid->i4_stride; in hme_init_pred_ctxt_encode()
821 S32 shift = 1 + e_cu_size; in hme_init_pred_ctxt_encode()
863 S32 tr_valid, bl_valid, is_vert; in hme_init_pred_ctxt_encode()
867 S32 part_num; in hme_init_pred_ctxt_encode()
955 S32 compute_mv_cost_explicit( in compute_mv_cost_explicit()
956 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_explicit()
961 S32 inp_shift = 2 - inp_mv_pel; in compute_mv_cost_explicit()
962 S32 pred_shift = 2 - ps_pred_ctxt->mv_pel; in compute_mv_cost_explicit()
963 S32 mv_p_x, mv_p_y; in compute_mv_cost_explicit()
965 S32 cost, ref_bits; in compute_mv_cost_explicit()
1034 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1); in compute_mv_cost_explicit()
1056 S32 compute_mv_cost_coarse( in compute_mv_cost_coarse()
1057 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_coarse()
1082 S32 compute_mv_cost_coarse_high_speed( in compute_mv_cost_coarse_high_speed()
1083 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_coarse_high_speed()
1085 S32 rnd, mvx, mvy, i4_search_idx; in compute_mv_cost_coarse_high_speed()
1086 S32 cost; in compute_mv_cost_coarse_high_speed()
1119 S32 compute_mv_cost_explicit_refine( in compute_mv_cost_explicit_refine()
1120 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_explicit_refine()
1124 S32 inp_shift = 2 - inp_mv_pel; in compute_mv_cost_explicit_refine()
1125 S32 pred_shift = 2 - ps_pred_ctxt->mv_pel; in compute_mv_cost_explicit_refine()
1126 S32 mv_p_x, mv_p_y; in compute_mv_cost_explicit_refine()
1128 S32 cost, ref_bits; in compute_mv_cost_explicit_refine()
1144 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1); in compute_mv_cost_explicit_refine()
1167 S32 compute_mv_cost_refine( in compute_mv_cost_refine()
1168 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_refine()
1173 S32 compute_mv_cost_implicit( in compute_mv_cost_implicit()
1174 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_implicit()
1181 S32 inp_shift = 2 - inp_mv_pel; in compute_mv_cost_implicit()
1182 S32 pred_shift; /* = 2 - ps_pred_ctxt->mv_pel;*/ in compute_mv_cost_implicit()
1183 S32 ref_bits, cost; in compute_mv_cost_implicit()
1184 S32 mv_p_x, mv_p_y; in compute_mv_cost_implicit()
1300 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift); in compute_mv_cost_implicit()
1301 S32 tot_cost = (cost * ps_pred_ctxt->lambda) << 1; in compute_mv_cost_implicit()
1308 S32 compute_mv_cost_implicit_high_speed( in compute_mv_cost_implicit_high_speed()
1309 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_implicit_high_speed()
1316 S32 inp_shift = 2 - inp_mv_pel; in compute_mv_cost_implicit_high_speed()
1317 S32 pred_shift; /* = 2 - ps_pred_ctxt->mv_pel; */ in compute_mv_cost_implicit_high_speed()
1318 S32 ref_bits, cost; in compute_mv_cost_implicit_high_speed()
1319 S32 mv_p_x, mv_p_y; in compute_mv_cost_implicit_high_speed()
1403 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1); in compute_mv_cost_implicit_high_speed()
1404 S32 tot_cost = (cost * ps_pred_ctxt->lambda); in compute_mv_cost_implicit_high_speed()
1410 S32 compute_mv_cost_implicit_high_speed_modified( in compute_mv_cost_implicit_high_speed_modified()
1411 search_node_t *ps_node, pred_ctxt_t *ps_pred_ctxt, PART_ID_T e_part_id, S32 inp_mv_pel) in compute_mv_cost_implicit_high_speed_modified()
1415 S32 inp_shift = 2 - inp_mv_pel; in compute_mv_cost_implicit_high_speed_modified()
1416 S32 pred_shift; /* = 2 - ps_pred_ctxt->mv_pel; */ in compute_mv_cost_implicit_high_speed_modified()
1417 S32 mv_p_x, mv_p_y; in compute_mv_cost_implicit_high_speed_modified()
1419 S32 cost, ref_bits; in compute_mv_cost_implicit_high_speed_modified()
1436 S32 rnd = 1 << (ps_pred_ctxt->lambda_q_shift - 1); in compute_mv_cost_implicit_high_speed_modified()
1448 S32 i4_min_cost = (MAX_32BIT_VAL), i4_search_idx; in hme_update_results_grid_pu_bestn_xtreme_speed()
1449 S32 num_results, i4_unique_id = -1, i4_grid_pt; in hme_update_results_grid_pu_bestn_xtreme_speed()
1451 S32 *pi4_valid_part_ids; in hme_update_results_grid_pu_bestn_xtreme_speed()
1452 S32 i4_step = ps_result_prms->i4_step; in hme_update_results_grid_pu_bestn_xtreme_speed()
1453 S32 i4_grid_mask, i, i4_min_id; in hme_update_results_grid_pu_bestn_xtreme_speed()
1454 S32 i4_tot_cost, i4_mv_cost, i4_sad, id; in hme_update_results_grid_pu_bestn_xtreme_speed()
1455 S32 *pi4_sad_grid = ps_result_prms->pi4_sad_grid; in hme_update_results_grid_pu_bestn_xtreme_speed()
1456 S32 grid_count = 0; in hme_update_results_grid_pu_bestn_xtreme_speed()
1457 S32 pred_lx; in hme_update_results_grid_pu_bestn_xtreme_speed()
1459 i4_min_id = (S32)PT_C; in hme_update_results_grid_pu_bestn_xtreme_speed()
1466 num_results = (S32)ps_search_results->u1_num_results_per_part; in hme_update_results_grid_pu_bestn_xtreme_speed()
1481 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_update_results_grid_pu_bestn_xtreme_speed()
1510 for(i4_grid_pt = 0; i4_grid_pt < (S32)NUM_GRID_PTS; i4_grid_pt++) in hme_update_results_grid_pu_bestn_xtreme_speed()
1561 S32 i4_min_cost = (MAX_32BIT_VAL), i4_search_idx; in hme_update_results_grid_pu_bestn()
1562 S32 num_results, i4_unique_id = -1, i4_grid_pt; in hme_update_results_grid_pu_bestn()
1564 S32 *pi4_valid_part_ids; in hme_update_results_grid_pu_bestn()
1565 S32 i4_step = ps_result_prms->i4_step; in hme_update_results_grid_pu_bestn()
1566 S32 i4_grid_mask, i4_count, i, i4_min_id; in hme_update_results_grid_pu_bestn()
1567 S32 i4_tot_cost, i4_mv_cost, i4_sad, id; in hme_update_results_grid_pu_bestn()
1568 S32 *pi4_sad_grid = ps_result_prms->pi4_sad_grid; in hme_update_results_grid_pu_bestn()
1569 S32 grid_count = 0; in hme_update_results_grid_pu_bestn()
1570 S32 pred_lx; in hme_update_results_grid_pu_bestn()
1572 i4_min_id = (S32)PT_C; in hme_update_results_grid_pu_bestn()
1579 num_results = (S32)ps_search_results->u1_num_results_per_part; in hme_update_results_grid_pu_bestn()
1590 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_update_results_grid_pu_bestn()
1598 for(i4_grid_pt = 0; i4_grid_pt < (S32)NUM_GRID_PTS; i4_grid_pt++) in hme_update_results_grid_pu_bestn()
1692 S32 i4_min_cost = (MAX_32BIT_VAL), i4_search_idx; in hme_update_results_grid_pu_bestn_no_encode()
1693 S32 num_results, i4_unique_id = -1, i4_grid_pt; in hme_update_results_grid_pu_bestn_no_encode()
1695 S32 *pi4_valid_part_ids; in hme_update_results_grid_pu_bestn_no_encode()
1696 S32 i4_step = ps_result_prms->i4_step; in hme_update_results_grid_pu_bestn_no_encode()
1697 S32 i4_grid_mask, i4_count, i, i4_min_id; in hme_update_results_grid_pu_bestn_no_encode()
1698 S32 i4_tot_cost, i4_mv_cost, i4_sad, id; in hme_update_results_grid_pu_bestn_no_encode()
1699 S32 *pi4_sad_grid = ps_result_prms->pi4_sad_grid; in hme_update_results_grid_pu_bestn_no_encode()
1700 S32 grid_count = 0; in hme_update_results_grid_pu_bestn_no_encode()
1701 S32 pred_lx; in hme_update_results_grid_pu_bestn_no_encode()
1703 i4_min_id = (S32)PT_C; in hme_update_results_grid_pu_bestn_no_encode()
1710 num_results = (S32)ps_search_results->u1_num_results_per_part; in hme_update_results_grid_pu_bestn_no_encode()
1722 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_update_results_grid_pu_bestn_no_encode()
1738 for(i4_grid_pt = 0; i4_grid_pt < (S32)NUM_GRID_PTS; i4_grid_pt++) in hme_update_results_grid_pu_bestn_no_encode()
1800 S32 eq_cost = 0; in hme_update_results_grid_pu_bestn_no_encode()
1868 S32 id, i4_search_idx = ps_result_prms->u1_pred_lx; in hme_update_results_pt_pu_best1_subpel_hs()
1869 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_update_results_pt_pu_best1_subpel_hs()
1870 S32 num_results, i; in hme_update_results_pt_pu_best1_subpel_hs()
1871 S32 *pi4_valid_part_ids; in hme_update_results_pt_pu_best1_subpel_hs()
1879 num_results = (S32)ps_search_results->u1_num_results_per_part; in hme_update_results_pt_pu_best1_subpel_hs()
1886 S32 update_required = 1; in hme_update_results_pt_pu_best1_subpel_hs()
1942 S32 id, i4_search_idx = ps_result_prms->u1_pred_lx; in hme_update_results_pt_pu_best1_subpel_hs_1()
1943 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_update_results_pt_pu_best1_subpel_hs_1()
1944 S32 num_results; in hme_update_results_pt_pu_best1_subpel_hs_1()
1945 S32 *pi4_valid_part_ids; in hme_update_results_pt_pu_best1_subpel_hs_1()
1953 num_results = (S32)ps_search_results->u1_num_results_per_part; in hme_update_results_pt_pu_best1_subpel_hs_1()
1960 S32 update_required = 0; in hme_update_results_pt_pu_best1_subpel_hs_1()
1972 S32 sdi_value = 0; in hme_update_results_pt_pu_best1_subpel_hs_1()
2063 PF_RESULT_FXN_T hme_get_result_fxn(S32 i4_grid_mask, S32 i4_part_mask, S32 i4_num_results) in hme_get_result_fxn()
2065 S32 i4_is_grid = (i4_grid_mask != 1); in hme_get_result_fxn()
2066 S32 i4_is_pu = ((i4_part_mask & (i4_part_mask - 1)) != 0); in hme_get_result_fxn()
2067 S32 i4_res_gt1 = (i4_num_results > 1); in hme_get_result_fxn()
2068 S32 id; in hme_get_result_fxn()
2081 S32 i4_ref_stride) in hme_calc_sad_and_2_best_results()
2083 S32 i4_candt; in hme_calc_sad_and_2_best_results()
2084 S32 i4_inp_off; in hme_calc_sad_and_2_best_results()
2085 S32 i4_ref_offset; in hme_calc_sad_and_2_best_results()
2086 S32 i4_num_nodes; in hme_calc_sad_and_2_best_results()
2088 S32 *pi4_sad_grid = ps_err_prms->pi4_sad_grid; in hme_calc_sad_and_2_best_results()
2089 S32 cur_buf_stride = ps_err_prms->i4_inp_stride; in hme_calc_sad_and_2_best_results()
2144 ((S32)pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in hme_calc_sad_and_2_best_results()
2187 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_calc_sad_and_2_best_results()
2188 S32 *pi4_valid_part_ids = &ps_mv_refine_ctxt->ai4_part_id[0]; in hme_calc_sad_and_2_best_results()
2189 S32 best_node_cost; in hme_calc_sad_and_2_best_results()
2190 S32 second_best_node_cost; in hme_calc_sad_and_2_best_results()
2194 S32 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_calc_sad_and_2_best_results()
2196 S32 pred_lx = i4_search_idx; in hme_calc_sad_and_2_best_results()
2202 S32 inp_shift = 2; in hme_calc_sad_and_2_best_results()
2203 S32 pred_shift = ps_pred_node_a->u1_subpel_done ? 0 : 2; in hme_calc_sad_and_2_best_results()
2204 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift; in hme_calc_sad_and_2_best_results()
2205 S32 lambda = ps_pred_ctxt->lambda; in hme_calc_sad_and_2_best_results()
2206 S32 rnd = 1 << (lambda_q_shift - 1); in hme_calc_sad_and_2_best_results()
2207 S32 mv_p_x = ps_pred_node_a->s_mv.i2_mvx; in hme_calc_sad_and_2_best_results()
2208 S32 mv_p_y = ps_pred_node_a->s_mv.i2_mvy; in hme_calc_sad_and_2_best_results()
2209 S32 ref_bits = in hme_calc_sad_and_2_best_results()
2234 S32 update_required = 0; in hme_calc_sad_and_2_best_results()
2235 S32 part_id = pi4_valid_part_ids[i4_count]; in hme_calc_sad_and_2_best_results()
2236 S32 index = (ps_mv_refine_ctxt->i4_num_valid_parts > 8) ? part_id : i4_count; in hme_calc_sad_and_2_best_results()
2327 S32 i4_candt; in hme_calc_sad_and_2_best_results_subpel()
2328 S32 i4_num_nodes; in hme_calc_sad_and_2_best_results_subpel()
2330 S32 *pi4_sad_grid = ps_err_prms->pi4_sad_grid; in hme_calc_sad_and_2_best_results_subpel()
2331 S32 cur_buf_stride = ps_err_prms->i4_inp_stride; in hme_calc_sad_and_2_best_results_subpel()
2370 ((S32)pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in hme_calc_sad_and_2_best_results_subpel()
2415 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_calc_sad_and_2_best_results_subpel()
2416 S32 *pi4_valid_part_ids = &ps_subpel_refine_ctxt->ai4_part_id[0]; in hme_calc_sad_and_2_best_results_subpel()
2417 S32 best_node_cost; in hme_calc_sad_and_2_best_results_subpel()
2418 S32 second_best_node_cost; in hme_calc_sad_and_2_best_results_subpel()
2425 S32 update_required = 0; in hme_calc_sad_and_2_best_results_subpel()
2426 S32 part_id = pi4_valid_part_ids[i4_count]; in hme_calc_sad_and_2_best_results_subpel()
2427 S32 index = (ps_subpel_refine_ctxt->i4_num_valid_parts > 8) ? part_id : i4_count; in hme_calc_sad_and_2_best_results_subpel()
2513 S32 i4_ref_stride) in hme_calc_stim_injected_sad_and_2_best_results()
2518 S32 i4_candt; in hme_calc_stim_injected_sad_and_2_best_results()
2519 S32 i4_count; in hme_calc_stim_injected_sad_and_2_best_results()
2520 S32 i4_inp_off; in hme_calc_stim_injected_sad_and_2_best_results()
2521 S32 i4_ref_offset; in hme_calc_stim_injected_sad_and_2_best_results()
2522 S32 i4_num_nodes; in hme_calc_stim_injected_sad_and_2_best_results()
2526 S32 *pi4_valid_part_ids; in hme_calc_stim_injected_sad_and_2_best_results()
2528 S32 *pi4_sad_grid = ps_err_prms->pi4_sad_grid; in hme_calc_stim_injected_sad_and_2_best_results()
2529 S32 cur_buf_stride = ps_err_prms->i4_inp_stride; in hme_calc_stim_injected_sad_and_2_best_results()
2583 ((S32)pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in hme_calc_stim_injected_sad_and_2_best_results()
2639 S32 i4_sad, i4_mv_cost, i4_tot_cost; in hme_calc_stim_injected_sad_and_2_best_results()
2640 S32 best_node_cost; in hme_calc_stim_injected_sad_and_2_best_results()
2641 S32 second_best_node_cost; in hme_calc_stim_injected_sad_and_2_best_results()
2647 S32 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_calc_stim_injected_sad_and_2_best_results()
2649 S32 pred_lx = i4_search_idx; in hme_calc_stim_injected_sad_and_2_best_results()
2655 S32 inp_shift = 2; in hme_calc_stim_injected_sad_and_2_best_results()
2656 S32 pred_shift = ps_pred_node_a->u1_subpel_done ? 0 : 2; in hme_calc_stim_injected_sad_and_2_best_results()
2657 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift; in hme_calc_stim_injected_sad_and_2_best_results()
2658 S32 lambda = ps_pred_ctxt->lambda; in hme_calc_stim_injected_sad_and_2_best_results()
2659 S32 rnd = 1 << (lambda_q_shift - 1); in hme_calc_stim_injected_sad_and_2_best_results()
2660 S32 mv_p_x = ps_pred_node_a->s_mv.i2_mvx; in hme_calc_stim_injected_sad_and_2_best_results()
2661 S32 mv_p_y = ps_pred_node_a->s_mv.i2_mvy; in hme_calc_stim_injected_sad_and_2_best_results()
2662 S32 ref_bits = in hme_calc_stim_injected_sad_and_2_best_results()
2684 S32 i4_stim_injected_sad; in hme_calc_stim_injected_sad_and_2_best_results()
2685 S32 i4_stim_injected_cost; in hme_calc_stim_injected_sad_and_2_best_results()
2686 S32 i4_noise_term; in hme_calc_stim_injected_sad_and_2_best_results()
2688 S32 i4_bits_req; in hme_calc_stim_injected_sad_and_2_best_results()
2690 S32 update_required = 0; in hme_calc_stim_injected_sad_and_2_best_results()
2691 S32 part_id = pi4_valid_part_ids[i4_count]; in hme_calc_stim_injected_sad_and_2_best_results()
2692 S32 index = (ps_mv_refine_ctxt->i4_num_valid_parts > 8) ? part_id : i4_count; in hme_calc_stim_injected_sad_and_2_best_results()
2696 S32 i4_inv_wt = ps_wt_inp_prms->a_inv_wpred_wt[ps_search_node->i1_ref_idx]; in hme_calc_stim_injected_sad_and_2_best_results()
2857 S32 i4_ref_stride) in hme_calc_sad_and_1_best_result()
2859 S32 i4_candt; in hme_calc_sad_and_1_best_result()
2860 S32 i4_inp_off; in hme_calc_sad_and_1_best_result()
2861 S32 i4_ref_offset; in hme_calc_sad_and_1_best_result()
2862 S32 i4_num_nodes; in hme_calc_sad_and_1_best_result()
2864 S32 *pi4_sad_grid = ps_err_prms->pi4_sad_grid; in hme_calc_sad_and_1_best_result()
2865 S32 cur_buf_stride = ps_err_prms->i4_inp_stride; in hme_calc_sad_and_1_best_result()
2920 ((S32)pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in hme_calc_sad_and_1_best_result()
2963 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_calc_sad_and_1_best_result()
2964 S32 *pi4_valid_part_ids = &ps_mv_refine_ctxt->ai4_part_id[0]; in hme_calc_sad_and_1_best_result()
2965 S32 best_node_cost; in hme_calc_sad_and_1_best_result()
2966 S32 second_best_node_cost; in hme_calc_sad_and_1_best_result()
2970 S32 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_calc_sad_and_1_best_result()
2972 S32 pred_lx = i4_search_idx; in hme_calc_sad_and_1_best_result()
2978 S32 inp_shift = 2; in hme_calc_sad_and_1_best_result()
2979 S32 pred_shift = ps_pred_node_a->u1_subpel_done ? 0 : 2; in hme_calc_sad_and_1_best_result()
2980 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift; in hme_calc_sad_and_1_best_result()
2981 S32 lambda = ps_pred_ctxt->lambda; in hme_calc_sad_and_1_best_result()
2982 S32 rnd = 1 << (lambda_q_shift - 1); in hme_calc_sad_and_1_best_result()
2983 S32 mv_p_x = ps_pred_node_a->s_mv.i2_mvx; in hme_calc_sad_and_1_best_result()
2984 S32 mv_p_y = ps_pred_node_a->s_mv.i2_mvy; in hme_calc_sad_and_1_best_result()
2985 S32 ref_bits = in hme_calc_sad_and_1_best_result()
3010 S32 update_required = 0; in hme_calc_sad_and_1_best_result()
3011 S32 part_id = pi4_valid_part_ids[i4_count]; in hme_calc_sad_and_1_best_result()
3012 S32 index = (ps_mv_refine_ctxt->i4_num_valid_parts > 8) ? part_id : i4_count; in hme_calc_sad_and_1_best_result()
3089 S32 i4_ref_stride) in hme_calc_stim_injected_sad_and_1_best_result()
3094 S32 i4_candt; in hme_calc_stim_injected_sad_and_1_best_result()
3095 S32 i4_count; in hme_calc_stim_injected_sad_and_1_best_result()
3096 S32 i4_inp_off; in hme_calc_stim_injected_sad_and_1_best_result()
3097 S32 i4_ref_offset; in hme_calc_stim_injected_sad_and_1_best_result()
3098 S32 i4_num_nodes; in hme_calc_stim_injected_sad_and_1_best_result()
3102 S32 *pi4_valid_part_ids; in hme_calc_stim_injected_sad_and_1_best_result()
3104 S32 *pi4_sad_grid = ps_err_prms->pi4_sad_grid; in hme_calc_stim_injected_sad_and_1_best_result()
3105 S32 cur_buf_stride = ps_err_prms->i4_inp_stride; in hme_calc_stim_injected_sad_and_1_best_result()
3159 ((S32)pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in hme_calc_stim_injected_sad_and_1_best_result()
3215 S32 i4_sad, i4_mv_cost, i4_tot_cost; in hme_calc_stim_injected_sad_and_1_best_result()
3216 S32 best_node_cost; in hme_calc_stim_injected_sad_and_1_best_result()
3217 S32 second_best_node_cost; in hme_calc_stim_injected_sad_and_1_best_result()
3223 S32 i4_search_idx = (S32)ps_result_prms->i1_ref_idx; in hme_calc_stim_injected_sad_and_1_best_result()
3225 S32 pred_lx = i4_search_idx; in hme_calc_stim_injected_sad_and_1_best_result()
3231 S32 inp_shift = 2; in hme_calc_stim_injected_sad_and_1_best_result()
3232 S32 pred_shift = ps_pred_node_a->u1_subpel_done ? 0 : 2; in hme_calc_stim_injected_sad_and_1_best_result()
3233 S32 lambda_q_shift = ps_pred_ctxt->lambda_q_shift; in hme_calc_stim_injected_sad_and_1_best_result()
3234 S32 lambda = ps_pred_ctxt->lambda; in hme_calc_stim_injected_sad_and_1_best_result()
3235 S32 rnd = 1 << (lambda_q_shift - 1); in hme_calc_stim_injected_sad_and_1_best_result()
3236 S32 mv_p_x = ps_pred_node_a->s_mv.i2_mvx; in hme_calc_stim_injected_sad_and_1_best_result()
3237 S32 mv_p_y = ps_pred_node_a->s_mv.i2_mvy; in hme_calc_stim_injected_sad_and_1_best_result()
3238 S32 ref_bits = in hme_calc_stim_injected_sad_and_1_best_result()
3260 S32 i4_stim_injected_sad; in hme_calc_stim_injected_sad_and_1_best_result()
3261 S32 i4_stim_injected_cost; in hme_calc_stim_injected_sad_and_1_best_result()
3262 S32 i4_noise_term; in hme_calc_stim_injected_sad_and_1_best_result()
3264 S32 i4_bits_req; in hme_calc_stim_injected_sad_and_1_best_result()
3266 S32 update_required = 0; in hme_calc_stim_injected_sad_and_1_best_result()
3267 S32 part_id = pi4_valid_part_ids[i4_count]; in hme_calc_stim_injected_sad_and_1_best_result()
3268 S32 index = (ps_mv_refine_ctxt->i4_num_valid_parts > 8) ? part_id : i4_count; in hme_calc_stim_injected_sad_and_1_best_result()
3272 S32 i4_inv_wt = ps_wt_inp_prms->a_inv_wpred_wt[ps_search_node->i1_ref_idx]; in hme_calc_stim_injected_sad_and_1_best_result()
3410 S32 i4_candt; in hme_calc_sad_and_1_best_result_subpel()
3411 S32 i4_num_nodes; in hme_calc_sad_and_1_best_result_subpel()
3413 S32 *pi4_sad_grid = ps_err_prms->pi4_sad_grid; in hme_calc_sad_and_1_best_result_subpel()
3415 S32 cur_buf_stride = ps_err_prms->i4_inp_stride; in hme_calc_sad_and_1_best_result_subpel()
3454 ((S32)pu1_ref_ptr[(z_ref + d)]) - ((S32)pu1_cur_ptr[(z_cur + d)]))); in hme_calc_sad_and_1_best_result_subpel()
3499 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_calc_sad_and_1_best_result_subpel()
3500 S32 *pi4_valid_part_ids = &ps_subpel_refine_ctxt->ai4_part_id[0]; in hme_calc_sad_and_1_best_result_subpel()
3501 S32 best_node_cost; in hme_calc_sad_and_1_best_result_subpel()
3502 S32 second_best_node_cost; in hme_calc_sad_and_1_best_result_subpel()
3509 S32 update_required = 0; in hme_calc_sad_and_1_best_result_subpel()
3510 S32 part_id = pi4_valid_part_ids[i4_count]; in hme_calc_sad_and_1_best_result_subpel()
3511 S32 index = (ps_subpel_refine_ctxt->i4_num_valid_parts > 8) ? part_id : i4_count; in hme_calc_sad_and_1_best_result_subpel()
3605 S32 i4_ref_stride) in hme_calc_pt_sad_and_result_explicit()
3620 i4_num_results = (S32)ps_search_prms->ps_search_results->u1_num_results_per_part; in hme_calc_pt_sad_and_result_explicit()
3709 S32 i; in hme_set_mvp_node()
3714 S32 inp_shift = 2; in hme_set_mvp_node()
3715 S32 pred_shift; in hme_set_mvp_node()
3716 S32 ref_bits; in hme_set_mvp_node()
3717 S32 mv_p_x, mv_p_y; in hme_set_mvp_node()