[cvs] / xvidcore / src / bitstream / bitstream.c Repository:
ViewVC logotype

Diff of /xvidcore/src/bitstream/bitstream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28, Tue Sep 3 17:25:45 2002 UTC revision 1.28.2.2, Sat Sep 28 13:01:02 2002 UTC
# Line 619  Line 619 
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);
# Line 807  Line 810 
810    
811          BitstreamPutBits(bs, frame->coding_type, 2);          BitstreamPutBits(bs, frame->coding_type, 2);
812    
         // time_base = 0  write n x PutBit(1), PutBit(0)  
813  #ifdef BFRAMES  #ifdef BFRAMES
814          for (i = 0; i < frame->seconds; i++) {          for (i = 0; i < frame->seconds; i++) {
815                  BitstreamPutBit(bs, 1);                  BitstreamPutBit(bs, 1);
# Line 849  Line 851 
851          BitstreamPutBits(bs, 0, 3);     // intra_dc_vlc_threshold          BitstreamPutBits(bs, 0, 3);     // intra_dc_vlc_threshold
852    
853          if (frame->global_flags & XVID_INTERLACING) {          if (frame->global_flags & XVID_INTERLACING) {
854                  BitstreamPutBit(bs, 1); // top field first                  BitstreamPutBit(bs, (frame->global_flags & XVID_TOPFIELDFIRST));
855                  BitstreamPutBit(bs, 0); // alternate vertical scan                  BitstreamPutBit(bs, (frame->global_flags & XVID_ALTERNATESCAN));
856          }          }
857    
858          BitstreamPutBits(bs, frame->quant, 5);  // quantizer          BitstreamPutBits(bs, frame->quant, 5);  // quantizer

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.28.2.2

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4