[svn] / branches / dev-api-4 / xvidcore / src / motion / estimation_pvop.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/motion/estimation_pvop.c

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

revision 1163, Fri Oct 3 12:36:56 2003 UTC revision 1185, Wed Oct 22 16:30:07 2003 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.1.2.3 2003-10-03 12:36:56 syskin Exp $   * $Id: estimation_pvop.c,v 1.1.2.4 2003-10-22 16:30:07 syskin Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 384  Line 384 
384                  pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV;                  pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV;
385                  psad[0] = 0;                  psad[0] = 0;
386                  psad[1] = psad[2] = psad[3] = MV_MAX_ERROR;                  psad[1] = psad[2] = psad[3] = MV_MAX_ERROR;
387                    return;
388          }          }
389    
390          /* if only one valid candidate preictor, the invalid candiates are set to the canidate */          /* if only one valid candidate preictor, the invalid candiates are set to the canidate */
391          if (num_cand == 1) {          if (num_cand == 1) {
392                  pmv[0] = pmv[last_cand];                  pmv[0] = pmv[last_cand];
393                  psad[0] = psad[last_cand];                  psad[0] = psad[last_cand];
394                    return;
395          }          }
396    
397          if ((MVequal(pmv[1], pmv[2])) && (MVequal(pmv[1], pmv[3]))) {          if ((MVequal(pmv[1], pmv[2])) && (MVequal(pmv[1], pmv[3]))) {
398                  pmv[0] = pmv[1];                  pmv[0] = pmv[1];
399                  psad[0] = MIN(MIN(psad[1], psad[2]), psad[3]);                  psad[0] = MIN(MIN(psad[1], psad[2]), psad[3]);
400                    return;
401          }          }
402    
403          /* set median, minimum */          /* set median, minimum */

Legend:
Removed from v.1163  
changed lines
  Added in v.1185

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