for(i=0;i<=last_index; i++){ const int j = zigzag_direct[i];
if(s->mb_intra){ i=1; }else i=0;  for(;i<=last_index; i++){ const int j= s->intra_scantable.permutated[i];
static inline void clip_coeffs(MpegEncContext *s, DCTELEM *block, int last_index){    int i;    const int maxlevel= s->max_qcoeff;    const int minlevel= s->min_qcoeff;            for(i=0;i<=last_index; i++){        const int j = zigzag_direct[i];        int level = block[j];               if     (level>maxlevel) level=maxlevel;        else if(level<minlevel) level=minlevel;        block[j]= level;    }}