36 #define UNI_ENC_INDEX(last,run,level) ((last)*128*64 + (run)*128 + (level))
41 if (width == 176 && height == 144)
44 else if (width == 352 && height == 288)
110 if (index % 11 == 0) {
120 s->
mb_x = index % 11;
124 s->
mb_x += 11 * (index % 2);
146 code = sign ? -val :
val;
156 for (i = 0; i < 6; i++)
170 int level,
run, i, j, last_index, last_non_zero, sign, slevel, code;
183 else if (level < 1) {
192 }
else if ((block[0] == 1 || block[0] == -1) &&
203 last_non_zero = i - 1;
204 for (; i <= last_index; i++) {
208 run = i - last_non_zero - 1;
217 if (run == 0 && level < 16)
236 int motion_x,
int motion_y)
239 int mvd, mv_diff_x, mv_diff_y, i, cbp;
250 mvd = motion_x | motion_y;
252 if ((cbp | mvd | s->
dquant) == 0) {
296 mv_diff_x = (motion_x >> 1) - s->
last_mv[0][0][0];
297 mv_diff_y = (motion_y >> 1) - s->
last_mv[0][0][1];
298 s->
last_mv[0][0][0] = (motion_x >> 1);
299 s->
last_mv[0][0][1] = (motion_y >> 1);
310 for (i = 0; i < 6; i++)
323 int slevel,
run, last;
328 for(slevel=-64; slevel<64; slevel++){
329 if(slevel==0)
continue;
330 for(run=0; run<64; run++){
331 for(last=0; last<=1; last++){
333 int level= slevel < 0 ? -slevel : slevel;
344 if(code!=rl->
n && len < len_tab[index]){
352 if(len < len_tab[index]){
389 .priv_class = &h261_class,