664 |
BitstreamPutBits(bs, pMB->dquant, 2); |
BitstreamPutBits(bs, pMB->dquant, 2); |
665 |
|
|
666 |
// write interlacing |
// write interlacing |
667 |
if (frame->global_flags & XVID_INTERLACING) { |
if (frame->vol_flags & XVID_INTERLACING) { |
668 |
BitstreamPutBit(bs, pMB->field_dct); |
BitstreamPutBit(bs, pMB->field_dct); |
669 |
} |
} |
670 |
// code block coeffs |
// code block coeffs |
678 |
|
|
679 |
if (pMB->cbp & (1 << (5 - i))) { |
if (pMB->cbp & (1 << (5 - i))) { |
680 |
const uint16_t *scan_table = |
const uint16_t *scan_table = |
681 |
frame->global_flags & XVID_ALTERNATESCAN ? |
frame->vop_flags & XVID_ALTERNATESCAN ? |
682 |
scan_tables[2] : scan_tables[pMB->acpred_directions[i]]; |
scan_tables[2] : scan_tables[pMB->acpred_directions[i]]; |
683 |
|
|
684 |
bits = BitstreamPos(bs); |
bits = BitstreamPos(bs); |
726 |
BitstreamPutBits(bs, pMB->dquant, 2); |
BitstreamPutBits(bs, pMB->dquant, 2); |
727 |
|
|
728 |
// interlacing |
// interlacing |
729 |
if (frame->global_flags & XVID_INTERLACING) { |
if (frame->vol_flags & XVID_INTERLACING) { |
730 |
if (pMB->cbp) { |
if (pMB->cbp) { |
731 |
BitstreamPutBit(bs, pMB->field_dct); |
BitstreamPutBit(bs, pMB->field_dct); |
732 |
DPRINTF(DPRINTF_MB,"codep: field_dct: %i", pMB->field_dct); |
DPRINTF(DPRINTF_MB,"codep: field_dct: %i", pMB->field_dct); |
758 |
if (pMB->cbp & (1 << (5 - i))) |
if (pMB->cbp & (1 << (5 - i))) |
759 |
{ |
{ |
760 |
const uint16_t *scan_table = |
const uint16_t *scan_table = |
761 |
frame->global_flags & XVID_ALTERNATESCAN ? |
frame->vop_flags & XVID_ALTERNATESCAN ? |
762 |
scan_tables[2] : scan_tables[0]; |
scan_tables[2] : scan_tables[0]; |
763 |
|
|
764 |
#ifdef BIGLUT |
#ifdef BIGLUT |