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

Diff of /xvidcore/src/prediction/mbprediction.c

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

revision 1.18, Tue Nov 22 10:23:01 2005 UTC revision 1.20, Sat Dec 18 16:02:00 2010 UTC
# Line 226  Line 226 
226    
227          dct_codes[0] += predictors[0];  /* dc prediction */          dct_codes[0] += predictors[0];  /* dc prediction */
228          pCurrent[0] = dct_codes[0]*iDcScaler;          pCurrent[0] = dct_codes[0]*iDcScaler;
229          if (!bsversion || bsversion > BS_VERSION_BUGGY_DC_CLIPPING) {          if (bsversion > BS_VERSION_BUGGY_DC_CLIPPING) {
230                  pCurrent[0] = CLIP(pCurrent[0], -2048, 2047);                  pCurrent[0] = CLIP(pCurrent[0], -2048, 2047);
231          }          }
232    
# Line 409  Line 409 
409                           uint32_t x,                           uint32_t x,
410                           uint32_t y,                           uint32_t y,
411                           uint32_t mb_width,                           uint32_t mb_width,
412                           int16_t qcoeff[6 * 64])                           int16_t qcoeff[6 * 64],
413                             const int bound)
414  {  {
415    
416          int32_t j;          int32_t j;
# Line 426  Line 427 
427                          iDcScaler = get_dc_scaler(iQuant, j<4);                          iDcScaler = get_dc_scaler(iQuant, j<4);
428    
429                          predict_acdc(frame->mbs, x, y, mb_width, j, &qcoeff[j * 64],                          predict_acdc(frame->mbs, x, y, mb_width, j, &qcoeff[j * 64],
430                                                   iQuant, iDcScaler, predictors[j], 0);                                                   iQuant, iDcScaler, predictors[j], bound);
431    
432                          if ((frame->vop_flags & XVID_VOP_HQACPRED))                          if ((frame->vop_flags & XVID_VOP_HQACPRED))
433                                  S += calc_acdc_bits(pMB, j, &qcoeff[j * 64], iDcScaler, predictors[j]);                                  S += calc_acdc_bits(pMB, j, &qcoeff[j * 64], iDcScaler, predictors[j]);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.20

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