Lines Matching refs:best_mv
311 MV *bestmv = &x->best_mv.as_mv; \
739 MV *bestmv = &x->best_mv.as_mv; in av1_find_best_sub_pixel_tree()
1026 const MV *best_mv, int *cost_list) { in calc_int_cost_list() argument
1031 const int br = best_mv->row; in calc_int_cost_list()
1032 const int bc = best_mv->col; in calc_int_cost_list()
1069 const MV *best_mv, int *cost_list, in calc_int_sad_list() argument
1076 const int br = best_mv->row; in calc_int_sad_list()
1077 const int bc = best_mv->col; in calc_int_sad_list()
1367 x->best_mv.as_mv.row = br; in pattern_search()
1368 x->best_mv.as_mv.col = bc; in pattern_search()
1372 int av1_get_mvpred_var(const MACROBLOCK *x, const MV *best_mv, in av1_get_mvpred_var() argument
1378 const MV mv = { best_mv->row * 8, best_mv->col * 8 }; in av1_get_mvpred_var()
1381 return vfp->vf(what->buf, what->stride, get_buf_from_mv(in_what, best_mv), in av1_get_mvpred_var()
1388 int av1_get_mvpred_av_var(const MACROBLOCK *x, const MV *best_mv, in av1_get_mvpred_av_var() argument
1394 const MV mv = { best_mv->row * 8, best_mv->col * 8 }; in av1_get_mvpred_av_var()
1397 return vfp->svaf(get_buf_from_mv(in_what, best_mv), in_what->stride, 0, 0, in av1_get_mvpred_av_var()
1404 int av1_get_mvpred_mask_var(const MACROBLOCK *x, const MV *best_mv, in av1_get_mvpred_mask_var() argument
1412 const MV mv = { best_mv->row * 8, best_mv->col * 8 }; in av1_get_mvpred_mask_var()
1416 get_buf_from_mv(in_what, best_mv), in_what->stride, in av1_get_mvpred_mask_var()
1564 static int exhuastive_mesh_search(MACROBLOCK *x, MV *ref_mv, MV *best_mv, in exhuastive_mesh_search() argument
1581 *best_mv = fcenter_mv; in exhuastive_mesh_search()
1603 x->second_best_mv.as_mv = *best_mv; in exhuastive_mesh_search()
1604 *best_mv = mv; in exhuastive_mesh_search()
1625 x->second_best_mv.as_mv = *best_mv; in exhuastive_mesh_search()
1626 *best_mv = mv; in exhuastive_mesh_search()
1640 x->second_best_mv.as_mv = *best_mv; in exhuastive_mesh_search()
1641 *best_mv = mv; in exhuastive_mesh_search()
1654 MV *ref_mv, MV *best_mv, int search_param, in av1_diamond_search_sad_c() argument
1688 best_mv->row = ref_row; in av1_diamond_search_sad_c()
1689 best_mv->col = ref_col; in av1_diamond_search_sad_c()
1697 mvsad_err_cost(x, best_mv, &fcenter_mv, sad_per_bit); in av1_diamond_search_sad_c()
1706 all_in &= ((best_mv->row + ss[i].mv.row) > x->mv_limits.row_min); in av1_diamond_search_sad_c()
1707 all_in &= ((best_mv->row + ss[i + 1].mv.row) < x->mv_limits.row_max); in av1_diamond_search_sad_c()
1708 all_in &= ((best_mv->col + ss[i + 2].mv.col) > x->mv_limits.col_min); in av1_diamond_search_sad_c()
1709 all_in &= ((best_mv->col + ss[i + 3].mv.col) < x->mv_limits.col_max); in av1_diamond_search_sad_c()
1728 const MV this_mv = { best_mv->row + ss[i].mv.row, in av1_diamond_search_sad_c()
1729 best_mv->col + ss[i].mv.col }; in av1_diamond_search_sad_c()
1742 const MV this_mv = { best_mv->row + ss[i].mv.row, in av1_diamond_search_sad_c()
1743 best_mv->col + ss[i].mv.col }; in av1_diamond_search_sad_c()
1762 x->second_best_mv.as_mv = *best_mv; in av1_diamond_search_sad_c()
1763 best_mv->row += ss[best_site].mv.row; in av1_diamond_search_sad_c()
1764 best_mv->col += ss[best_site].mv.col; in av1_diamond_search_sad_c()
1769 const MV this_mv = { best_mv->row + ss[best_site].mv.row, in av1_diamond_search_sad_c()
1770 best_mv->col + ss[best_site].mv.col }; in av1_diamond_search_sad_c()
1779 best_mv->row += ss[best_site].mv.row; in av1_diamond_search_sad_c()
1780 best_mv->col += ss[best_site].mv.col; in av1_diamond_search_sad_c()
1810 x->best_mv.as_mv = temp_mv; in full_pixel_diamond()
1833 x->best_mv.as_mv = temp_mv; in full_pixel_diamond()
1841 MV best_mv = x->best_mv.as_mv; in full_pixel_diamond() local
1842 thissme = av1_refining_search_sad(x, &best_mv, sadpb, search_range, fn_ptr, in full_pixel_diamond()
1845 thissme = av1_get_mvpred_var(x, &best_mv, ref_mv, fn_ptr, 1); in full_pixel_diamond()
1848 x->best_mv.as_mv = best_mv; in full_pixel_diamond()
1854 calc_int_cost_list(x, ref_mv, sadpb, fn_ptr, &x->best_mv.as_mv, cost_list); in full_pixel_diamond()
2017 MV *best_mv = &x->best_mv.as_mv; in av1_refining_search_8p_c() local
2025 clamp_mv(best_mv, x->mv_limits.col_min, x->mv_limits.col_max, in av1_refining_search_8p_c()
2029 get_buf_from_mv(in_what, best_mv), in_what->stride, in av1_refining_search_8p_c()
2031 mvsad_err_cost(x, best_mv, &fcenter_mv, error_per_bit); in av1_refining_search_8p_c()
2034 fn_ptr->sdaf(what->buf, what->stride, get_buf_from_mv(in_what, best_mv), in av1_refining_search_8p_c()
2036 mvsad_err_cost(x, best_mv, &fcenter_mv, error_per_bit); in av1_refining_search_8p_c()
2049 const MV mv = { best_mv->row + neighbors[j].coord.row, in av1_refining_search_8p_c()
2050 best_mv->col + neighbors[j].coord.col }; in av1_refining_search_8p_c()
2077 best_mv->row += neighbors[best_site].coord.row; in av1_refining_search_8p_c()
2078 best_mv->col += neighbors[best_site].coord.col; in av1_refining_search_8p_c()
2368 full_pixel_exhaustive(cpi, x, &x->best_mv.as_mv, error_per_bit, in av1_full_pixel_search()
2373 x->best_mv.as_mv = tmp_mv_ex; in av1_full_pixel_search()
2397 var_ex = full_pixel_exhaustive(cpi, x, &x->best_mv.as_mv, error_per_bit, in av1_full_pixel_search()
2401 x->best_mv.as_mv = tmp_mv_ex; in av1_full_pixel_search()
2406 var = av1_get_mvpred_var(x, &x->best_mv.as_mv, ref_mv, fn_ptr, 1); in av1_full_pixel_search()
2467 x->second_best_mv = x->best_mv; in av1_full_pixel_search()
2468 x->best_mv.as_mv = best_hash_mv; in av1_full_pixel_search()
2742 const int32_t *mask, const MV *best_mv, in get_obmc_mvpred_var() argument
2748 const MV mv = { best_mv->row * 8, best_mv->col * 8 }; in get_obmc_mvpred_var()
2751 return vfp->ovf(get_buf_from_mv(in_what, best_mv), in_what->stride, wsrc, in get_obmc_mvpred_var()
2804 MV *ref_mv, MV *best_mv, int search_param, in obmc_diamond_search_sad() argument
2828 *best_mv = *ref_mv; in obmc_diamond_search_sad()
2832 mvsad_err_cost(x, best_mv, &fcenter_mv, sad_per_bit); in obmc_diamond_search_sad()
2838 const MV mv = { best_mv->row + ss[i].mv.row, in obmc_diamond_search_sad()
2839 best_mv->col + ss[i].mv.col }; in obmc_diamond_search_sad()
2856 best_mv->row += ss[best_site].mv.row; in obmc_diamond_search_sad()
2857 best_mv->col += ss[best_site].mv.col; in obmc_diamond_search_sad()
2862 const MV this_mv = { best_mv->row + ss[best_site].mv.row, in obmc_diamond_search_sad()
2863 best_mv->col + ss[best_site].mv.col }; in obmc_diamond_search_sad()
2871 best_mv->row += ss[best_site].mv.row; in obmc_diamond_search_sad()
2872 best_mv->col += ss[best_site].mv.col; in obmc_diamond_search_sad()
2937 MV best_mv = *dst_mv; in obmc_full_pixel_diamond() local
2938 thissme = obmc_refining_search_sad(x, wsrc, mask, &best_mv, sadpb, in obmc_full_pixel_diamond()
2941 thissme = get_obmc_mvpred_var(x, wsrc, mask, &best_mv, ref_mv, fn_ptr, 1, in obmc_full_pixel_diamond()
2945 *dst_mv = best_mv; in obmc_full_pixel_diamond()
3150 x->best_mv.as_mv.row *= 8; in av1_simple_motion_search()
3151 x->best_mv.as_mv.col *= 8; in av1_simple_motion_search()
3154 mbmi->mv[0].as_mv = x->best_mv.as_mv; in av1_simple_motion_search()