1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - Global definitions - |
5 |
|
* |
6 |
|
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
|
* |
8 |
|
* This program is free software ; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
10 |
|
* the Free Software Foundation ; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program is distributed in the hope that it will be useful, |
14 |
|
* but WITHOUT ANY WARRANTY ; without even the implied warranty of |
15 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program ; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id$ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
#ifndef _GLOBAL_H_ |
#ifndef _GLOBAL_H_ |
27 |
#define _GLOBAL_H_ |
#define _GLOBAL_H_ |
28 |
|
|
132 |
int dxF, dyF, dxG, dyG; |
int dxF, dyF, dxG, dyG; |
133 |
int Fo, Go; |
int Fo, Go; |
134 |
int cFo, cGo; |
int cFo, cGo; |
135 |
} |
} GMC_DATA; |
|
GMC_DATA; |
|
136 |
|
|
137 |
|
typedef struct _NEW_GMC_DATA |
138 |
|
{ |
139 |
|
/* 0=none, 1=translation, 2,3 = warping |
140 |
|
* a value of -1 means: "structure not initialized!" */ |
141 |
|
int num_wp; |
142 |
|
|
143 |
|
/* {0,1,2,3} => {1/2,1/4,1/8,1/16} pel */ |
144 |
|
int accuracy; |
145 |
|
|
146 |
|
/* sprite size * 16 */ |
147 |
|
int sW, sH; |
148 |
|
|
149 |
|
/* gradient, calculated from warp points */ |
150 |
|
int dU[2], dV[2], Uo, Vo, Uco, Vco; |
151 |
|
|
152 |
|
void (*predict_16x16)(const struct _NEW_GMC_DATA * const This, |
153 |
|
uint8_t *dst, const uint8_t *src, |
154 |
|
int dststride, int srcstride, int x, int y, int rounding); |
155 |
|
void (*predict_8x8) (const struct _NEW_GMC_DATA * const This, |
156 |
|
uint8_t *uDst, const uint8_t *uSrc, |
157 |
|
uint8_t *vDst, const uint8_t *vSrc, |
158 |
|
int dststride, int srcstride, int x, int y, int rounding); |
159 |
|
void (*get_average_mv)(const struct _NEW_GMC_DATA * const Dsp, VECTOR * const mv, |
160 |
|
int x, int y, int qpel); |
161 |
|
} NEW_GMC_DATA; |
162 |
|
|
163 |
typedef struct |
typedef struct |
164 |
{ |
{ |