[svn] / branches / dev-api-3 / xvidcore / src / bitstream / mbcoding.c Repository:
ViewVC logotype

Diff of /branches/dev-api-3/xvidcore/src/bitstream/mbcoding.c

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

revision 338, Wed Jul 24 23:07:45 2002 UTC revision 388, Wed Sep 4 03:23:28 2002 UTC
# Line 370  Line 370 
370    
371          // interlacing          // interlacing
372          if (frame->global_flags & XVID_INTERLACING) {          if (frame->global_flags & XVID_INTERLACING) {
373                    if (pMB->cbp) {
374                  BitstreamPutBit(bs, pMB->field_dct);                  BitstreamPutBit(bs, pMB->field_dct);
375                  DEBUG1("codep: field_dct: ", pMB->field_dct);                  DEBUG1("codep: field_dct: ", pMB->field_dct);
376                    }
377    
378                  // if inter block, write field ME flag                  // if inter block, write field ME flag
379                  if (pMB->mode == MODE_INTER || pMB->mode == MODE_INTER_Q) {                  if (pMB->mode == MODE_INTER || pMB->mode == MODE_INTER_Q) {
# Line 413  Line 415 
415  {  {
416    
417          if (frame->coding_type == P_VOP) {          if (frame->coding_type == P_VOP) {
                 if (pMB->cbp == 0 && pMB->mode == MODE_INTER && pMB->mvs[0].x == 0 &&  
                         pMB->mvs[0].y == 0) {  
   
 #ifdef _DISABLE_SKIP  
 /* disable SKIP when Bframes active until some workaround for the B-SKIP problem is found */  
                         BitstreamPutBit(bs, 0); // always coded!  
 #else  
                         BitstreamPutBit(bs, 1); // not_coded  
   
                         return;  
 #endif  
                 } else  
418                          BitstreamPutBit(bs, 0); // coded                          BitstreamPutBit(bs, 0); // coded
419          }          }
420    
# Line 435  Line 425 
425    
426  }  }
427    
428    
429    void
430    MBSkip(Bitstream * bs)
431    {
432            BitstreamPutBit(bs, 1); // not coded
433            return;
434    }
435    
436    
437  /***************************************************************  /***************************************************************
438   * bframe encoding start   * bframe encoding start
439   ***************************************************************/   ***************************************************************/

Legend:
Removed from v.338  
changed lines
  Added in v.388

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