Lines Matching refs:i4_tot_cost

719             uni_cost = ps_pu_node1->i4_tot_cost;  in hme_compute_pred_and_evaluate_bi()
720 cur_iter_best_cost = ps_pu_node1->i4_tot_cost; in hme_compute_pred_and_evaluate_bi()
846 uni_cost = ps_pu_node1->i4_tot_cost; in hme_compute_pred_and_evaluate_bi()
847 cur_iter_best_cost = ps_pu_node2[i].i4_tot_cost; in hme_compute_pred_and_evaluate_bi()
1042 uni_cost = ps_pu_node1->i4_tot_cost; in hme_compute_pred_and_evaluate_bi()
1058 S32 i4_sad = ps_pu_node1->i4_tot_cost - ps_pu_node1->i4_mv_cost; in hme_compute_pred_and_evaluate_bi()
1186 ps_part_type_result->as_pu_results[j].i4_tot_cost = bi_cost; in hme_compute_pred_and_evaluate_bi()
1200 ps_part_type_result->i4_tot_cost = tot_cost; in hme_compute_pred_and_evaluate_bi()
1407 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_evalsatd_update_2_best_results_pt_pu_16x16() local
1427 i4_tot_cost = CLIP_S16(i4_sad + i4_mv_cost); in hme_evalsatd_update_2_best_results_pt_pu_16x16()
1436 if(i4_tot_cost < second_best_node_cost) in hme_evalsatd_update_2_best_results_pt_pu_16x16()
1444 if(i4_tot_cost < best_node_cost) in hme_evalsatd_update_2_best_results_pt_pu_16x16()
1448 else if(i4_tot_cost == ps_subpel_refine_ctxt->i2_tot_cost[0][index]) in hme_evalsatd_update_2_best_results_pt_pu_16x16()
1454 ps_subpel_refine_ctxt->i2_tot_cost[1][index] = i4_tot_cost; in hme_evalsatd_update_2_best_results_pt_pu_16x16()
1473 ps_subpel_refine_ctxt->i2_tot_cost[0][index] = i4_tot_cost; in hme_evalsatd_update_2_best_results_pt_pu_16x16()
1570 S32 i4_count = 0, i4_sad, i4_mv_cost, i4_tot_cost; in hme_evalsatd_update_1_best_result_pt_pu_16x16() local
1590 i4_tot_cost = CLIP_S16(i4_sad + i4_mv_cost); in hme_evalsatd_update_1_best_result_pt_pu_16x16()
1599 if(i4_tot_cost < second_best_node_cost) in hme_evalsatd_update_1_best_result_pt_pu_16x16()
1607 if(i4_tot_cost < best_node_cost) in hme_evalsatd_update_1_best_result_pt_pu_16x16()
1611 else if(i4_tot_cost == ps_subpel_refine_ctxt->i2_tot_cost[0][index]) in hme_evalsatd_update_1_best_result_pt_pu_16x16()
1617 ps_subpel_refine_ctxt->i2_tot_cost[1][index] = i4_tot_cost; in hme_evalsatd_update_1_best_result_pt_pu_16x16()
1625 ps_subpel_refine_ctxt->i2_tot_cost[0][index] = i4_tot_cost; in hme_evalsatd_update_1_best_result_pt_pu_16x16()
2321 S32 ai4_sad_grid[17], i4_tot_cost; in hme_subpel_refine_search_node_high_speed() local
2469 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2470 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2472 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2505 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2506 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2508 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2541 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2542 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2544 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2577 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2578 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2580 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2611 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2612 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2614 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2764 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2765 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2768 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2800 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2801 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2804 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2833 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2834 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2837 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2867 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
2868 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
2871 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
2892 ps_search_node->i4_tot_cost = i4_min_cost; in hme_subpel_refine_search_node_high_speed()
2938 S32 ai4_sad_grid[9][17], i4_tot_cost; in hme_subpel_refine_search_node_high_speed() local
3084 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3085 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3087 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3118 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3120 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3122 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3152 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3154 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3156 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3187 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3189 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3191 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3221 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3223 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3225 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3262 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3264 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3266 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3299 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3301 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3303 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3336 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3338 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3340 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3372 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3374 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3376 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3428 return (ps_search_results->aps_part_results[search_idx][part_id][0].i4_tot_cost); in hme_subpel_refine_search_node_high_speed()
3446 return (ps_search_results->aps_part_results[search_idx][part_id][1].i4_tot_cost); in hme_subpel_refine_search_node_high_speed()
3565 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3566 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3569 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3592 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3593 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3596 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3620 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3621 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3624 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3649 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3650 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3653 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3688 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3690 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3693 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3721 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3723 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3726 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3754 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3756 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3759 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3789 i4_tot_cost = s_err_prms.pi4_sad_grid[part_id]; in hme_subpel_refine_search_node_high_speed()
3791 if(i4_tot_cost < i4_min_cost) in hme_subpel_refine_search_node_high_speed()
3794 i4_min_cost = i4_tot_cost; in hme_subpel_refine_search_node_high_speed()
3829 ps_search_node->i4_tot_cost = i4_min_cost; in hme_subpel_refine_search_node_high_speed()
3876 ps_best_node[0].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[0][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()
3895 ps_best_node[1].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[1][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()
3912 (ps_subpel_refine_ctxt->i2_tot_cost[0][index] < ps_best_node[1].i4_tot_cost)) in hme_subpel_refine_struct_to_search_results_struct_converter()
3914 if(ps_subpel_refine_ctxt->i2_tot_cost[1][index] < ps_best_node[0].i4_tot_cost) in hme_subpel_refine_struct_to_search_results_struct_converter()
3919 ps_best_node[0].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[0][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()
3935 ps_best_node[1].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[1][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()
3948 else if(ps_subpel_refine_ctxt->i2_tot_cost[1][index] > ps_best_node[0].i4_tot_cost) in hme_subpel_refine_struct_to_search_results_struct_converter()
3950 if(ps_subpel_refine_ctxt->i2_tot_cost[0][index] >= ps_best_node[0].i4_tot_cost) in hme_subpel_refine_struct_to_search_results_struct_converter()
3955 ps_best_node[1].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[0][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()
3968 else if(ps_subpel_refine_ctxt->i2_tot_cost[0][index] < ps_best_node[0].i4_tot_cost) in hme_subpel_refine_struct_to_search_results_struct_converter()
3975 ps_best_node[0].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[0][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()
3992 (ps_subpel_refine_ctxt->i2_tot_cost[0][index] < ps_best_node[0].i4_tot_cost)) in hme_subpel_refine_struct_to_search_results_struct_converter()
3997 ps_best_node[0].i4_tot_cost = ps_subpel_refine_ctxt->i2_tot_cost[0][index]; in hme_subpel_refine_struct_to_search_results_struct_converter()