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

Diff of /xvidcore/src/decoder.c

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

revision 1.57, Fri May 21 14:40:15 2004 UTC revision 1.59, Sat Jun 12 13:02:12 2004 UTC
# Line 303  Line 303 
303    
304                  start_timer();                  start_timer();
305                  predict_acdc(dec->mbs, x_pos, y_pos, dec->mb_width, i, &block[i * 64],                  predict_acdc(dec->mbs, x_pos, y_pos, dec->mb_width, i, &block[i * 64],
306                                           iQuant, iDcScaler, predictors, bound, dec->bs_version);                                           iQuant, iDcScaler, predictors, bound);
307                  if (!acpred_flag) {                  if (!acpred_flag) {
308                          pMB->acpred_directions[i] = 0;                          pMB->acpred_directions[i] = 0;
309                  }                  }
# Line 339  Line 339 
339                  stop_coding_timer();                  stop_coding_timer();
340    
341                  start_timer();                  start_timer();
342                  add_acdc(pMB, i, &block[i * 64], iDcScaler, predictors);                  add_acdc(pMB, i, &block[i * 64], iDcScaler, predictors, dec->bs_version);
343                  stop_prediction_timer();                  stop_prediction_timer();
344    
345                  start_timer();                  start_timer();
# Line 1218  Line 1218 
1218          uint32_t x, y;          uint32_t x, y;
1219          VECTOR mv;          VECTOR mv;
1220          const VECTOR zeromv = {0,0};          const VECTOR zeromv = {0,0};
         const int32_t TRB = dec->time_pp - dec->time_bp, TRD = dec->time_pp;  
1221          int i;          int i;
1222    
1223          if (!dec->is_edged[0]) {          if (!dec->is_edged[0]) {
# Line 1322  Line 1321 
1321    
1322                          case MODE_DIRECT_NONE_MV:                          case MODE_DIRECT_NONE_MV:
1323                                  for (i = 0; i < 4; i++) {                                  for (i = 0; i < 4; i++) {
1324                                          mb->mvs[i].x = (int32_t) ((TRB * last_mb->mvs[i].x) / TRD + mv.x);                                          mb->mvs[i].x = last_mb->mvs[i].x*dec->time_bp/dec->time_pp + mv.x;
1325                                          mb->b_mvs[i].x = (int32_t) ((mv.x == 0)                                          mb->mvs[i].y = last_mb->mvs[i].y*dec->time_bp/dec->time_pp + mv.y;
1326                                                                          ? ((TRB - TRD) * last_mb->mvs[i].x) / TRD  
1327                                                                          : mb->mvs[i].x - last_mb->mvs[i].x);                                          mb->b_mvs[i].x = (mv.x)
1328                                          mb->mvs[i].y = (int32_t) ((TRB * last_mb->mvs[i].y) / TRD + mv.y);                                                  ?  mb->mvs[i].x - last_mb->mvs[i].x
1329                                          mb->b_mvs[i].y = (int32_t) ((mv.y == 0)                                                  : last_mb->mvs[i].x*(dec->time_bp - dec->time_pp)/dec->time_pp;
1330                                                                          ? ((TRB - TRD) * last_mb->mvs[i].y) / TRD                                          mb->b_mvs[i].y = (mv.y)
1331                                                                          : mb->mvs[i].y - last_mb->mvs[i].y);                                                  ? mb->mvs[i].y - last_mb->mvs[i].y
1332                                                    : last_mb->mvs[i].y*(dec->time_bp - dec->time_pp)/dec->time_pp;
1333                                  }                                  }
1334    
1335                                  decoder_bf_interpolate_mbinter(dec, dec->refn[1], dec->refn[0],                                  decoder_bf_interpolate_mbinter(dec, dec->refn[1], dec->refn[0],

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.59

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