[svn] / trunk / xvidcore / src / motion / motion_inlines.h Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/motion/motion_inlines.h

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

revision 1772, Mon Apr 16 19:01:28 2007 UTC revision 1773, Sat Apr 28 16:30:26 2007 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: motion_inlines.h,v 1.4 2004-12-08 12:43:48 syskin Exp $   * $Id: motion_inlines.h,v 1.5 2007-04-28 16:30:20 syskin Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 64  Line 64 
64  }  }
65    
66  /* reversed mv.length table */  /* reversed mv.length table */
67  static const int r_mvtab[64] = {  static const int r_mvtab[65] = {
68          12, 12, 12, 12, 12, 12, 12, 12,          11, 12, 12, 12, 12, 12, 12, 12, 12,
69          12, 12, 12, 12, 12, 12, 12, 12,          12, 12, 12, 12, 12, 12, 12, 12,
70          12, 12, 12, 12, 12, 12, 12, 12,          12, 12, 12, 12, 12, 12, 12, 12,
71          12, 12, 12, 12, 12, 12, 12, 12,          12, 12, 12, 12, 12, 12, 12, 12,
# Line 87  Line 87 
87          bits = (x != 0 ? iFcode:0);          bits = (x != 0 ? iFcode:0);
88          x = -abs(x);          x = -abs(x);
89          x >>= (iFcode - 1);          x >>= (iFcode - 1);
90          bits += r_mvtab[x+63];          bits += r_mvtab[x+64];
91    
92          y -= pred.y;          y -= pred.y;
93          bits += (y != 0 ? iFcode:0);          bits += (y != 0 ? iFcode:0);
94          y = -abs(y);          y = -abs(y);
95          y >>= (iFcode - 1);          y >>= (iFcode - 1);
96          bits += r_mvtab[y+63];          bits += r_mvtab[y+64];
97    
98          return bits;          return bits;
99  }  }

Legend:
Removed from v.1772  
changed lines
  Added in v.1773

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