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

Diff of /xvidcore/src/motion/estimation_rd_based_bvop.c

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

revision 1.1, Sun Jul 18 11:48:57 2004 UTC revision 1.3, Wed Jul 21 12:50:30 2004 UTC
# Line 17  Line 17 
17  #include "../bitstream/vlc_codes.h"  #include "../bitstream/vlc_codes.h"
18  #include "../dct/fdct.h"  #include "../dct/fdct.h"
19  #include "motion_inlines.h"  #include "motion_inlines.h"
 #include "../plugins/HVS_base.h"  
   
20    
21  /* rd = BITS_MULT*bits + LAMBDA*distortion */  /* rd = BITS_MULT*bits + LAMBDA*distortion */
22  #define LAMBDA          ( (int)(BITS_MULT*1.0) )  #define LAMBDA          ( (int)(BITS_MULT*1.0) )
# Line 516  Line 514 
514                  case MODE_BACKWARD:                  case MODE_BACKWARD:
515                          rd = b_rd = SearchBF_RD(x, y, MotionFlags, pParam, &best_rd, Data_b);                          rd = b_rd = SearchBF_RD(x, y, MotionFlags, pParam, &best_rd, Data_b);
516                          break;                          break;
517                    default:
518                  case MODE_INTERPOLATE:                  case MODE_INTERPOLATE:
519                          rd = i_rd = SearchInterpolate_RD(x, y, MotionFlags, pParam, &best_rd, Data_i);                          rd = i_rd = SearchInterpolate_RD(x, y, MotionFlags, pParam, &best_rd, Data_i);
520                          break;                          break;
# Line 577  Line 576 
576                  }                  }
577                  pMB->mvs[0] = *Data_f->currentMV;                  pMB->mvs[0] = *Data_f->currentMV;
578                  pMB->cbp = *Data_f->cbp;                  pMB->cbp = *Data_f->cbp;
579                    pMB->b_mvs[0] = *Data_b->currentMV; /* hint for future searches */
580                  break;                  break;
581    
582          case MODE_BACKWARD:          case MODE_BACKWARD:
# Line 592  Line 592 
592                  }                  }
593                  pMB->b_mvs[0] = *Data_b->currentMV;                  pMB->b_mvs[0] = *Data_b->currentMV;
594                  pMB->cbp = *Data_b->cbp;                  pMB->cbp = *Data_b->cbp;
595                    pMB->mvs[0] = *Data_f->currentMV; /* hint for future searches */
596                  break;                  break;
597    
598    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

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