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

Diff of /xvidcore/src/encoder.c

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

revision 1.37, Fri Jun 7 10:21:48 2002 UTC revision 1.38, Fri Jun 7 10:36:08 2002 UTC
# Line 444  Line 444 
444    
445          SWAP(pEnc->current, pEnc->reference);          SWAP(pEnc->current, pEnc->reference);
446    
447          pEnc->current->quant = (pFrame->quant == 0) ? RateControlGetQ(0) : pFrame->quant;          pEnc->current->quant = (pFrame->quant == 0) ? RateControlGetQ(&pEnc->rate_control, 0) : pFrame->quant;
448    
449          if(pEnc->current->quant < 1)          if(pEnc->current->quant < 1)
450                  pEnc->current->quant = 1;                  pEnc->current->quant = 1;
# Line 581  Line 581 
581    
582          if (pFrame->quant == 0)          if (pFrame->quant == 0)
583          {          {
584                  RateControlUpdate(pEnc->current->quant, pFrame->length, pFrame->intra);                  RateControlUpdate(&pEnc->rate_control,
585                                      pEnc->current->quant,
586                                      pFrame->length,
587                                      pFrame->intra);
588          }          }
589    
590          pEnc->iFrameNum++;          pEnc->iFrameNum++;

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

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