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

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

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

revision 1570, Thu Dec 9 23:02:54 2004 UTC revision 1600, Sun Feb 20 13:12:26 2005 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_pvop.c,v 1.11 2004-12-09 23:02:54 edgomez Exp $   * $Id: estimation_pvop.c,v 1.12 2005-02-20 13:12:26 syskin Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 771  Line 771 
771                          *mvSum += mv[i].y * mv[i].y;                          *mvSum += mv[i].y * mv[i].y;
772                  }                  }
773          case MODE_INTER:          case MODE_INTER:
774                  (*mvCount)++;   /* add mcsel==1 vector to statistics too, or else we ignore useful motion range info */                  (*mvCount)++;
775                  *mvSum += mv[0].x * mv[0].x;                  *mvSum += mv[0].x * mv[0].x;
776                  *mvSum += mv[0].y * mv[0].y;                  *mvSum += mv[0].y * mv[0].y;
                 if (pMB->mcsel == 0) {  
777                          if (mv[0].x > max) max = mv[0].x;                          if (mv[0].x > max) max = mv[0].x;
778                          else if (-mv[0].x - 1 > max) max = -mv[0].x - 1;                          else if (-mv[0].x - 1 > max) max = -mv[0].x - 1;
779                          if (mv[0].y > max) max = mv[0].y;                          if (mv[0].y > max) max = mv[0].y;
780                          else if (-mv[0].y - 1 > max) max = -mv[0].y - 1;                          else if (-mv[0].y - 1 > max) max = -mv[0].y - 1;
781                          *MVmax = max;                          *MVmax = max;
                 }  
782          default:          default:
783                  break;                  break;
784          }          }

Legend:
Removed from v.1570  
changed lines
  Added in v.1600

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