[svn] / trunk / xvidcore / src / bitstream / mbcoding.c Repository:
ViewVC logotype

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

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

revision 248, Fri Jun 28 15:14:40 2002 UTC revision 313, Thu Jul 18 23:52:40 2002 UTC
# Line 518  Line 518 
518          int i;          int i;
519    
520  /*      ------------------------------------------------------------------  /*      ------------------------------------------------------------------
521                  when a block is skipped it is decoded DIRECT(0,)                  when a block is skipped it is decoded DIRECT(0,0)
522                  hence are interpolated from forward & backward frames                  hence is interpolated from forward & backward frames
523          ------------------------------------------------------------------ */          ------------------------------------------------------------------ */
524    
525          if (mb->mode == 5) {          if (mb->mode == MODE_DIRECT_NONE_MV) {
526                  BitstreamPutBit(bs, 1); // skipped                  BitstreamPutBit(bs, 1); // skipped
527                  return;                  return;
528          }          }
# Line 556  Line 556 
556          }          }
557    
558          if (mb->mode == MODE_DIRECT) {          if (mb->mode == MODE_DIRECT) {
559                  // TODO: direct                  CodeVector(bs, mb->mvs[0].x, 1, pStat);         /* fcode is always 1 for delta vector */
560                    CodeVector(bs, mb->mvs[0].y, 1, pStat);         /* prediction is always (0,0) */
561          }          }
562    
563          for (i = 0; i < 6; i++) {          for (i = 0; i < 6; i++) {
# Line 573  Line 574 
574   ***************************************************************/   ***************************************************************/
575    
576    
 void  
 skip_stuffing(Bitstream *bs)  
 {  
         while (BitstreamShowBits(bs, 9) == 1)  
                 BitstreamSkip(bs, 9);  
 }  
   
   
   
577  // for IVOP addbits == 0  // for IVOP addbits == 0
578  // for PVOP addbits == fcode - 1  // for PVOP addbits == fcode - 1
579  // for BVOP addbits == max(fcode,bcode) - 1  // for BVOP addbits == max(fcode,bcode) - 1
# Line 782  Line 774 
774                  }                  }
775                  coeff += run;                  coeff += run;
776                  block[scan[coeff]] = level;                  block[scan[coeff]] = level;
777    
778                    DPRINTF(DPRINTF_COEFF,"block[%i] %i", scan[coeff], level);
779                    //DPRINTF(DPRINTF_COEFF,"block[%i] %i %08x", scan[coeff], level, BitstreamShowBits(bs, 32));
780    
781                  if (level < -127 || level > 127) {                  if (level < -127 || level > 127) {
782                          DEBUG1("warning: intra_overflow", level);                          DEBUG1("warning: intra_overflow", level);
783                  }                  }
# Line 811  Line 807 
807                  p += run;                  p += run;
808    
809                  block[scan[p]] = level;                  block[scan[p]] = level;
810    
811                    DPRINTF(DPRINTF_COEFF,"block[%i] %i", scan[p], level);
812                    // DPRINTF(DPRINTF_COEFF,"block[%i] %i %08x", scan[p], level, BitstreamShowBits(bs, 32));
813    
814                  if (level < -127 || level > 127) {                  if (level < -127 || level > 127) {
815                          DEBUG1("warning: inter_overflow", level);                          DEBUG1("warning: inter_overflow", level);
816                  }                  }

Legend:
Removed from v.248  
changed lines
  Added in v.313

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