25 |
|
|
26 |
typedef struct |
typedef struct |
27 |
{ |
{ |
28 |
|
VECTOR duv[3]; |
29 |
|
} |
30 |
|
WARPPOINTS; |
31 |
|
|
32 |
|
/* save all warping parameters for GMC once and for all, instead of |
33 |
|
recalculating for every block. This is needed for encoding&decoding |
34 |
|
When switching to incremental calculations, this will get much shorter |
35 |
|
*/ |
36 |
|
|
37 |
|
/* we don't include WARPPOINTS wp here, but in FRAMEINFO itself */ |
38 |
|
|
39 |
|
typedef struct |
40 |
|
{ |
41 |
|
int num_wp; // [input]: 0=none, 1=translation, 2,3 = warping |
42 |
|
// a value of -1 means: "structure not initialized!" |
43 |
|
int s; // [input]: calc is done with 1/s pel resolution |
44 |
|
|
45 |
|
int W; |
46 |
|
int H; |
47 |
|
|
48 |
|
int ss; |
49 |
|
int smask; |
50 |
|
int sigma; |
51 |
|
|
52 |
|
int r; |
53 |
|
int rho; |
54 |
|
|
55 |
|
int i0s; |
56 |
|
int j0s; |
57 |
|
int i1s; |
58 |
|
int j1s; |
59 |
|
// int i2s; |
60 |
|
// int j2s; |
61 |
|
|
62 |
|
int i1ss; |
63 |
|
int j1ss; |
64 |
|
// int i2ss; |
65 |
|
// int j2ss; |
66 |
|
|
67 |
|
int alpha; |
68 |
|
// int beta; |
69 |
|
int Ws; |
70 |
|
// int Hs; |
71 |
|
} |
72 |
|
GMC_DATA; |
73 |
|
|
74 |
|
|
75 |
|
typedef struct |
76 |
|
{ |
77 |
uint8_t *y; |
uint8_t *y; |
78 |
uint8_t *u; |
uint8_t *u; |
79 |
uint8_t *v; |
uint8_t *v; |
148 |
int32_t i_sad8[4]; // SAD values for inter4v-VECTORs |
int32_t i_sad8[4]; // SAD values for inter4v-VECTORs |
149 |
// int32_t i_sad16; // SAD value for inter-VECTOR |
// int32_t i_sad16; // SAD value for inter-VECTOR |
150 |
|
|
151 |
|
VECTOR amv; // average motion vectors from GMC |
152 |
|
int32_t mcsel; |
153 |
|
|
154 |
|
/* This structure has become way to big! What to do? Split it up? */ |
155 |
|
|
156 |
} |
} |
157 |
MACROBLOCK; |
MACROBLOCK; |