55 int motion_x, motion_y;
60 motion_x = s->
mv[0][0][0];
61 motion_y = s->
mv[0][0][1];
64 motion_x = s->
mv[0][0][0] + s->
mv[0][1][0];
65 motion_y = s->
mv[0][0][1] + s->
mv[0][1][1];
66 motion_x = (motion_x>>1) | (motion_x&1);
105 x = 2 * s->
mb_x + (n & 1);
106 y = 2 * s->
mb_y + ((n & 2) >> 1);
113 dc_val = s->
dc_val[n - 4 + 1];
118 a = dc_val[(x - 1) + (y) *
wrap];
119 c = dc_val[(x) + (y - 1) *
wrap];
127 if (a != 1024 && c != 1024)
128 pred_dc = (a +
c) >> 1;
135 *dc_val_ptr = &dc_val[x + y *
wrap];
162 int qp_dt, qp_tt, qp_tc;
229 int16_t *dc_val, *ac_val, *ac_val1;
233 x = 2 * s->
mb_x + (n & 1);
234 y = 2 * s->
mb_y + (n>> 1);
243 dc_val = s->
dc_val[n - 4 + 1];
244 ac_val = s->
ac_val[n - 4 + 1][0];
248 ac_val += ((
y) * wrap + (x)) * 16;
254 a = dc_val[(x - 1) + (y) *
wrap];
255 c = dc_val[(x) + (y - 1) *
wrap];
286 if (a != 1024 && c != 1024)
287 pred_dc = (a +
c) >> 1;
295 block[0]=block[0]*scale +
pred_dc;
303 dc_val[(x) + (y) *
wrap] = block[0];
317 int16_t *
A, *
B, *
C, (*mot_val)[2];
318 static const int off[4]= {2, 1, 1, -1};
354 B = mot_val[ -
wrap];
363 B = mot_val[ -
wrap];
378 else if (s->
height <= 800)