54 int motion_x, motion_y;
59 motion_x = s->
mv[0][0][0];
60 motion_y = s->
mv[0][0][1];
63 motion_x = s->
mv[0][0][0] + s->
mv[0][1][0];
64 motion_y = s->
mv[0][0][1] + s->
mv[0][1][1];
65 motion_x = (motion_x>>1) | (motion_x&1);
104 x = 2 * s->
mb_x + (n & 1);
105 y = 2 * s->
mb_y + ((n & 2) >> 1);
112 dc_val = s->
dc_val[n - 4 + 1];
117 a = dc_val[(x - 1) + (y) *
wrap];
118 c = dc_val[(x) + (y - 1) *
wrap];
126 if (a != 1024 && c != 1024)
127 pred_dc = (a +
c) >> 1;
134 *dc_val_ptr = &dc_val[x + y *
wrap];
161 int qp_dt, qp_tt, qp_tc;
228 int16_t *dc_val, *ac_val, *ac_val1;
232 x = 2 * s->
mb_x + (n & 1);
233 y = 2 * s->
mb_y + (n>> 1);
242 dc_val = s->
dc_val[n - 4 + 1];
243 ac_val = s->
ac_val[n - 4 + 1][0];
247 ac_val += ((
y) * wrap + (x)) * 16;
253 a = dc_val[(x - 1) + (y) *
wrap];
254 c = dc_val[(x) + (y - 1) *
wrap];
285 if (a != 1024 && c != 1024)
286 pred_dc = (a +
c) >> 1;
294 block[0]=block[0]*scale + pred_dc;
302 dc_val[(x) + (y) *
wrap] = block[0];
316 int16_t *
A, *
B, *
C, (*mot_val)[2];
317 static const int off[4]= {2, 1, 1, -1};
353 B = mot_val[ -
wrap];
362 B = mot_val[ -
wrap];
377 else if (s->
height <= 800)