Lines Matching refs:mx
56 const int mx = *mx_ptr; in hpel_motion_search() local
60 int bx=2*mx, by=2*my; in hpel_motion_search()
77 dmin= cmp(s, mx, my, 0, 0, size, h, ref_index, src_index, cmp_sub, chroma_cmp_sub, flags); in hpel_motion_search()
78 if(mx || my || size>0) in hpel_motion_search()
79 dmin += (mv_penalty[2*mx - pred_x] + mv_penalty[2*my - pred_y])*penalty_factor; in hpel_motion_search()
82 if (mx > xmin && mx < xmax && in hpel_motion_search()
85 const int index = my * (1 << ME_MAP_SHIFT) + mx; in hpel_motion_search()
98 key = (my - 1) * (1 << ME_MAP_MV_BITS) + (mx) + map_generation; in hpel_motion_search()
100 key = (my + 1) * (1 << ME_MAP_MV_BITS) + (mx) + map_generation; in hpel_motion_search()
102 key = (my) * (1 << ME_MAP_MV_BITS) + (mx + 1) + map_generation; in hpel_motion_search()
104 key = (my) * (1 << ME_MAP_MV_BITS) + (mx - 1) + map_generation; in hpel_motion_search()
108 CHECK_HALF_MV(0, 1, mx ,my-1) in hpel_motion_search()
110 CHECK_HALF_MV(1, 1, mx-1, my-1) in hpel_motion_search()
112 CHECK_HALF_MV(1, 1, mx , my-1) in hpel_motion_search()
114 CHECK_HALF_MV(1, 1, mx-1, my ) in hpel_motion_search()
116 CHECK_HALF_MV(1, 0, mx-1, my ) in hpel_motion_search()
118 CHECK_HALF_MV(1, 1, mx , my-1) in hpel_motion_search()
120 CHECK_HALF_MV(1, 1, mx-1, my-1) in hpel_motion_search()
122 CHECK_HALF_MV(1, 1, mx , my ) in hpel_motion_search()
124 CHECK_HALF_MV(1, 0, mx , my ) in hpel_motion_search()
129 CHECK_HALF_MV(1, 1, mx-1, my-1) in hpel_motion_search()
131 CHECK_HALF_MV(1, 1, mx , my ) in hpel_motion_search()
133 CHECK_HALF_MV(1, 0, mx-1, my) in hpel_motion_search()
134 CHECK_HALF_MV(1, 1, mx-1, my) in hpel_motion_search()
137 CHECK_HALF_MV(1, 1, mx , my-1) in hpel_motion_search()
139 CHECK_HALF_MV(1, 1, mx-1, my) in hpel_motion_search()
141 CHECK_HALF_MV(1, 0, mx , my) in hpel_motion_search()
142 CHECK_HALF_MV(1, 1, mx , my) in hpel_motion_search()
144 CHECK_HALF_MV(0, 1, mx , my) in hpel_motion_search()
165 static inline int get_mb_score(MpegEncContext *s, int mx, int my, in get_mb_score() argument
184 …d= cmp(s, mx>>(qpel+1), my>>(qpel+1), mx&mask, my&mask, size, h, ref_index, src_index, cmp_sub, ch… in get_mb_score()
186 if(add_rate && (mx || my || size>0)) in get_mb_score()
187 d += (mv_penalty[mx - pred_x] + mv_penalty[my - pred_y])*penalty_factor; in get_mb_score()
192 int ff_get_mb_score(MpegEncContext *s, int mx, int my, int src_index, in ff_get_mb_score() argument
195 return get_mb_score(s, mx, my, src_index, ref_index, size, h, add_rate); in ff_get_mb_score()
213 const int mx = *mx_ptr; in qpel_motion_search() local
239 dmin= cmp(s, mx, my, 0, 0, size, h, ref_index, src_index, cmp_sub, chroma_cmp_sub, flags); in qpel_motion_search()
240 if(mx || my || size>0) in qpel_motion_search()
241 dmin += (mv_penalty[4*mx - pred_x] + mv_penalty[4*my - pred_y])*penalty_factor; in qpel_motion_search()
244 if (mx > xmin && mx < xmax && in qpel_motion_search()
246 int bx=4*mx, by=4*my; in qpel_motion_search()
249 const int index = my * (1 << ME_MAP_SHIFT) + mx; in qpel_motion_search()
276 … score += (mv_penalty[4*mx + nx - pred_x] + mv_penalty[4*my + ny - pred_y])*penalty_factor; in qpel_motion_search()
286 best_pos[i][0]= nx + 4*mx; in qpel_motion_search()
303 (my - 1) * (1 << ME_MAP_MV_BITS) + (mx - 1) + map_generation) { in qpel_motion_search()
306 …tl= cmp(s, mx-1, my-1, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);//FIXME wron… in qpel_motion_search()
325 … score += 32*(mv_penalty[4*mx + nx - pred_x] + mv_penalty[4*my + ny - pred_y])*penalty_factor; in qpel_motion_search()
334 best_pos[i][0]= nx + 4*mx; in qpel_motion_search()
353 *mx_ptr =4*mx; in qpel_motion_search()
957 int mx= (last_mv[xy][0]*ref_mv_scale + (1<<15))>>16; in epzs_motion_search_internal() local
960 if(mx>xmax || mx<xmin || my>ymax || my<ymin) continue; in epzs_motion_search_internal()
961 CHECK_MV(mx,my) in epzs_motion_search_internal()