57 int motion_x, motion_y;
62 motion_x = s->
mv[0][0][0];
63 motion_y = s->
mv[0][0][1];
66 motion_x = s->
mv[0][0][0] + s->
mv[0][1][0];
67 motion_y = s->
mv[0][0][1] + s->
mv[0][1][1];
68 motion_x = (motion_x>>1) | (motion_x&1);
107 x = 2 * s->
mb_x + (n & 1);
108 y = 2 * s->
mb_y + ((n & 2) >> 1);
115 dc_val = s->
dc_val[n - 4 + 1];
120 a = dc_val[(x - 1) + (y) *
wrap];
121 c = dc_val[(x) + (y - 1) *
wrap];
129 if (a != 1024 && c != 1024)
130 pred_dc = (a +
c) >> 1;
137 *dc_val_ptr = &dc_val[x + y *
wrap];
164 int qp_dt, qp_tt, qp_tc;
231 int16_t *dc_val, *ac_val, *ac_val1;
235 x = 2 * s->
mb_x + (n & 1);
236 y = 2 * s->
mb_y + (n>> 1);
245 dc_val = s->
dc_val[n - 4 + 1];
246 ac_val = s->
ac_val[n - 4 + 1][0];
250 ac_val += ((
y) * wrap + (x)) * 16;
256 a = dc_val[(x - 1) + (y) *
wrap];
257 c = dc_val[(x) + (y - 1) *
wrap];
288 if (a != 1024 && c != 1024)
289 pred_dc = (a +
c) >> 1;
297 block[0]=block[0]*scale + pred_dc;
305 dc_val[(x) + (y) *
wrap] = block[0];
319 int16_t *
A, *
B, *
C, (*mot_val)[2];
320 static const int off[4]= {2, 1, 1, -1};
356 B = mot_val[ -
wrap];
365 B = mot_val[ -
wrap];
380 else if (s->
height <= 800)