Lines Matching refs:ref_mv
58 const MV *ref_mv) { in vp9_set_subpel_mv_search_range() argument
60 ref_mv->col - MAX_FULL_PEL_VAL * 8); in vp9_set_subpel_mv_search_range()
62 ref_mv->col + MAX_FULL_PEL_VAL * 8); in vp9_set_subpel_mv_search_range()
64 ref_mv->row - MAX_FULL_PEL_VAL * 8); in vp9_set_subpel_mv_search_range()
66 ref_mv->row + MAX_FULL_PEL_VAL * 8); in vp9_set_subpel_mv_search_range()
171 const MV ref_mv = { rr, rc }; \
180 tmpmse += mv_err_cost(&mv, &ref_mv, mvjcost, mvcost, error_per_bit); \
198 const MV ref_mv = { rr, rc }; \
205 if ((v = mv_err_cost(&mv, &ref_mv, mvjcost, mvcost, error_per_bit) + \
281 int rr = ref_mv->row; \
282 int rc = ref_mv->col; \
291 vp9_set_subpel_mv_search_range(&subpel_mv_limits, &x->mv_limits, ref_mv); \
301 const MACROBLOCKD *xd, const MV *bestmv, const MV *ref_mv, in setup_center_error() argument
324 besterr += mv_err_cost(bestmv, ref_mv, mvjcost, mvcost, error_per_bit); in setup_center_error()
338 besterr += mv_err_cost(bestmv, ref_mv, mvjcost, mvcost, error_per_bit); in setup_center_error()
371 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_skip_sub_pixel_tree() argument
377 besterr = setup_center_error(xd, bestmv, ref_mv, error_per_bit, vfp, z, in vp9_skip_sub_pixel_tree()
404 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_find_best_sub_pixel_tree_pruned_evenmore() argument
410 besterr = setup_center_error(xd, bestmv, ref_mv, error_per_bit, vfp, z, in vp9_find_best_sub_pixel_tree_pruned_evenmore()
455 if (allow_hp && use_mv_hp(ref_mv) && forced_stop == 0) { in vp9_find_best_sub_pixel_tree_pruned_evenmore()
470 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_find_best_sub_pixel_tree_pruned_more() argument
478 besterr = setup_center_error(xd, bestmv, ref_mv, error_per_bit, vfp, z, in vp9_find_best_sub_pixel_tree_pruned_more()
511 if (allow_hp && use_mv_hp(ref_mv) && forced_stop == 0) { in vp9_find_best_sub_pixel_tree_pruned_more()
532 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_find_best_sub_pixel_tree_pruned() argument
540 besterr = setup_center_error(xd, bestmv, ref_mv, error_per_bit, vfp, z, in vp9_find_best_sub_pixel_tree_pruned()
595 if (allow_hp && use_mv_hp(ref_mv) && forced_stop == 0) { in vp9_find_best_sub_pixel_tree_pruned()
690 const MV ref_mv = { rr, rc }; \
695 tmpmse += mv_err_cost(&mv, &ref_mv, mvjcost, mvcost, error_per_bit); \
713 const MV ref_mv = { rr, rc }; \
717 if ((v = mv_err_cost(&mv, &ref_mv, mvjcost, mvcost, error_per_bit) + \
732 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_find_best_sub_pixel_tree() argument
748 int rr = ref_mv->row; in vp9_find_best_sub_pixel_tree()
749 int rc = ref_mv->col; in vp9_find_best_sub_pixel_tree()
775 vp9_set_subpel_mv_search_range(&subpel_mv_limits, &x->mv_limits, ref_mv); in vp9_find_best_sub_pixel_tree()
781 if (!(allow_hp && use_mv_hp(ref_mv))) in vp9_find_best_sub_pixel_tree()
787 besterr = setup_center_error(xd, bestmv, ref_mv, error_per_bit, vfp, z, in vp9_find_best_sub_pixel_tree()
818 cost_array[idx] = thismse + mv_err_cost(&this_mv, ref_mv, mvjcost, in vp9_find_best_sub_pixel_tree()
854 cost_array[4] = thismse + mv_err_cost(&this_mv, ref_mv, mvjcost, mvcost, in vp9_find_best_sub_pixel_tree()
970 static INLINE void calc_int_cost_list(const MACROBLOCK *x, const MV *ref_mv, in calc_int_cost_list() argument
977 const MV fcenter_mv = { ref_mv->row >> 3, ref_mv->col >> 3 }; in calc_int_cost_list()
1020 const MACROBLOCK *x, MV *ref_mv, int search_param, int sad_per_bit, in vp9_pattern_search() argument
1039 clamp_mv(ref_mv, x->mv_limits.col_min, x->mv_limits.col_max, in vp9_pattern_search()
1041 br = ref_mv->row; in vp9_pattern_search()
1042 bc = ref_mv->col; in vp9_pattern_search()
1045 bestsad = vfp->sdf(what->buf, what->stride, get_buf_from_mv(in_what, ref_mv), in vp9_pattern_search()
1047 mvsad_err_cost(x, ref_mv, &fcenter_mv, sad_per_bit); in vp9_pattern_search()
1190 const MACROBLOCK *x, MV *ref_mv, int search_param, int sad_per_bit, in vp9_pattern_search_sad() argument
1209 clamp_mv(ref_mv, x->mv_limits.col_min, x->mv_limits.col_max, in vp9_pattern_search_sad()
1211 br = ref_mv->row; in vp9_pattern_search_sad()
1212 bc = ref_mv->col; in vp9_pattern_search_sad()
1219 bestsad = vfp->sdf(what->buf, what->stride, get_buf_from_mv(in_what, ref_mv), in vp9_pattern_search_sad()
1221 mvsad_err_cost(x, ref_mv, &fcenter_mv, sad_per_bit); in vp9_pattern_search_sad()
1508 static int hex_search(const MACROBLOCK *x, MV *ref_mv, int search_param, in hex_search() argument
1540 x, ref_mv, search_param, sad_per_bit, do_init_search, cost_list, vfp, in hex_search()
1544 static int bigdia_search(const MACROBLOCK *x, MV *ref_mv, int search_param, in bigdia_search() argument
1581 x, ref_mv, search_param, sad_per_bit, do_init_search, cost_list, vfp, in bigdia_search()
1585 static int square_search(const MACROBLOCK *x, MV *ref_mv, int search_param, in square_search() argument
1622 x, ref_mv, search_param, sad_per_bit, do_init_search, cost_list, vfp, in square_search()
1626 static int fast_hex_search(const MACROBLOCK *x, MV *ref_mv, int search_param, in fast_hex_search() argument
1631 return hex_search(x, ref_mv, VPXMAX(MAX_MVSEARCH_STEPS - 2, search_param), in fast_hex_search()
1636 static int fast_dia_search(const MACROBLOCK *x, MV *ref_mv, int search_param, in fast_dia_search() argument
1640 return bigdia_search(x, ref_mv, VPXMAX(MAX_MVSEARCH_STEPS - 2, search_param), in fast_dia_search()
1649 static int exhuastive_mesh_search(const MACROBLOCK *x, MV *ref_mv, MV *best_mv, in exhuastive_mesh_search() argument
1670 mvsad_err_cost(x, &fcenter_mv, ref_mv, sad_per_bit); in exhuastive_mesh_search()
1685 sad += mvsad_err_cost(x, &mv, ref_mv, sad_per_bit); in exhuastive_mesh_search()
1706 sads[i] + mvsad_err_cost(x, &mv, ref_mv, sad_per_bit); in exhuastive_mesh_search()
1720 sad += mvsad_err_cost(x, &mv, ref_mv, sad_per_bit); in exhuastive_mesh_search()
1913 MV *ref_mv, MV *best_mv, int search_param, in vp9_diamond_search_sad_c() argument
1944 clamp_mv(ref_mv, x->mv_limits.col_min, x->mv_limits.col_max, in vp9_diamond_search_sad_c()
1946 ref_row = ref_mv->row; in vp9_diamond_search_sad_c()
1947 ref_col = ref_mv->col; in vp9_diamond_search_sad_c()
2129 int mi_col, const MV *ref_mv) { in vp9_int_pro_motion_estimation() argument
2254 vp9_set_subpel_mv_search_range(&subpel_mv_limits, &x->mv_limits, ref_mv); in vp9_int_pro_motion_estimation()
2342 const MV *ref_mv, MV *dst_mv) { in full_pixel_diamond() argument
2346 step_param, sadpb, &n, fn_ptr, ref_mv); in full_pixel_diamond()
2348 bestsme = vp9_get_mvpred_var(x, &temp_mv, ref_mv, fn_ptr, 1); in full_pixel_diamond()
2363 ref_mv); in full_pixel_diamond()
2365 thissme = vp9_get_mvpred_var(x, &temp_mv, ref_mv, fn_ptr, 1); in full_pixel_diamond()
2382 ref_mv); in full_pixel_diamond()
2384 thissme = vp9_get_mvpred_var(x, &best_mv, ref_mv, fn_ptr, 1); in full_pixel_diamond()
2393 calc_int_cost_list(x, ref_mv, sadpb, fn_ptr, dst_mv, cost_list); in full_pixel_diamond()
2406 const MV *ref_mv, MV *dst_mv) { in full_pixel_exhaustive() argument
2409 MV f_ref_mv = { ref_mv->row >> 3, ref_mv->col >> 3 }; in full_pixel_exhaustive()
2447 bestsme = vp9_get_mvpred_var(x, &temp_mv, ref_mv, fn_ptr, 1); in full_pixel_exhaustive()
2452 calc_int_cost_list(x, ref_mv, sadpb, fn_ptr, dst_mv, cost_list); in full_pixel_exhaustive()
2541 int vp9_refining_search_sad(const MACROBLOCK *x, MV *ref_mv, int error_per_bit, in vp9_refining_search_sad() argument
2550 const uint8_t *best_address = get_buf_from_mv(in_what, ref_mv); in vp9_refining_search_sad()
2553 mvsad_err_cost(x, ref_mv, &fcenter_mv, error_per_bit); in vp9_refining_search_sad()
2558 const int all_in = ((ref_mv->row - 1) > x->mv_limits.row_min) & in vp9_refining_search_sad()
2559 ((ref_mv->row + 1) < x->mv_limits.row_max) & in vp9_refining_search_sad()
2560 ((ref_mv->col - 1) > x->mv_limits.col_min) & in vp9_refining_search_sad()
2561 ((ref_mv->col + 1) < x->mv_limits.col_max); in vp9_refining_search_sad()
2573 const MV mv = { ref_mv->row + neighbors[j].row, in vp9_refining_search_sad()
2574 ref_mv->col + neighbors[j].col }; in vp9_refining_search_sad()
2584 const MV mv = { ref_mv->row + neighbors[j].row, in vp9_refining_search_sad()
2585 ref_mv->col + neighbors[j].col }; in vp9_refining_search_sad()
2605 ref_mv->row += neighbors[best_site].row; in vp9_refining_search_sad()
2606 ref_mv->col += neighbors[best_site].col; in vp9_refining_search_sad()
2607 best_address = get_buf_from_mv(in_what, ref_mv); in vp9_refining_search_sad()
2616 int vp9_refining_search_8p_c(const MACROBLOCK *x, MV *ref_mv, int error_per_bit, in vp9_refining_search_8p_c() argument
2628 clamp_mv(ref_mv, x->mv_limits.col_min, x->mv_limits.col_max, in vp9_refining_search_8p_c()
2631 fn_ptr->sdaf(what->buf, what->stride, get_buf_from_mv(in_what, ref_mv), in vp9_refining_search_8p_c()
2633 mvsad_err_cost(x, ref_mv, &fcenter_mv, error_per_bit); in vp9_refining_search_8p_c()
2639 const MV mv = { ref_mv->row + neighbors[j].row, in vp9_refining_search_8p_c()
2640 ref_mv->col + neighbors[j].col }; in vp9_refining_search_8p_c()
2659 ref_mv->row += neighbors[best_site].row; in vp9_refining_search_8p_c()
2660 ref_mv->col += neighbors[best_site].col; in vp9_refining_search_8p_c()
2668 int error_per_bit, int *cost_list, const MV *ref_mv, in vp9_full_pixel_search() argument
2687 cost_list, fn_ptr, 1, ref_mv, tmp_mv); in vp9_full_pixel_search()
2691 cost_list, fn_ptr, 1, ref_mv, tmp_mv); in vp9_full_pixel_search()
2695 fn_ptr, 1, ref_mv, tmp_mv); in vp9_full_pixel_search()
2699 fn_ptr, 1, ref_mv, tmp_mv); in vp9_full_pixel_search()
2703 fn_ptr, 1, ref_mv, tmp_mv); in vp9_full_pixel_search()
2709 cost_list, fn_ptr, ref_mv, tmp_mv); in vp9_full_pixel_search()
2730 fn_ptr, ref_mv, &tmp_mv_ex); in vp9_full_pixel_search()
2738 var = vp9_get_mvpred_var(x, tmp_mv, ref_mv, fn_ptr, 1); in vp9_full_pixel_search()
2783 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_return_max_sub_pixel_mv() argument
2799 lower_mv_precision(bestmv, allow_hp && use_mv_hp(ref_mv)); in vp9_return_max_sub_pixel_mv()
2805 const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, in vp9_return_min_sub_pixel_mv() argument
2821 lower_mv_precision(bestmv, allow_hp && use_mv_hp(ref_mv)); in vp9_return_min_sub_pixel_mv()