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

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

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

revision 1441, Tue Apr 20 06:10:40 2004 UTC revision 1549, Sun Oct 3 14:25:01 2004 UTC
# Line 21  Line 21 
21   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
22   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
23   *   *
24   * $Id: estimation_common.c,v 1.4 2004-04-20 06:10:40 syskin Exp $   * $Id: estimation_common.c,v 1.6 2004-10-03 14:25:01 syskin Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 331  Line 331 
331                  if (bDirection & 8) CHECK_CANDIDATE(x, y + iDiamondSize, 8);                  if (bDirection & 8) CHECK_CANDIDATE(x, y + iDiamondSize, 8);
332    
333                  /* now we're doing diagonal checks near our candidate */                  /* now we're doing diagonal checks near our candidate */
   
                 if (*iDirection) {              /* checking if anything found */  
334                          bDirection = *iDirection;                          bDirection = *iDirection;
335                    if (*iDirection) {              /* checking if anything found */
336                          *iDirection = 0;                          *iDirection = 0;
337                          x = data->currentMV->x; y = data->currentMV->y;                          x = data->currentMV->x; y = data->currentMV->y;
338                          if (bDirection & 3) {   /* our candidate is left or right */                          if (bDirection & 3) {   /* our candidate is left or right */
# Line 347  Line 346 
346                          x = data->currentMV->x; y = data->currentMV->y;                          x = data->currentMV->x; y = data->currentMV->y;
347                  }                  }
348          }          }
349          while (*iDirection);          while (bDirection);
350  }  }
351    
352  void  void
353  xvid_me_SubpelRefine(SearchData * const data, CheckFunc * const CheckCandidate, int dir)  xvid_me_SubpelRefine(VECTOR centerMV, SearchData * const data, CheckFunc * const CheckCandidate, int dir)
354  {  {
355  /* Do a half-pel or q-pel refinement */  /* Do a half-pel or q-pel refinement */
         const VECTOR centerMV = data->qpel_precision ? *data->currentQMV : *data->currentMV;  
356    
357          CHECK_CANDIDATE(centerMV.x, centerMV.y - 1, dir);          CHECK_CANDIDATE(centerMV.x, centerMV.y - 1, dir);
358          CHECK_CANDIDATE(centerMV.x + 1, centerMV.y - 1, dir);          CHECK_CANDIDATE(centerMV.x + 1, centerMV.y - 1, dir);

Legend:
Removed from v.1441  
changed lines
  Added in v.1549

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