Home
last modified time | relevance | path

Searched refs:as_mv (Results 1 – 25 of 35) sorted by relevance

12

/external/libvpx/libvpx/vp8/encoder/
Dmcomp.c36 …return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + mvcost[1][(mv->as_mv.col - ref->as_mv.… in vp8_mv_bit_cost()
43 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + in mv_err_cost()
44 mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) in mv_err_cost()
54 return ((mvsadcost[0][(mv->as_mv.row - ref->as_mv.row)] + in mvsad_err_cost()
55 mvsadcost[1][(mv->as_mv.col - ref->as_mv.col)]) in mvsad_err_cost()
213 int rr = ref_mv->as_mv.row >> 1, rc = ref_mv->as_mv.col >> 1; in vp8_find_best_sub_pixel_step_iteratively()
214 int br = bestmv->as_mv.row * 4, bc = bestmv->as_mv.col * 4; in vp8_find_best_sub_pixel_step_iteratively()
225 (ref_mv->as_mv.col >> 1) - ((1 << mvlong_width) - 1)); in vp8_find_best_sub_pixel_step_iteratively()
227 (ref_mv->as_mv.col >> 1) + ((1 << mvlong_width) - 1)); in vp8_find_best_sub_pixel_step_iteratively()
229 (ref_mv->as_mv.row >> 1) - ((1 << mvlong_width) - 1)); in vp8_find_best_sub_pixel_step_iteratively()
[all …]
Dpickinter.c58 bestmv->as_mv.row <<= 3; in vp8_skip_fractional_mv_step()
59 bestmv->as_mv.col <<= 3; in vp8_skip_fractional_mv_step()
77 int xoffset = this_mv.as_mv.col & 7; in vp8_get_inter_mbpred_error()
78 int yoffset = this_mv.as_mv.row & 7; in vp8_get_inter_mbpred_error()
80 in_what += (this_mv.as_mv.row >> 3) * pre_stride + (this_mv.as_mv.col >> 3); in vp8_get_inter_mbpred_error()
399 x->MVcount[0][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.row - in update_mvcount()
400 best_ref_mv->as_mv.row) >> 1)]++; in update_mvcount()
401 x->MVcount[1][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.col - in update_mvcount()
402 best_ref_mv->as_mv.col) >> 1)]++; in update_mvcount()
448 (*parent_ref_mv).as_mv.row = store_mode_info[parent_mb_index].mv.as_mv.row in get_lower_res_motion_info()
[all …]
Dmr_dissim.c35 mvx[cnt] = x->mbmi.mv.as_mv.row; \
36 mvy[cnt] = x->mbmi.mv.as_mv.col; \
43 mvx[cnt] = x->mbmi.mv.as_mv.row; \
44 mvy[cnt] = x->mbmi.mv.as_mv.col; \
195 mmvx = MAX(abs(min_mvx - here->mbmi.mv.as_mv.row), in vp8_cal_dissimilarity()
196 abs(max_mvx - here->mbmi.mv.as_mv.row)); in vp8_cal_dissimilarity()
197 mmvy = MAX(abs(min_mvy - here->mbmi.mv.as_mv.col), in vp8_cal_dissimilarity()
198 abs(max_mvy - here->mbmi.mv.as_mv.col)); in vp8_cal_dissimilarity()
Drdopt.c478 int mv_row = x->e_mbd.mode_info_context->mbmi.mv.as_mv.row; in VP8_UVSSE()
479 int mv_col = x->e_mbd.mode_info_context->mbmi.mv.as_mv.col; in VP8_UVSSE()
1223 mvp_full.as_mv.row = bsi->mvp.as_mv.row >>3; in rd_check_segment()
1224 mvp_full.as_mv.col = bsi->mvp.as_mv.col >>3; in rd_check_segment()
1305 …if (((mode_mv[this_mode].as_mv.row >> 3) < x->mv_row_min) || ((mode_mv[this_mode].as_mv.row >> 3) … in rd_check_segment()
1306 …((mode_mv[this_mode].as_mv.col >> 3) < x->mv_col_min) || ((mode_mv[this_mode].as_mv.col >> 3) > x-… in rd_check_segment()
1359 bsi->mvs[i].as_mv = x->partition_info->bmi[i].mv.as_mv; in rd_check_segment()
1419 int col_min = ((best_ref_mv->as_mv.col+7)>>3) - MAX_FULL_PEL_VAL; in vp8_rd_pick_best_mbsegmentation()
1420 int row_min = ((best_ref_mv->as_mv.row+7)>>3) - MAX_FULL_PEL_VAL; in vp8_rd_pick_best_mbsegmentation()
1421 int col_max = (best_ref_mv->as_mv.col>>3) + MAX_FULL_PEL_VAL; in vp8_rd_pick_best_mbsegmentation()
[all …]
Dtemporal_filter.c167 best_ref_mv1_full.as_mv.col = best_ref_mv1.as_mv.col >>3; in vp8_temporal_filter_find_matching_mb_c()
168 best_ref_mv1_full.as_mv.row = best_ref_mv1.as_mv.row >>3; in vp8_temporal_filter_find_matching_mb_c()
289 mbd->block[0].bmi.mv.as_mv.row = 0; in vp8_temporal_filter_iterate_c()
290 mbd->block[0].bmi.mv.as_mv.col = 0; in vp8_temporal_filter_iterate_c()
327 mbd->block[0].bmi.mv.as_mv.row, in vp8_temporal_filter_iterate_c()
328 mbd->block[0].bmi.mv.as_mv.col, in vp8_temporal_filter_iterate_c()
Dfirstpass.c463 ref_mv_full.as_mv.col = ref_mv->as_mv.col>>3; in first_pass_motion_search()
464 ref_mv_full.as_mv.row = ref_mv->as_mv.row>>3; in first_pass_motion_search()
474 best_mv->row = tmp_mv.as_mv.row; in first_pass_motion_search()
475 best_mv->col = tmp_mv.as_mv.col; in first_pass_motion_search()
500 best_mv->row = tmp_mv.as_mv.row; in first_pass_motion_search()
501 best_mv->col = tmp_mv.as_mv.col; in first_pass_motion_search()
648 d->bmi.mv.as_mv.row = 0; in vp8_first_pass()
649 d->bmi.mv.as_mv.col = 0; in vp8_first_pass()
658 &d->bmi.mv.as_mv, lst_yv12, in vp8_first_pass()
673 d->bmi.mv.as_mv.row = tmp_mv.row; in vp8_first_pass()
[all …]
/external/libvpx/libvpx/vp8/common/
Dfindnearmv.h30 mvp->as_mv.row *= -1; in mv_bias()
31 mvp->as_mv.col *= -1; in mv_bias()
39 if (mv->as_mv.col < (xd->mb_to_left_edge - LEFT_TOP_MARGIN)) in vp8_clamp_mv2()
40 mv->as_mv.col = xd->mb_to_left_edge - LEFT_TOP_MARGIN; in vp8_clamp_mv2()
41 else if (mv->as_mv.col > xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN) in vp8_clamp_mv2()
42 mv->as_mv.col = xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN; in vp8_clamp_mv2()
44 if (mv->as_mv.row < (xd->mb_to_top_edge - LEFT_TOP_MARGIN)) in vp8_clamp_mv2()
45 mv->as_mv.row = xd->mb_to_top_edge - LEFT_TOP_MARGIN; in vp8_clamp_mv2()
46 else if (mv->as_mv.row > xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN) in vp8_clamp_mv2()
47 mv->as_mv.row = xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN; in vp8_clamp_mv2()
[all …]
Dreconinter.c131 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in vp8_build_inter_predictors_b()
133 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) in vp8_build_inter_predictors_b()
135 sppf(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, pred_ptr, pitch); in vp8_build_inter_predictors_b()
154 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors4b()
156 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) in build_inter_predictors4b()
158 …x->subpixel_predict8x8(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, dst, dst… in build_inter_predictors4b()
169 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors2b()
171 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) in build_inter_predictors2b()
173 …x->subpixel_predict8x4(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, dst, dst… in build_inter_predictors2b()
185 … ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors_b()
[all …]
Ddebugmodes.c119 … fprintf(mvs, "%5d:%-5d", mi[mb_index].mbmi.mv.as_mv.row / 2, mi[mb_index].mbmi.mv.as_mv.col / 2); in vp8_print_modes_and_motion_vectors()
146 …fprintf(mvs, "%3d:%-3d ", mi[mb_index].bmi[bindex].mv.as_mv.row, mi[mb_index].bmi[bindex].mv.as_mv in vp8_print_modes_and_motion_vectors()
Dfindnearmv.c142 inv->as_mv.row = src->as_mv.row * -1; in invert_and_clamp_mvs()
143 inv->as_mv.col = src->as_mv.col * -1; in invert_and_clamp_mvs()
Dmfqe.c259 map[i] &= (mode_info_context->bmi[ndx[i][j]].mv.as_mv.row <= 2 && in qualify_inter_mb()
260 mode_info_context->bmi[ndx[i][j]].mv.as_mv.col <= 2); in qualify_inter_mb()
267 abs(mode_info_context->mbmi.mv.as_mv.row) <= 2 && in qualify_inter_mb()
268 abs(mode_info_context->mbmi.mv.as_mv.col) <= 2); in qualify_inter_mb()
/external/libvpx/libvpx/vp9/common/
Dvp9_reconinter.c105 MV res = { round_mv_comp_q4(mi->bmi[0].as_mv[idx].as_mv.row + in mi_mv_pred_q4()
106 mi->bmi[1].as_mv[idx].as_mv.row + in mi_mv_pred_q4()
107 mi->bmi[2].as_mv[idx].as_mv.row + in mi_mv_pred_q4()
108 mi->bmi[3].as_mv[idx].as_mv.row), in mi_mv_pred_q4()
109 round_mv_comp_q4(mi->bmi[0].as_mv[idx].as_mv.col + in mi_mv_pred_q4()
110 mi->bmi[1].as_mv[idx].as_mv.col + in mi_mv_pred_q4()
111 mi->bmi[2].as_mv[idx].as_mv.col + in mi_mv_pred_q4()
112 mi->bmi[3].as_mv[idx].as_mv.col) }; in mi_mv_pred_q4()
121 MV res = { round_mv_comp_q2(mi->bmi[block0].as_mv[idx].as_mv.row + in mi_mv_pred_q2()
122 mi->bmi[block1].as_mv[idx].as_mv.row), in mi_mv_pred_q2()
[all …]
Dvp9_mvref_common.c108 clamp_mv_ref(&mv_ref_list[i].as_mv, xd); in find_mv_refs_idx()
136 lower_mv_precision(&mvlist[i].as_mv, allow_hp); in vp9_find_best_ref_mvs()
137 clamp_mv2(&mvlist[i].as_mv, xd); in vp9_find_best_ref_mvs()
165 nearest->as_int = bmi[0].as_mv[ref].as_int; in vp9_append_sub8x8_mvs_for_idx()
174 candidates[0] = bmi[1].as_mv[ref]; in vp9_append_sub8x8_mvs_for_idx()
175 candidates[1] = bmi[0].as_mv[ref]; in vp9_append_sub8x8_mvs_for_idx()
179 nearest->as_int = bmi[2].as_mv[ref].as_int; in vp9_append_sub8x8_mvs_for_idx()
Dvp9_mvref_common.h141 .as_mv[which_mv] in get_sub_block_mv()
152 mv.as_mv.row *= -1; in scale_mv()
153 mv.as_mv.col *= -1; in scale_mv()
Dvp9_debugmodes.c69 fprintf(mvs, "%4d:%4d ", mi[mi_index]->mbmi.mv[0].as_mv.row, in vp9_print_modes_and_motion_vectors()
70 mi[mi_index]->mbmi.mv[0].as_mv.col); in vp9_print_modes_and_motion_vectors()
/external/libvpx/libvpx/vp8/decoder/
Derror_concealment.c187 new_row = row - bmi->mv.as_mv.row; in vp8_calculate_overlaps()
188 new_col = col - bmi->mv.as_mv.col; in vp8_calculate_overlaps()
259 col_acc += overlaps[i].overlap * overlaps[i].bmi->mv.as_mv.col; in estimate_mv()
260 row_acc += overlaps[i].overlap * overlaps[i].bmi->mv.as_mv.row; in estimate_mv()
266 bmi->mv.as_mv.col = col_acc / overlap_sum; in estimate_mv()
267 bmi->mv.as_mv.row = row_acc / overlap_sum; in estimate_mv()
271 bmi->mv.as_mv.col = 0; in estimate_mv()
272 bmi->mv.as_mv.row = 0; in estimate_mv()
288 MV * const filtered_mv = &(mi->mbmi.mv.as_mv); in estimate_mb_mvs()
314 filtered_mv->col += bmi[i].mv.as_mv.col; in estimate_mb_mvs()
[all …]
Ddecodemv.c295 blockmv.as_mv.row = read_mvcomponent(bc, &mvc[0]) * 2; in decode_split_mv()
296 blockmv.as_mv.row += best_mv.as_mv.row; in decode_split_mv()
297 blockmv.as_mv.col = read_mvcomponent(bc, &mvc[1]) * 2; in decode_split_mv()
298 blockmv.as_mv.col += best_mv.as_mv.col; in decode_split_mv()
495 read_mv(bc, &mbmi_mv->as_mv, (const MV_CONTEXT *) mvc); in read_mb_modes_mv()
496 mbmi_mv->as_mv.row += near_mvs[near_index].as_mv.row; in read_mb_modes_mv()
497 mbmi_mv->as_mv.col += near_mvs[near_index].as_mv.col; in read_mb_modes_mv()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_temporal_filter.c151 MV *ref_mv = &x->e_mbd.mi[0]->bmi[0].as_mv[0].as_mv; in temporal_filter_find_matching_mb_c()
253 mbd->mi[0]->bmi[0].as_mv[0].as_mv.row = 0; in temporal_filter_iterate_c()
254 mbd->mi[0]->bmi[0].as_mv[0].as_mv.col = 0; in temporal_filter_iterate_c()
280 mbd->mi[0]->bmi[0].as_mv[0].as_mv.row, in temporal_filter_iterate_c()
281 mbd->mi[0]->bmi[0].as_mv[0].as_mv.col, in temporal_filter_iterate_c()
Dvp9_firstpass.c619 first_pass_motion_search(cpi, x, &best_ref_mv.as_mv, &mv.as_mv, in vp9_first_pass()
630 first_pass_motion_search(cpi, x, &zero_mv, &tmp_mv.as_mv, &tmp_err); in vp9_first_pass()
651 first_pass_motion_search(cpi, x, &zero_mv, &tmp_mv.as_mv, in vp9_first_pass()
706 mv.as_mv.row *= 8; in vp9_first_pass()
707 mv.as_mv.col *= 8; in vp9_first_pass()
716 sum_mvr += mv.as_mv.row; in vp9_first_pass()
717 sum_mvr_abs += abs(mv.as_mv.row); in vp9_first_pass()
718 sum_mvc += mv.as_mv.col; in vp9_first_pass()
719 sum_mvc_abs += abs(mv.as_mv.col); in vp9_first_pass()
720 sum_mvrs += mv.as_mv.row * mv.as_mv.row; in vp9_first_pass()
[all …]
Dvp9_pickmode.c104 clamp_mv_ref(&mv_ref_list[i].as_mv, xd); in mv_refs_rt()
120 const MV ref_mv = mbmi->ref_mvs[ref][0].as_mv; in combined_motion_search()
147 mvp_full = mbmi->ref_mvs[ref][x->mv_best_ref_index[ref]].as_mv; in combined_motion_search()
155 &tmp_mv->as_mv, INT_MAX, 0); in combined_motion_search()
163 mvp_full.row = tmp_mv->as_mv.row * 8; in combined_motion_search()
164 mvp_full.col = tmp_mv->as_mv.col * 8; in combined_motion_search()
175 cpi->find_fractional_mv_step(x, &tmp_mv->as_mv, &ref_mv, in combined_motion_search()
183 x->pred_mv[ref] = tmp_mv->as_mv; in combined_motion_search()
483 clamp_mv2(&frame_mv[NEARESTMV][ref_frame].as_mv, xd); in vp9_pick_inter_mode()
484 clamp_mv2(&frame_mv[NEARMV][ref_frame].as_mv, xd); in vp9_pick_inter_mode()
[all …]
Dvp9_rdopt.c1040 thismvcost += vp9_mv_bit_cost(&this_mv[0].as_mv, &best_ref_mv[0]->as_mv, in set_and_cost_bmi_mvs()
1044 thismvcost += vp9_mv_bit_cost(&this_mv[1].as_mv, &best_ref_mv[1]->as_mv, in set_and_cost_bmi_mvs()
1063 mic->bmi[i].as_mv[0].as_int = this_mv[0].as_int; in set_and_cost_bmi_mvs()
1065 mic->bmi[i].as_mv[1].as_int = this_mv[1].as_int; in set_and_cost_bmi_mvs()
1112 &mi->bmi[i].as_mv[ref].as_mv, in encode_inter_mb_segment()
1355 MV *const new_mv = &mode_mv[NEWMV][0].as_mv; in rd_pick_best_sub8x8_mode()
1370 bsi->mvp.as_int = mi->bmi[i - 1].as_mv[0].as_int; in rd_pick_best_sub8x8_mode()
1372 bsi->mvp.as_int = mi->bmi[i - 2].as_mv[0].as_int; in rd_pick_best_sub8x8_mode()
1378 max_mv = MAX(abs(bsi->mvp.as_mv.row), abs(bsi->mvp.as_mv.col)) >> 3; in rd_pick_best_sub8x8_mode()
1390 mvp_full.row = bsi->mvp.as_mv.row >> 3; in rd_pick_best_sub8x8_mode()
[all …]
Dvp9_rd.c384 pred_mv[0] = mbmi->ref_mvs[ref_frame][0].as_mv; in vp9_mv_pred()
385 pred_mv[1] = mbmi->ref_mvs[ref_frame][1].as_mv; in vp9_mv_pred()
390 this_mv.as_mv = pred_mv[i]; in vp9_mv_pred()
393 MAX(abs(this_mv.as_mv.row), abs(this_mv.as_mv.col)) >> 3); in vp9_mv_pred()
400 row_offset = this_mv.as_mv.row >> 3; in vp9_mv_pred()
401 col_offset = this_mv.as_mv.col >> 3; in vp9_mv_pred()
Dvp9_encodemv.c237 const MV *ref = &mbmi->ref_mvs[mbmi->ref_frame[i]][0].as_mv; in inc_mvs()
238 const MV diff = {mvs[i].as_mv.row - ref->row, in inc_mvs()
239 mvs[i].as_mv.col - ref->col}; in inc_mvs()
257 inc_mvs(mbmi, mi->bmi[i].as_mv, &cm->counts.mv); in vp9_update_mv_count()
/external/libavc/encoder/
Dih264e.h540 ih264e_mv_t as_mv[1]; member
558 ih264e_mv_t as_mv[1]; member
574 ih264e_mv_t as_mv[4]; member
595 ih264e_mv_t as_mv[16]; member
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c376 read_mv(r, &mv[i].as_mv, &ref_mv[i].as_mv, &cm->fc.nmvc, mv_counts, in assign_mv()
378 ret = ret && is_mv_valid(&mv[i].as_mv); in assign_mv()
497 mi->bmi[j].as_mv[0].as_int = block[0].as_int; in read_inter_block_mode_info()
499 mi->bmi[j].as_mv[1].as_int = block[1].as_int; in read_inter_block_mode_info()
510 mbmi->mv[0].as_int = mi->bmi[3].as_mv[0].as_int; in read_inter_block_mode_info()
511 mbmi->mv[1].as_int = mi->bmi[3].as_mv[1].as_int; in read_inter_block_mode_info()

12