Lines Matching defs:mv

37 int vp8_mv_bit_cost(MV *mv, MV *ref, int *mvcost[2], int Weight)
43 return ((mvcost[0][(mv->row - ref->row) >> 1] + mvcost[1][(mv->col - ref->col) >> 1]) * Weight) >> 7;
46 static int mv_err_cost(MV *mv, MV *ref, int *mvcost[2], int error_per_bit)
49 //return ((mvcost[0][(mv->row - ref->row)>>1] + mvcost[1][(mv->col - ref->col)>>1] + 128) * error_per_bit) >> 8;
50 //return ( (vp8_mv_bit_cost(mv, ref, mvcost, 100) + 128) * error_per_bit) >> 8;
52 //i = (vp8_mv_bit_cost(mv, ref, mvcost, 100) * error_per_bit + 128) >> 8;
53 return ((mvcost[0][(mv->row - ref->row) >> 1] + mvcost[1][(mv->col - ref->col) >> 1]) * error_per_bit + 128) >> 8;
54 //return (vp8_mv_bit_cost(mv, ref, mvcost, 128) * error_per_bit + 128) >> 8;
58 static int mv_bits(MV *mv, MV *ref, int *mvcost[2])
62 return ((mvcost[0][(mv->row - ref->row) >> 1] + mvcost[1][(mv->col - ref->col)>> 1]) + 128) >> 8;
73 x->ss[search_site_count].mv.col = 0;
74 x->ss[search_site_count].mv.row = 0;
82 x->ss[search_site_count].mv.col = 0;
83 x->ss[search_site_count].mv.row = -Len;
88 x->ss[search_site_count].mv.col = 0;
89 x->ss[search_site_count].mv.row = Len;
94 x->ss[search_site_count].mv.col = -Len;
95 x->ss[search_site_count].mv.row = 0;
100 x->ss[search_site_count].mv.col = Len;
101 x->ss[search_site_count].mv.row = 0;
120 x->ss[search_site_count].mv.col = 0;
121 x->ss[search_site_count].mv.row = 0;
129 x->ss[search_site_count].mv.col = 0;
130 x->ss[search_site_count].mv.row = -Len;
135 x->ss[search_site_count].mv.col = 0;
136 x->ss[search_site_count].mv.row = Len;
141 x->ss[search_site_count].mv.col = -Len;
142 x->ss[search_site_count].mv.row = 0;
147 x->ss[search_site_count].mv.col = Len;
148 x->ss[search_site_count].mv.row = 0;
153 x->ss[search_site_count].mv.col = -Len;
154 x->ss[search_site_count].mv.row = -Len;
159 x->ss[search_site_count].mv.col = Len;
160 x->ss[search_site_count].mv.row = -Len;
165 x->ss[search_site_count].mv.col = -Len;
166 x->ss[search_site_count].mv.row = Len;
171 x->ss[search_site_count].mv.col = Len;
172 x->ss[search_site_count].mv.row = Len;
218 // central mv
333 // central mv
617 // central mv
975 this_row_offset = best_mv->row + ss[i].mv.row;
976 this_col_offset = best_mv->col + ss[i].mv.col;
1004 best_mv->row += ss[best_site].mv.row;
1005 best_mv->col += ss[best_site].mv.col;
1092 all_in &= ((best_mv->row + ss[i].mv.row)> x->mv_row_min);
1093 all_in &= ((best_mv->row + ss[i+1].mv.row) < x->mv_row_max);
1094 all_in &= ((best_mv->col + ss[i+2].mv.col) > x->mv_col_min);
1095 all_in &= ((best_mv->col + ss[i+3].mv.col) < x->mv_col_max);
1114 this_mv.row = (best_mv->row + ss[i].mv.row) << 3;
1115 this_mv.col = (best_mv->col + ss[i].mv.col) << 3;
1132 this_row_offset = best_mv->row + ss[i].mv.row;
1133 this_col_offset = best_mv->col + ss[i].mv.col;
1160 best_mv->row += ss[best_site].mv.row;
1161 best_mv->col += ss[best_site].mv.col;
1189 MV *best_mv = &d->bmi.mv.as_mv;
1279 MV *best_mv = &d->bmi.mv.as_mv;
1402 MV *best_mv = &d->bmi.mv.as_mv;