619 |
*intra_dc_threshold = |
*intra_dc_threshold = |
620 |
intra_dc_threshold_table[BitstreamGetBits(bs, 3)]; |
intra_dc_threshold_table[BitstreamGetBits(bs, 3)]; |
621 |
|
|
622 |
|
dec->top_field_first = 0; |
623 |
|
dec->alternate_vertical_scan = 0; |
624 |
|
|
625 |
if (dec->interlacing) { |
if (dec->interlacing) { |
626 |
dec->top_field_first = BitstreamGetBit(bs); |
dec->top_field_first = BitstreamGetBit(bs); |
627 |
DPRINTF(DPRINTF_HEADER, "interlace top_field_first %i", dec->top_field_first); |
DPRINTF(DPRINTF_HEADER, "interlace top_field_first %i", dec->top_field_first); |
852 |
BitstreamPutBits(bs, 0, 3); // intra_dc_vlc_threshold |
BitstreamPutBits(bs, 0, 3); // intra_dc_vlc_threshold |
853 |
|
|
854 |
if (frame->global_flags & XVID_INTERLACING) { |
if (frame->global_flags & XVID_INTERLACING) { |
855 |
BitstreamPutBit(bs, 1); // top field first |
BitstreamPutBit(bs, (frame->global_flags & XVID_TOPFIELDFIRST)); |
856 |
BitstreamPutBit(bs, 0); // alternate vertical scan |
BitstreamPutBit(bs, (frame->global_flags & XVID_ALTERNATESCAN)); |
857 |
} |
} |
858 |
|
|
859 |
BitstreamPutBits(bs, frame->quant, 5); // quantizer |
BitstreamPutBits(bs, frame->quant, 5); // quantizer |