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

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

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

revision 676, Mon Nov 25 13:38:56 2002 UTC revision 677, Tue Nov 26 23:44:11 2002 UTC
# Line 50  Line 50 
50   *  exception also makes it possible to release a modified version which   *  exception also makes it possible to release a modified version which
51   *  carries forward this exception.   *  carries forward this exception.
52   *   *
53   * $Id: motion.h,v 1.17 2002-11-17 00:32:06 edgomez Exp $   * $Id: motion.h,v 1.18 2002-11-26 23:44:10 edgomez Exp $
54   *   *
55   ***************************************************************************/   ***************************************************************************/
56    
# Line 62  Line 62 
62    
63  /* hard coded motion search parameters for motion_est */  /* hard coded motion search parameters for motion_est */
64    
65  // very large value  /* very large value */
66  #define MV_MAX_ERROR    (4096 * 256)  #define MV_MAX_ERROR    (4096 * 256)
67    
68  // stop search if sdelta < THRESHOLD  /* stop search if sdelta < THRESHOLD */
69  #define MV16_THRESHOLD  192  #define MV16_THRESHOLD  192
70  #define MV8_THRESHOLD   56  #define MV8_THRESHOLD   56
71    
72  #define NEIGH_MOVE_THRESH 0  #define NEIGH_MOVE_THRESH 0
73  // how much a block's MV must differ from his neighbour  /* how much a block's MV must differ from his neighbour  */
74  // to be search for INTER4V. The more, the faster...  /* to be search for INTER4V. The more, the faster... */
75    
76  /* sad16(0,0) bias; mpeg4 spec suggests nb/2+1 */  /* sad16(0,0) bias; mpeg4 spec suggests nb/2+1 */
77  /* nb  = vop pixels * 2^(bpp-8) */  /* nb  = vop pixels * 2^(bpp-8) */
# Line 88  Line 88 
88  #define NEIGH_TEND_16X16        2  #define NEIGH_TEND_16X16        2
89  #define NEIGH_TEND_8X8          2  #define NEIGH_TEND_8X8          2
90    
91  // fast ((A)/2)*2  /* fast ((A)/2)*2 */
92  #define EVEN(A)         (((A)<0?(A)+1:(A)) & ~1)  #define EVEN(A)         (((A)<0?(A)+1:(A)) & ~1)
93    
94  #define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) )  #define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) )
# Line 98  Line 98 
98    
99  #ifndef SEARCH16  #ifndef SEARCH16
100  #define SEARCH16        PMVfastSearch16  #define SEARCH16        PMVfastSearch16
101  //#define SEARCH16  FullSearch16  /*#define SEARCH16  FullSearch16 */
102  //#define SEARCH16  EPZSSearch16  /*#define SEARCH16  EPZSSearch16 */
103  #endif  #endif
104    
105  #ifndef SEARCH8  #ifndef SEARCH8
106  #define SEARCH8         PMVfastSearch8  #define SEARCH8         PMVfastSearch8
107  //#define SEARCH8   EPZSSearch8  /*#define SEARCH8   EPZSSearch8 */
108  #endif  #endif
109    
110    

Legend:
Removed from v.676  
changed lines
  Added in v.677

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