[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 1567, Wed Dec 8 12:43:48 2004 UTC revision 1602, Thu Mar 3 01:27:07 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.10 2004-12-08 12:43:48 syskin Exp $   * $Id: estimation_pvop.c,v 1.14 2005-03-03 01:27:07 Isibaar 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          }          }
# Line 882  Line 880 
880                          if ((current->vop_flags & XVID_VOP_CARTOON) &&                          if ((current->vop_flags & XVID_VOP_CARTOON) &&
881                                  ((sad00 < pMB->quant * 4 * skip_thresh) || (sad00 < stat_thresh))) {                                  ((sad00 < pMB->quant * 4 * skip_thresh) || (sad00 < stat_thresh))) {
882                                  ZeroMacroblockP(pMB, sad00);                                  ZeroMacroblockP(pMB, sad00);
883                                    pMB->cbp = 0x3f;
884                                  continue;                                  continue;
885                          }                          }
886    

Legend:
Removed from v.1567  
changed lines
  Added in v.1602

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