42 |
#define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) ) |
#define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) ) |
43 |
#define MVequal(A,B) ( ((A).x)==((B).x) && ((A).y)==((B).y) ) |
#define MVequal(A,B) ( ((A).x)==((B).x) && ((A).y)==((B).y) ) |
44 |
|
|
45 |
static const uint32_t roundtab[16] = |
/***************************************************************************** |
46 |
{ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 }; |
* Modified rounding tables -- defined in motion_est.c |
47 |
|
* Original tables see ISO spec tables 7-6 -> 7-9 |
48 |
|
****************************************************************************/ |
49 |
|
|
50 |
/* |
extern const uint32_t roundtab[16]; |
|
* modified rounding tables |
|
|
* original tables see ISO spec tables 7-6 -> 7-9 |
|
|
*/ |
|
51 |
|
|
52 |
/* K = 4 */ |
/* K = 4 */ |
53 |
static const uint32_t roundtab_76[16] = { 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1 }; |
extern const uint32_t roundtab_76[16]; |
54 |
/* K = 2 */ |
/* K = 2 */ |
55 |
static const uint32_t roundtab_78[8] = { 0, 0, 1, 1, 0, 0, 0, 1 }; |
extern const uint32_t roundtab_78[8]; |
56 |
/* K = 1 */ |
/* K = 1 */ |
57 |
static const uint32_t roundtab_79[4] = { 0, 1, 0, 0 }; |
extern const uint32_t roundtab_79[4]; |
58 |
|
|
59 |
|
|
60 |
/* |
/* |