Home
last modified time | relevance | path

Searched refs:this_mv (Results 1 – 20 of 20) sorted by relevance

/external/libvpx/libvpx/vp8/encoder/
Dmcomp.c373 int_mv this_mv; in vp8_find_best_sub_pixel_step() local
410 this_mv.as_mv.row = startmv.as_mv.row; in vp8_find_best_sub_pixel_step()
411 this_mv.as_mv.col = ((startmv.as_mv.col - 8) | 4); in vp8_find_best_sub_pixel_step()
414 left = thismse + mv_err_cost(&this_mv, ref_mv, mvcost, error_per_bit); in vp8_find_best_sub_pixel_step()
417 *bestmv = this_mv; in vp8_find_best_sub_pixel_step()
423 this_mv.as_mv.col += 8; in vp8_find_best_sub_pixel_step()
426 right = thismse + mv_err_cost(&this_mv, ref_mv, mvcost, error_per_bit); in vp8_find_best_sub_pixel_step()
429 *bestmv = this_mv; in vp8_find_best_sub_pixel_step()
436 this_mv.as_mv.col = startmv.as_mv.col; in vp8_find_best_sub_pixel_step()
437 this_mv.as_mv.row = ((startmv.as_mv.row - 8) | 4); in vp8_find_best_sub_pixel_step()
[all …]
Dpickinter.h28 unsigned int *sse, int_mv this_mv);
Dpickinter.c144 unsigned int *sse, int_mv this_mv) { in vp8_get_inter_mbpred_error() argument
152 int xoffset = this_mv.as_mv.col & 7; in vp8_get_inter_mbpred_error()
153 int yoffset = this_mv.as_mv.row & 7; in vp8_get_inter_mbpred_error()
155 in_what += (this_mv.as_mv.row >> 3) * pre_stride + (this_mv.as_mv.col >> 3); in vp8_get_inter_mbpred_error()
Drdopt.c811 B_PREDICTION_MODE this_mode, int_mv *this_mv, in labels2mode() argument
844 thismvcost = vp8_mv_bit_cost(this_mv, best_ref_mv, mvcost, 102); in labels2mode()
847 this_mv->as_int = col ? d[-1].bmi.mv.as_int : left_block_mv(mic, i); in labels2mode()
850 this_mv->as_int = in labels2mode()
853 case ZERO4X4: this_mv->as_int = 0; break; in labels2mode()
862 if (left_mv.as_int == this_mv->as_int) m = LEFT4X4; in labels2mode()
868 d->bmi.mv.as_int = this_mv->as_int; in labels2mode()
871 x->partition_info->bmi[i].mv.as_int = this_mv->as_int; in labels2mode()
/external/libvpx/libvpx/vp8/common/
Dfindnearmv.c54 int_mv this_mv; in vp8_find_near_mvs() local
56 this_mv.as_int = left->mbmi.mv.as_int; in vp8_find_near_mvs()
57 mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], refframe, &this_mv, in vp8_find_near_mvs()
60 if (this_mv.as_int != mv->as_int) { in vp8_find_near_mvs()
61 (++mv)->as_int = this_mv.as_int; in vp8_find_near_mvs()
74 int_mv this_mv; in vp8_find_near_mvs() local
76 this_mv.as_int = aboveleft->mbmi.mv.as_int; in vp8_find_near_mvs()
78 &this_mv, ref_frame_sign_bias); in vp8_find_near_mvs()
80 if (this_mv.as_int != mv->as_int) { in vp8_find_near_mvs()
81 (++mv)->as_int = this_mv.as_int; in vp8_find_near_mvs()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_mcomp.c625 const MACROBLOCKD *xd, const MV *this_mv, const struct scale_factors *sf, in accurate_sub_pel_search() argument
637 pred16, w, this_mv, sf, w, h, 0, kernel, in accurate_sub_pel_search()
651 vp9_build_inter_predictor(pre_address, y_stride, pred, w, this_mv, sf, w, h, in accurate_sub_pel_search()
670 vp9_build_inter_predictor(pre_address, y_stride, pred, w, this_mv, sf, w, h, in accurate_sub_pel_search()
799 MV this_mv; in vp9_find_best_sub_pixel_tree() local
800 this_mv.row = tr; in vp9_find_best_sub_pixel_tree()
801 this_mv.col = tc; in vp9_find_best_sub_pixel_tree()
804 thismse = accurate_sub_pel_search(xd, &this_mv, x->me_sf, kernel, vfp, 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()
839 MV this_mv = { tr, tc }; in vp9_find_best_sub_pixel_tree() local
[all …]
Dvp9_rd.c563 const MV *this_mv = &pred_mv[i]; in vp9_mv_pred() local
565 if (this_mv->row == INT16_MAX || this_mv->col == INT16_MAX) continue; in vp9_mv_pred()
567 fp_row = (this_mv->row + 3 + (this_mv->row >= 0)) >> 3; in vp9_mv_pred()
568 fp_col = (this_mv->col + 3 + (this_mv->col >= 0)) >> 3; in vp9_mv_pred()
569 max_mv = VPXMAX(max_mv, VPXMAX(abs(this_mv->row), abs(this_mv->col)) >> 3); in vp9_mv_pred()
Dvp9_rdopt.c1430 int i, PREDICTION_MODE mode, int_mv this_mv[2], in set_and_cost_bmi_mvs()
1445 this_mv[0].as_int = seg_mvs[mi->ref_frame[0]].as_int; in set_and_cost_bmi_mvs()
1446 thismvcost += vp9_mv_bit_cost(&this_mv[0].as_mv, &best_ref_mv[0]->as_mv, in set_and_cost_bmi_mvs()
1449 this_mv[1].as_int = seg_mvs[mi->ref_frame[1]].as_int; in set_and_cost_bmi_mvs()
1450 thismvcost += vp9_mv_bit_cost(&this_mv[1].as_mv, &best_ref_mv[1]->as_mv, in set_and_cost_bmi_mvs()
1456 this_mv[0].as_int = frame_mv[mode][mi->ref_frame[0]].as_int; in set_and_cost_bmi_mvs()
1458 this_mv[1].as_int = frame_mv[mode][mi->ref_frame[1]].as_int; in set_and_cost_bmi_mvs()
1462 this_mv[0].as_int = 0; in set_and_cost_bmi_mvs()
1463 if (is_compound) this_mv[1].as_int = 0; in set_and_cost_bmi_mvs()
1467 mi->bmi[i].as_mv[0].as_int = this_mv[0].as_int; in set_and_cost_bmi_mvs()
[all …]
Dvp9_encodeframe.c3062 static INLINE int get_motion_inconsistency(MOTION_DIRECTION this_mv, in get_motion_inconsistency() argument
3064 if (this_mv == that_mv) { in get_motion_inconsistency()
3067 return abs(this_mv - that_mv) == 2 ? 2 : 1; in get_motion_inconsistency()
3788 MOTION_DIRECTION this_mv; in rd_pick_partition() local
3792 this_mv = in rd_pick_partition()
3799 none_complexity += get_motion_inconsistency(this_mv, right_mv); in rd_pick_partition()
3806 none_complexity += get_motion_inconsistency(this_mv, bottom_mv); in rd_pick_partition()
Dvp9_encoder.c6334 MV this_mv = local
6340 full_mv.row = this_mv.row >> 3;
6341 full_mv.col = this_mv.col >> 3;
/external/libaom/libaom/av1/encoder/
Dmcomp.c186 MV this_mv = { r, c }; \
187 v = mv_err_cost(&this_mv, ref_mv, mvjcost, mvcost, error_per_bit); \
216 MV this_mv = { r, c }; \
218 xd, cm, mi_row, mi_col, &this_mv, vfp, src_address, src_stride, \
221 v = mv_err_cost(&this_mv, ref_mv, mvjcost, mvcost, error_per_bit); \
792 MV this_mv = { tr, tc }; in av1_find_best_sub_pixel_tree() local
796 xd, cm, mi_row, mi_col, &this_mv, vfp, src_address, src_stride, in av1_find_best_sub_pixel_tree()
807 cost_array[idx] = thismse + mv_err_cost(&this_mv, ref_mv, mvjcost, in av1_find_best_sub_pixel_tree()
828 MV this_mv = { tr, tc }; in av1_find_best_sub_pixel_tree() local
832 xd, cm, mi_row, mi_col, &this_mv, vfp, src_address, src_stride, in av1_find_best_sub_pixel_tree()
[all …]
Drd.c994 const MV *this_mv = &pred_mv[i]; in av1_mv_pred() local
996 fp_row = (this_mv->row + 3 + (this_mv->row >= 0)) >> 3; in av1_mv_pred()
997 fp_col = (this_mv->col + 3 + (this_mv->col >= 0)) >> 3; in av1_mv_pred()
998 max_mv = AOMMAX(max_mv, AOMMAX(abs(this_mv->row), abs(this_mv->col)) >> 3); in av1_mv_pred()
Dencodemv.c200 ref_mv = curr_ref_mv_stack[ref_mv_idx].this_mv; in av1_get_ref_mv_from_stack()
208 ref_mv = curr_ref_mv_stack[ref_mv_idx].this_mv; in av1_get_ref_mv_from_stack()
Dmcomp.h159 int mi_row, int mi_col, const MV *this_mv);
Drdopt.c7311 BLOCK_SIZE bsize, MV *this_mv, in compound_single_motion_search() argument
7362 *best_mv = *this_mv; in compound_single_motion_search()
7410 if (bestsme < INT_MAX) *this_mv = *best_mv; in compound_single_motion_search()
7414 *rate_mv += av1_mv_bit_cost(this_mv, &ref_mv.as_mv, x->nmv_vec_cost, in compound_single_motion_search()
7436 MV *this_mv = &cur_mv[ref_idx].as_mv; in compound_single_motion_search_interinter() local
7442 compound_single_motion_search(cpi, x, bsize, this_mv, mi_row, mi_col, in compound_single_motion_search_interinter()
7482 static INLINE void get_this_mv(int_mv *this_mv, PREDICTION_MODE this_mode,
7487 PREDICTION_MODE this_mode, int_mv this_mv) { in discount_newmv_test() argument
7488 if (this_mode == NEWMV && this_mv.as_int != 0 && in discount_newmv_test()
7510 ret &= global_mv.as_int != this_mv.as_int; in discount_newmv_test()
[all …]
Dbitstream.c1204 int_mv dv_ref = mbmi_ext->ref_mv_stack[INTRA_FRAME][0].this_mv; in write_intrabc_info()
/external/libaom/libaom/av1/common/
Dmvref_common.c94 if (ref_mv_stack[index].this_mv.as_int == this_refmv.as_int) break; in add_ref_mv_candidate()
100 ref_mv_stack[index].this_mv = this_refmv; in add_ref_mv_candidate()
121 if ((ref_mv_stack[index].this_mv.as_int == this_refmv[0].as_int) && in add_ref_mv_candidate()
129 ref_mv_stack[index].this_mv = this_refmv[0]; in add_ref_mv_candidate()
370 if (this_refmv.as_int == ref_mv_stack[idx].this_mv.as_int) break; in add_tpl_ref_mv()
376 ref_mv_stack[idx].this_mv.as_int = this_refmv.as_int; in add_tpl_ref_mv()
417 if (this_refmv.as_int == ref_mv_stack[idx].this_mv.as_int && in add_tpl_ref_mv()
426 ref_mv_stack[idx].this_mv.as_int = this_refmv.as_int; in add_tpl_ref_mv()
449 int_mv this_mv = candidate->mv[rf_idx]; in process_compound_ref_mv_candidate() local
452 this_mv.as_mv.row = -this_mv.as_mv.row; in process_compound_ref_mv_candidate()
[all …]
Dmv.h278 int_mv this_mv; member
/external/libvpx/libvpx/vp8/decoder/
Ddecodemv.c325 int_mv this_mv; in read_mb_modes_mv() local
327 this_mv.as_int = left->mbmi.mv.as_int; in read_mb_modes_mv()
329 &this_mv, ref_frame_sign_bias); in read_mb_modes_mv()
331 if (this_mv.as_int != nmv->as_int) { in read_mb_modes_mv()
332 (++nmv)->as_int = this_mv.as_int; in read_mb_modes_mv()
345 int_mv this_mv; in read_mb_modes_mv() local
347 this_mv.as_int = aboveleft->mbmi.mv.as_int; in read_mb_modes_mv()
349 &this_mv, ref_frame_sign_bias); in read_mb_modes_mv()
351 if (this_mv.as_int != nmv->as_int) { in read_mb_modes_mv()
352 (++nmv)->as_int = this_mv.as_int; in read_mb_modes_mv()
/external/libaom/libaom/av1/decoder/
Ddecodemv.c1311 nearestmv[0] = xd->ref_mv_stack[ref_frame][0].this_mv; in read_inter_block_mode_info()
1313 nearmv[0] = xd->ref_mv_stack[ref_frame][ref_mv_idx].this_mv; in read_inter_block_mode_info()
1325 xd->ref_mv_stack[mbmi->ref_frame[0]][1 + mbmi->ref_mv_idx].this_mv; in read_inter_block_mode_info()
1343 ref_mv[0] = xd->ref_mv_stack[ref_frame][ref_mv_idx].this_mv; in read_inter_block_mode_info()
1350 ref_mv[0] = xd->ref_mv_stack[ref_frame][mbmi->ref_mv_idx].this_mv; in read_inter_block_mode_info()