671 |
BitstreamPutBits(bs, DQ_VALUE2INDEX(pMB->dquant), 2); |
BitstreamPutBits(bs, DQ_VALUE2INDEX(pMB->dquant), 2); |
672 |
|
|
673 |
// write interlacing |
// write interlacing |
674 |
if (frame->vol_flags & XVID_INTERLACING) { |
if (frame->vol_flags & XVID_VOL_INTERLACING) { |
675 |
BitstreamPutBit(bs, pMB->field_dct); |
BitstreamPutBit(bs, pMB->field_dct); |
676 |
} |
} |
677 |
// code block coeffs |
// code block coeffs |
685 |
|
|
686 |
if (pMB->cbp & (1 << (5 - i))) { |
if (pMB->cbp & (1 << (5 - i))) { |
687 |
const uint16_t *scan_table = |
const uint16_t *scan_table = |
688 |
frame->vop_flags & XVID_ALTERNATESCAN ? |
frame->vop_flags & XVID_VOP_ALTERNATESCAN ? |
689 |
scan_tables[2] : scan_tables[pMB->acpred_directions[i]]; |
scan_tables[2] : scan_tables[pMB->acpred_directions[i]]; |
690 |
|
|
691 |
bits = BitstreamPos(bs); |
bits = BitstreamPos(bs); |
733 |
BitstreamPutBits(bs, DQ_VALUE2INDEX(pMB->dquant), 2); |
BitstreamPutBits(bs, DQ_VALUE2INDEX(pMB->dquant), 2); |
734 |
|
|
735 |
// interlacing |
// interlacing |
736 |
if (frame->vol_flags & XVID_INTERLACING) { |
if (frame->vol_flags & XVID_VOL_INTERLACING) { |
737 |
if (pMB->cbp) { |
if (pMB->cbp) { |
738 |
BitstreamPutBit(bs, pMB->field_dct); |
BitstreamPutBit(bs, pMB->field_dct); |
739 |
DPRINTF(DPRINTF_MB,"codep: field_dct: %i", pMB->field_dct); |
DPRINTF(DPRINTF_MB,"codep: field_dct: %i", pMB->field_dct); |
765 |
if (pMB->cbp & (1 << (5 - i))) |
if (pMB->cbp & (1 << (5 - i))) |
766 |
{ |
{ |
767 |
const uint16_t *scan_table = |
const uint16_t *scan_table = |
768 |
frame->vop_flags & XVID_ALTERNATESCAN ? |
frame->vop_flags & XVID_VOP_ALTERNATESCAN ? |
769 |
scan_tables[2] : scan_tables[0]; |
scan_tables[2] : scan_tables[0]; |
770 |
|
|
771 |
#ifdef BIGLUT |
#ifdef BIGLUT |