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

Diff of /trunk/xvidcore/src/motion/estimation_rd_based.c

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

revision 1477, Sat Jul 3 14:48:30 2004 UTC revision 1478, Thu Jul 8 07:12:54 2004 UTC
# Line 20  Line 20 
20   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: estimation_rd_based.c,v 1.5 2004-06-12 13:02:12 edgomez Exp $   * $Id: estimation_rd_based.c,v 1.6 2004-07-08 07:12:54 syskin Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 313  Line 313 
313                  xvid_me_SquareSearch(Data->currentMV->x, Data->currentMV->y, Data, 255, CheckCandidateRD16);                  xvid_me_SquareSearch(Data->currentMV->x, Data->currentMV->y, Data, 255, CheckCandidateRD16);
314    
315          if (MotionFlags&XVID_ME_HALFPELREFINE16_RD)          if (MotionFlags&XVID_ME_HALFPELREFINE16_RD)
316                  xvid_me_SubpelRefine(Data, CheckCandidateRD16, 0);                  xvid_me_SubpelRefine(Data->currentMV[0], Data, CheckCandidateRD16, 0);
317    
318          if (Data->qpel) {          if (Data->qpel) {
319                  if (MotionFlags&(XVID_ME_EXTSEARCH_RD | XVID_ME_HALFPELREFINE16_RD)) { /* there was halfpel-precision search */                  if (MotionFlags&(XVID_ME_EXTSEARCH_RD | XVID_ME_HALFPELREFINE16_RD)) { /* there was halfpel-precision search */
# Line 331  Line 331 
331                          if (MotionFlags & XVID_ME_FASTREFINE16)                          if (MotionFlags & XVID_ME_FASTREFINE16)
332                                  FullRefine_Fast(Data, CheckCandidateRD16, 0);                                  FullRefine_Fast(Data, CheckCandidateRD16, 0);
333                          else                          else
334                                  xvid_me_SubpelRefine(Data, CheckCandidateRD16, 0);                                  xvid_me_SubpelRefine(Data->currentQMV[0], Data, CheckCandidateRD16, 0);
335                  }                  }
336          }          }
337    
# Line 414  Line 414 
414                                          xvid_me_SquareSearch(Data8->currentMV->x, Data8->currentMV->x, Data8, 255, CheckCandidateRD8);                                          xvid_me_SquareSearch(Data8->currentMV->x, Data8->currentMV->x, Data8, 255, CheckCandidateRD8);
415    
416                                  if (MotionFlags & XVID_ME_HALFPELREFINE8_RD)                                  if (MotionFlags & XVID_ME_HALFPELREFINE8_RD)
417                                          xvid_me_SubpelRefine(Data8, CheckCandidateRD8, 0);                                          xvid_me_SubpelRefine(Data->currentMV[0], Data8, CheckCandidateRD8, 0);
418    
419                                  if(bsad > *Data8->iMinSAD) { /* we have found a better match */                                  if(bsad > *Data8->iMinSAD) { /* we have found a better match */
420                                          bx = Data8->currentQMV->x = 2*Data8->currentMV->x;                                          bx = Data8->currentQMV->x = 2*Data8->currentMV->x;
# Line 431  Line 431 
431                          if (MotionFlags & XVID_ME_QUARTERPELREFINE8_RD) {                          if (MotionFlags & XVID_ME_QUARTERPELREFINE8_RD) {
432                                  if (MotionFlags & XVID_ME_FASTREFINE8)                                  if (MotionFlags & XVID_ME_FASTREFINE8)
433                                          FullRefine_Fast(Data8, CheckCandidateRD8, 0);                                          FullRefine_Fast(Data8, CheckCandidateRD8, 0);
434                                  else xvid_me_SubpelRefine(Data8, CheckCandidateRD8, 0);                                  else xvid_me_SubpelRefine(Data->currentQMV[0], Data8, CheckCandidateRD8, 0);
435                          }                          }
436    
437                          if (bsad <= Data->iMinSAD[0]) {                          if (bsad <= Data->iMinSAD[0]) {
# Line 447  Line 447 
447                                  xvid_me_SquareSearch(Data8->currentMV->x, Data8->currentMV->x, Data8, 255, CheckCandidateRD8);                                  xvid_me_SquareSearch(Data8->currentMV->x, Data8->currentMV->x, Data8, 255, CheckCandidateRD8);
448    
449                          if (MotionFlags & XVID_ME_HALFPELREFINE8_RD)                          if (MotionFlags & XVID_ME_HALFPELREFINE8_RD)
450                                  xvid_me_SubpelRefine(Data8, CheckCandidateRD8, 0); /* halfpel refinement */                                  xvid_me_SubpelRefine(Data->currentMV[0], Data8, CheckCandidateRD8, 0); /* halfpel refinement */
451                  }                  }
452    
453                  /* checking vector equal to predicion */                  /* checking vector equal to predicion */

Legend:
Removed from v.1477  
changed lines
  Added in v.1478

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