58 int motion_x, motion_y;
63 motion_x = s->
mv[0][0][0];
64 motion_y = s->
mv[0][0][1];
67 motion_x = s->
mv[0][0][0] + s->
mv[0][1][0];
68 motion_y = s->
mv[0][0][1] + s->
mv[0][1][1];
69 motion_x = (motion_x>>1) | (motion_x&1);
103 int x, y,
wrap,
a,
c, pred_dc;
108 x = 2 * s->
mb_x + (n & 1);
109 y = 2 * s->
mb_y + ((n & 2) >> 1);
116 dc_val = s->
dc_val[n - 4 + 1];
121 a = dc_val[(x - 1) + (y) *
wrap];
122 c = dc_val[(x) + (y - 1) *
wrap];
130 if (a != 1024 && c != 1024)
131 pred_dc = (a +
c) >> 1;
138 *dc_val_ptr = &dc_val[x + y *
wrap];
165 int qp_dt, qp_tt, qp_tc;
232 int16_t *dc_val, *ac_val, *ac_val1;
236 x = 2 * s->
mb_x + (n & 1);
237 y = 2 * s->
mb_y + (n>> 1);
246 dc_val = s->
dc_val[n - 4 + 1];
247 ac_val = s->
ac_val[n - 4 + 1][0];
251 ac_val += ((y) * wrap + (x)) * 16;
257 a = dc_val[(x - 1) + (y) *
wrap];
258 c = dc_val[(x) + (y - 1) *
wrap];
289 if (a != 1024 && c != 1024)
290 pred_dc = (a +
c) >> 1;
298 block[0]=block[0]*scale + pred_dc;
306 dc_val[(x) + (y) *
wrap] = block[0];
320 int16_t *
A, *
B, *
C, (*mot_val)[2];
321 static const int off[4]= {2, 1, 1, -1};
357 B = mot_val[ -
wrap];
366 B = mot_val[ -
wrap];
381 else if (s->
height <= 800)