37 #define UNI_ENC_INDEX(last,run,level) ((last)*128*64 + (run)*128 + (level))
42 if (width == 176 && height == 144)
45 else if (width == 352 && height == 288)
111 if (index % 11 == 0) {
121 s->
mb_x = index % 11;
125 s->
mb_x += 11 * (index % 2);
147 code = sign ? -val :
val;
157 for (i = 0; i < 6; i++)
171 int level,
run, i, j, last_index, last_non_zero, sign, slevel, code;
184 else if (level < 1) {
193 }
else if ((block[0] == 1 || block[0] == -1) &&
204 last_non_zero = i - 1;
205 for (; i <= last_index; i++) {
209 run = i - last_non_zero - 1;
218 if (run == 0 && level < 16)
237 int motion_x,
int motion_y)
240 int mvd, mv_diff_x, mv_diff_y, i, cbp;
251 mvd = motion_x | motion_y;
253 if ((cbp | mvd) == 0) {
300 mv_diff_x = (motion_x >> 1) - s->
last_mv[0][0][0];
301 mv_diff_y = (motion_y >> 1) - s->
last_mv[0][0][1];
302 s->
last_mv[0][0][0] = (motion_x >> 1);
303 s->
last_mv[0][0][1] = (motion_y >> 1);
314 for (i = 0; i < 6; i++)
327 int slevel,
run, last;
332 for(slevel=-64; slevel<64; slevel++){
333 if(slevel==0)
continue;
334 for(run=0; run<64; run++){
335 for(last=0; last<=1; last++){
337 int level= slevel < 0 ? -slevel : slevel;
348 if(code!=rl->
n && len < len_tab[index]){
356 if(len < len_tab[index]){
393 .priv_class = &h261_class,