[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 1549, Sun Oct 3 14:25:01 2004 UTC revision 1550, Sun Oct 3 14:37:18 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.6 2004-10-03 14:25:01 syskin Exp $   * $Id: estimation_common.c,v 1.7 2004-10-03 14:37:18 chl Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 333  Line 333 
333                  /* now we're doing diagonal checks near our candidate */                  /* now we're doing diagonal checks near our candidate */
334                  bDirection = *iDirection;                  bDirection = *iDirection;
335                  if (*iDirection) {              /* checking if anything found */                  if (*iDirection) {              /* checking if anything found */
                         *iDirection = 0;  
336                          x = data->currentMV->x; y = data->currentMV->y;                          x = data->currentMV->x; y = data->currentMV->y;
337                          if (bDirection & 3) {   /* our candidate is left or right */                          if (bDirection & 3) {   /* our candidate is left or right */
338                                    *iDirection=4+8;
339                                  CHECK_CANDIDATE(x, y + iDiamondSize, 8);                                  CHECK_CANDIDATE(x, y + iDiamondSize, 8);
340                                  CHECK_CANDIDATE(x, y - iDiamondSize, 4);                                  CHECK_CANDIDATE(x, y - iDiamondSize, 4);
341                          } else {                        /* what remains here is up or down */                          } else {                        /* what remains here is up or down */
342                                    *iDirection=1+2;
343                                  CHECK_CANDIDATE(x + iDiamondSize, y, 2);                                  CHECK_CANDIDATE(x + iDiamondSize, y, 2);
344                                  CHECK_CANDIDATE(x - iDiamondSize, y, 1);                                  CHECK_CANDIDATE(x - iDiamondSize, y, 1);
345                          }                          }

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

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