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 | s->
dquant) == 0) {
297 mv_diff_x = (motion_x >> 1) - s->
last_mv[0][0][0];
298 mv_diff_y = (motion_y >> 1) - s->
last_mv[0][0][1];
299 s->
last_mv[0][0][0] = (motion_x >> 1);
300 s->
last_mv[0][0][1] = (motion_y >> 1);
311 for (i = 0; i < 6; i++)
324 int slevel,
run, last;
329 for(slevel=-64; slevel<64; slevel++){
330 if(slevel==0)
continue;
331 for(run=0; run<64; run++){
332 for(last=0; last<=1; last++){
334 int level= slevel < 0 ? -slevel : slevel;
345 if(code!=rl->
n && len < len_tab[index]){
353 if(len < len_tab[index]){
390 .priv_class = &h261_class,