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

Diff of /trunk/xvidcore/src/encoder.c

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

revision 152, Wed May 1 13:00:02 2002 UTC revision 158, Fri May 3 15:26:30 2002 UTC
# Line 34  Line 34 
34   *   *
35   *  14.04.2002 added FrameCodeB()   *  14.04.2002 added FrameCodeB()
36   *   *
37   *  $Id: encoder.c,v 1.32 2002-05-01 13:00:01 suxen_drol Exp $   *  $Id: encoder.c,v 1.34 2002-05-03 15:26:30 edgomez Exp $
38   *   *
39   ***************************************************************************/   ***************************************************************************/
40    
# Line 327  Line 327 
327                  }                  }
328                  free(pEnc->bframes);                  free(pEnc->bframes);
329          }          }
330  #endif BFRAMES  #endif
331  //====================================================================  //====================================================================
332    
333          image_destroy(&pEnc->current->image, pEnc->mbParam.edged_width, pEnc->mbParam.edged_height);          image_destroy(&pEnc->current->image, pEnc->mbParam.edged_width, pEnc->mbParam.edged_height);
# Line 433  Line 433 
433          SWAP(pEnc->current, pEnc->reference);          SWAP(pEnc->current, pEnc->reference);
434    
435          pEnc->current->quant = (pFrame->quant == 0) ? RateControlGetQ(0) : pFrame->quant;          pEnc->current->quant = (pFrame->quant == 0) ? RateControlGetQ(0) : pFrame->quant;
436    
437            if(pEnc->current->quant < 1)
438                    pEnc->current->quant = 1;
439    
440            if(pEnc->current->quant > 31)
441                    pEnc->current->quant = 31;
442    
443          pEnc->current->global_flags = pFrame->general;          pEnc->current->global_flags = pFrame->general;
444          pEnc->current->motion_flags = pFrame->motion;          pEnc->current->motion_flags = pFrame->motion;
445          pEnc->current->seconds = pEnc->mbParam.m_seconds;          pEnc->current->seconds = pEnc->mbParam.m_seconds;

Legend:
Removed from v.152  
changed lines
  Added in v.158

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