606 |
if (frame->coding_type != I_VOP) |
if (frame->coding_type != I_VOP) |
607 |
BitstreamPutBit(bs, 0); /* not_coded */ |
BitstreamPutBit(bs, 0); /* not_coded */ |
608 |
|
|
609 |
|
if (frame->vop_flags & XVID_VOP_GREYSCALE) { |
610 |
|
pMB->cbp &= 0x3C; /* keep only bits 5-2 */ |
611 |
|
qcoeff[4*64+0]=0; /* for INTRA DC value is saved */ |
612 |
|
qcoeff[5*64+0]=0; |
613 |
|
} |
614 |
|
|
615 |
if (pMB->mode == MODE_INTRA || pMB->mode == MODE_INTRA_Q) |
if (pMB->mode == MODE_INTRA || pMB->mode == MODE_INTRA_Q) |
616 |
CodeBlockIntra(frame, pMB, qcoeff, bs, pStat); |
CodeBlockIntra(frame, pMB, qcoeff, bs, pStat); |
617 |
else |
else |
698 |
scan_tables[2] : scan_tables[0]; |
scan_tables[2] : scan_tables[0]; |
699 |
int bits; |
int bits; |
700 |
|
|
|
|
|
701 |
/* ------------------------------------------------------------------ |
/* ------------------------------------------------------------------ |
702 |
when a block is skipped it is decoded DIRECT(0,0) |
when a block is skipped it is decoded DIRECT(0,0) |
703 |
hence is interpolated from forward & backward frames |
hence is interpolated from forward & backward frames |