19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: global.h,v 1.21.2.6 2003-06-09 13:50:57 edgomez Exp $ |
* $Id: global.h,v 1.21.2.7 2003-06-28 15:50:55 chl Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
135 |
} |
} |
136 |
GMC_DATA; |
GMC_DATA; |
137 |
|
|
138 |
|
typedef struct NEW_GMC_DATA NEW_GMC_DATA; |
139 |
|
struct NEW_GMC_DATA |
140 |
|
{ |
141 |
|
int num_wp; // 0=none, 1=translation, 2,3 = warping |
142 |
|
// a value of -1 means: "structure not initialized!" |
143 |
|
int accuracy; // {0,1,2,3} => {1/2,1/4,1/8,1/16} pel |
144 |
|
|
145 |
|
int sW, sH; // sprite size * 16 |
146 |
|
int dU[2], dV[2], Uo, Vo, Uco, Vco; // gradient, calculated from warp points |
147 |
|
|
148 |
|
void (*predict_16x16)(const NEW_GMC_DATA * const This, |
149 |
|
uint8_t *dst, const uint8_t *src, |
150 |
|
int dststride, int srcstride, int x, int y, int rounding); |
151 |
|
void (*predict_8x8) (const NEW_GMC_DATA * const This, |
152 |
|
uint8_t *uDst, const uint8_t *uSrc, |
153 |
|
uint8_t *vDst, const uint8_t *vSrc, |
154 |
|
int dststride, int srcstride, int x, int y, int rounding); |
155 |
|
void (*get_average_mv)(NEW_GMC_DATA *Dsp, VECTOR * const mv, |
156 |
|
int x, int y, int qpel); |
157 |
|
}; |
158 |
|
|
159 |
typedef struct |
typedef struct |
160 |
{ |
{ |