Home
last modified time | relevance | path

Searched refs:mv_limits (Results 1 – 21 of 21) sorted by relevance

/external/libvpx/libvpx/vp9/encoder/
Dvp9_mcomp.c37 void vp9_set_mv_search_range(MvLimits *mv_limits, const MV *mv) { in vp9_set_mv_search_range() argument
50 if (mv_limits->col_min < col_min) mv_limits->col_min = col_min; in vp9_set_mv_search_range()
51 if (mv_limits->col_max > col_max) mv_limits->col_max = col_max; in vp9_set_mv_search_range()
52 if (mv_limits->row_min < row_min) mv_limits->row_min = row_min; in vp9_set_mv_search_range()
53 if (mv_limits->row_max > row_max) mv_limits->row_max = row_max; in vp9_set_mv_search_range()
291 vp9_set_subpel_mv_search_range(&subpel_mv_limits, &x->mv_limits, ref_mv); \
775 vp9_set_subpel_mv_search_range(&subpel_mv_limits, &x->mv_limits, ref_mv); in vp9_find_best_sub_pixel_tree()
940 static INLINE int check_bounds(const MvLimits *mv_limits, int row, int col, in check_bounds() argument
942 return ((row - range) >= mv_limits->row_min) & in check_bounds()
943 ((row + range) <= mv_limits->row_max) & in check_bounds()
[all …]
Dvp9_mbgraph.c33 const MvLimits tmp_mv_limits = x->mv_limits; in do_16x16_motion_iteration()
41 vp9_set_mv_search_range(&x->mv_limits, ref_mv); in do_16x16_motion_iteration()
53 x->mv_limits = tmp_mv_limits; in do_16x16_motion_iteration()
230 x->mv_limits.row_min = -BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
231 x->mv_limits.row_max = (cm->mb_rows - 1) * 8 + BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
251 x->mv_limits.col_min = -BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
252 x->mv_limits.col_max = (cm->mb_cols - 1) * 8 + BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
271 x->mv_limits.col_min -= 16; in update_mbgraph_frame_stats()
272 x->mv_limits.col_max -= 16; in update_mbgraph_frame_stats()
281 x->mv_limits.row_min -= 16; in update_mbgraph_frame_stats()
[all …]
Dvp9_temporal_filter.c510 const MvLimits tmp_mv_limits = x->mv_limits; in temporal_filter_find_matching_mb_c()
532 vp9_set_mv_search_range(&x->mv_limits, &best_ref_mv1); in temporal_filter_find_matching_mb_c()
539 x->mv_limits = tmp_mv_limits; in temporal_filter_find_matching_mb_c()
564 vp9_set_mv_search_range(&x->mv_limits, &best_ref_mv1); in temporal_filter_find_matching_mb_c()
570 x->mv_limits = tmp_mv_limits; in temporal_filter_find_matching_mb_c()
640 td->mb.mv_limits.row_min = -((mb_row * BH) + (17 - 2 * VP9_INTERP_EXTEND)); in vp9_temporal_filter_iterate_row_c()
641 td->mb.mv_limits.row_max = in vp9_temporal_filter_iterate_row_c()
652 td->mb.mv_limits.col_min = -((mb_col * BW) + (17 - 2 * VP9_INTERP_EXTEND)); in vp9_temporal_filter_iterate_row_c()
653 td->mb.mv_limits.col_max = in vp9_temporal_filter_iterate_row_c()
Dvp9_block.h127 MvLimits mv_limits; member
Dvp9_pickmode.c169 const MvLimits tmp_mv_limits = x->mv_limits; in combined_motion_search()
183 vp9_set_mv_search_range(&x->mv_limits, &ref_mv); in combined_motion_search()
187 x->mv_limits.col_min = VPXMAX(x->mv_limits.col_min, -10); in combined_motion_search()
188 x->mv_limits.row_min = VPXMAX(x->mv_limits.row_min, -10); in combined_motion_search()
189 x->mv_limits.col_max = VPXMIN(x->mv_limits.col_max, 10); in combined_motion_search()
190 x->mv_limits.row_max = VPXMIN(x->mv_limits.row_max, 10); in combined_motion_search()
216 x->mv_limits = tmp_mv_limits; in combined_motion_search()
2733 const MvLimits tmp_mv_limits = x->mv_limits; in vp9_pick_inter_mode_sub8x8()
2744 vp9_set_mv_search_range(&x->mv_limits, in vp9_pick_inter_mode_sub8x8()
2752 x->mv_limits = tmp_mv_limits; in vp9_pick_inter_mode_sub8x8()
Dvp9_mcomp.h44 void vp9_set_mv_search_range(MvLimits *mv_limits, const MV *mv);
Dvp9_rdopt.c1625 static INLINE int mv_check_bounds(const MvLimits *mv_limits, const MV *mv) { in mv_check_bounds() argument
1626 return (mv->row >> 3) < mv_limits->row_min || in mv_check_bounds()
1627 (mv->row >> 3) > mv_limits->row_max || in mv_check_bounds()
1628 (mv->col >> 3) < mv_limits->col_min || in mv_check_bounds()
1629 (mv->col >> 3) > mv_limits->col_max; in mv_check_bounds()
1766 const MvLimits tmp_mv_limits = x->mv_limits; in joint_motion_search()
1799 vp9_set_mv_search_range(&x->mv_limits, &ref_mv[id].as_mv); in joint_motion_search()
1815 x->mv_limits = tmp_mv_limits; in joint_motion_search()
1955 const MvLimits tmp_mv_limits = x->mv_limits; in rd_pick_best_sub8x8_mode()
1999 vp9_set_mv_search_range(&x->mv_limits, &bsi->ref_mv[0]->as_mv); in rd_pick_best_sub8x8_mode()
[all …]
Dvp9_firstpass.c872 x->mv_limits.row_min = -((mb_row * 16) + BORDER_MV_PIXELS_B16); in vp9_first_pass_encode_tile_mb_row()
873 x->mv_limits.row_max = in vp9_first_pass_encode_tile_mb_row()
1033 x->mv_limits.col_min = -((mb_col * 16) + BORDER_MV_PIXELS_B16); in vp9_first_pass_encode_tile_mb_row()
1034 x->mv_limits.col_max = in vp9_first_pass_encode_tile_mb_row()
Dvp9_encodeframe.c260 MvLimits *const mv_limits = &x->mv_limits; in set_offsets() local
271 mv_limits->row_min = -(((mi_row + mi_height) * MI_SIZE) + VP9_INTERP_EXTEND); in set_offsets()
272 mv_limits->col_min = -(((mi_col + mi_width) * MI_SIZE) + VP9_INTERP_EXTEND); in set_offsets()
273 mv_limits->row_max = (cm->mi_rows - mi_row) * MI_SIZE + VP9_INTERP_EXTEND; in set_offsets()
274 mv_limits->col_max = (cm->mi_cols - mi_col) * MI_SIZE + VP9_INTERP_EXTEND; in set_offsets()
3503 const MvLimits tmp_mv_limits = x->mv_limits; in ml_predict_var_rd_paritioning()
3514 vp9_set_mv_search_range(&x->mv_limits, &ref_mv); in ml_predict_var_rd_paritioning()
3520 x->mv_limits = tmp_mv_limits; in ml_predict_var_rd_paritioning()
Dvp9_encoder.c5587 const MvLimits tmp_mv_limits = x->mv_limits;
5610 vp9_set_mv_search_range(&x->mv_limits, &best_ref_mv1);
5630 x->mv_limits = tmp_mv_limits;
5859 x->mv_limits.row_min = -((mi_row * MI_SIZE) + (17 - 2 * VP9_INTERP_EXTEND));
5860 x->mv_limits.row_max =
5862 x->mv_limits.col_min = -((mi_col * MI_SIZE) + (17 - 2 * VP9_INTERP_EXTEND));
5863 x->mv_limits.col_max =
/external/libaom/libaom/av1/encoder/
Dmcomp.c43 void av1_set_mv_search_range(MvLimits *mv_limits, const MV *mv) { in av1_set_mv_search_range() argument
56 if (mv_limits->col_min < col_min) mv_limits->col_min = col_min; in av1_set_mv_search_range()
57 if (mv_limits->col_max > col_max) mv_limits->col_max = col_max; in av1_set_mv_search_range()
58 if (mv_limits->row_min < row_min) mv_limits->row_min = row_min; in av1_set_mv_search_range()
59 if (mv_limits->row_max > row_max) mv_limits->row_max = row_max; in av1_set_mv_search_range()
62 static void set_subpel_mv_search_range(const MvLimits *mv_limits, int *col_min, in set_subpel_mv_search_range() argument
66 const int minc = AOMMAX(mv_limits->col_min * 8, ref_mv->col - max_mv); in set_subpel_mv_search_range()
67 const int maxc = AOMMIN(mv_limits->col_max * 8, ref_mv->col + max_mv); in set_subpel_mv_search_range()
68 const int minr = AOMMAX(mv_limits->row_min * 8, ref_mv->row - max_mv); in set_subpel_mv_search_range()
69 const int maxr = AOMMIN(mv_limits->row_max * 8, ref_mv->row + max_mv); in set_subpel_mv_search_range()
[all …]
Dmbgraph.c34 const MvLimits tmp_mv_limits = x->mv_limits; in do_16x16_motion_iteration()
42 av1_set_mv_search_range(&x->mv_limits, ref_mv); in do_16x16_motion_iteration()
78 x->mv_limits = tmp_mv_limits; in do_16x16_motion_iteration()
237 x->mv_limits.row_min = -BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
238 x->mv_limits.row_max = (cm->mb_rows - 1) * 8 + BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
256 x->mv_limits.col_min = -BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
257 x->mv_limits.col_max = (cm->mb_cols - 1) * 8 + BORDER_MV_PIXELS_B16; in update_mbgraph_frame_stats()
273 x->mv_limits.col_min -= 16; in update_mbgraph_frame_stats()
274 x->mv_limits.col_max -= 16; in update_mbgraph_frame_stats()
280 x->mv_limits.row_min -= 16; in update_mbgraph_frame_stats()
[all …]
Dpartition_strategy.h96 x->mv_limits.row_min = in set_offsets_for_motion_search()
98 x->mv_limits.col_min = -(((mi_col + mi_width) * MI_SIZE) + AOM_INTERP_EXTEND); in set_offsets_for_motion_search()
99 x->mv_limits.row_max = (cm->mi_rows - mi_row) * MI_SIZE + AOM_INTERP_EXTEND; in set_offsets_for_motion_search()
100 x->mv_limits.col_max = (cm->mi_cols - mi_col) * MI_SIZE + AOM_INTERP_EXTEND; in set_offsets_for_motion_search()
Dtpl_model.c78 const MvLimits tmp_mv_limits = x->mv_limits; in motion_compensated_prediction()
95 av1_set_mv_search_range(&x->mv_limits, &best_ref_mv1); in motion_compensated_prediction()
103 x->mv_limits = tmp_mv_limits; in motion_compensated_prediction()
190 x->mv_limits.col_min = -((mi_col * MI_SIZE) + (17 - 2 * AOM_INTERP_EXTEND)); in mode_estimation()
191 x->mv_limits.col_max = in mode_estimation()
443 x->mv_limits.row_min = -((mi_row * MI_SIZE) + (17 - 2 * AOM_INTERP_EXTEND)); in mc_flow_dispenser()
444 x->mv_limits.row_max = in mc_flow_dispenser()
Dtemporal_filter.c672 MvLimits tmp_mv_limits = x->mv_limits; in temporal_filter_find_matching_mb_c()
693 av1_set_mv_search_range(&x->mv_limits, &best_ref_mv1); in temporal_filter_find_matching_mb_c()
701 x->mv_limits = tmp_mv_limits; in temporal_filter_find_matching_mb_c()
753 av1_set_mv_search_range(&x->mv_limits, &best_ref_mv1); in temporal_filter_find_matching_mb_c()
758 x->mv_limits = tmp_mv_limits; in temporal_filter_find_matching_mb_c()
833 cpi->td.mb.mv_limits.row_min = in temporal_filter_iterate_c()
835 cpi->td.mb.mv_limits.row_max = in temporal_filter_iterate_c()
845 cpi->td.mb.mv_limits.col_min = in temporal_filter_iterate_c()
847 cpi->td.mb.mv_limits.col_max = in temporal_filter_iterate_c()
Dfirstpass.c441 x->mv_limits.row_min = -((mb_row * 16) + BORDER_MV_PIXELS_B16); in av1_first_pass()
442 x->mv_limits.row_max = in av1_first_pass()
537 x->mv_limits.col_min = -((mb_col * 16) + BORDER_MV_PIXELS_B16); in av1_first_pass()
538 x->mv_limits.col_max = in av1_first_pass()
Dmcomp.h60 void av1_set_mv_search_range(MvLimits *mv_limits, const MV *mv);
Drdopt.c6625 static INLINE int mv_check_bounds(const MvLimits *mv_limits, const MV *mv) { in mv_check_bounds() argument
6626 return (mv->row >> 3) < mv_limits->row_min || in mv_check_bounds()
6627 (mv->row >> 3) > mv_limits->row_max || in mv_check_bounds()
6628 (mv->col >> 3) < mv_limits->col_min || in mv_check_bounds()
6629 (mv->col >> 3) > mv_limits->col_max; in mv_check_bounds()
6701 MvLimits tmp_mv_limits = x->mv_limits; in joint_motion_search()
6763 av1_set_mv_search_range(&x->mv_limits, &ref_mv[id].as_mv); in joint_motion_search()
6785 x->mv_limits = tmp_mv_limits; in joint_motion_search()
7068 MvLimits tmp_mv_limits = x->mv_limits; in single_motion_search()
7138 av1_set_mv_search_range(&x->mv_limits, &ref_mv); in single_motion_search()
[all …]
Dblock.h320 MvLimits mv_limits; member
Dencodeframe.c232 x->mv_limits.row_min = in set_offsets_without_segment_id()
234 x->mv_limits.col_min = -(((mi_col + mi_width) * MI_SIZE) + AOM_INTERP_EXTEND); in set_offsets_without_segment_id()
235 x->mv_limits.row_max = (cm->mi_rows - mi_row) * MI_SIZE + AOM_INTERP_EXTEND; in set_offsets_without_segment_id()
236 x->mv_limits.col_max = (cm->mi_cols - mi_col) * MI_SIZE + AOM_INTERP_EXTEND; in set_offsets_without_segment_id()
/external/libvpx/libvpx/vp9/encoder/x86/
Dvp9_diamond_search_sad_avx.c78 const int_mv maxmv = pack_int_mv(x->mv_limits.row_max, x->mv_limits.col_max); in vp9_diamond_search_sad_avx()
80 const int_mv minmv = pack_int_mv(x->mv_limits.row_min, x->mv_limits.col_min); in vp9_diamond_search_sad_avx()