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 |
|
|
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) */ |
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) ) |
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 |
|
|