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.23 2004-03-22 22:36:23 edgomez Exp $ |
* $Id: global.h,v 1.26 2010-09-13 07:38:09 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
48 |
#define MODE_DIRECT_NONE_MV 4 |
#define MODE_DIRECT_NONE_MV 4 |
49 |
#define MODE_DIRECT_NO4V 5 |
#define MODE_DIRECT_NO4V 5 |
50 |
|
|
|
|
|
51 |
/* |
/* |
52 |
* vop coding types |
* vop coding types |
53 |
* intra, prediction, backward, sprite, not_coded |
* intra, prediction, backward, sprite, not_coded |
72 |
return xvid_type - 1; |
return xvid_type - 1; |
73 |
} |
} |
74 |
|
|
|
|
|
75 |
typedef struct |
typedef struct |
76 |
{ |
{ |
77 |
int x; |
int x; |
79 |
} |
} |
80 |
VECTOR; |
VECTOR; |
81 |
|
|
|
|
|
|
|
|
82 |
typedef struct |
typedef struct |
83 |
{ |
{ |
84 |
VECTOR duv[3]; |
VECTOR duv[3]; |
164 |
} |
} |
165 |
IMAGE; |
IMAGE; |
166 |
|
|
|
|
|
167 |
typedef struct |
typedef struct |
168 |
{ |
{ |
169 |
uint32_t bufa; |
uint32_t bufa; |
177 |
} |
} |
178 |
Bitstream; |
Bitstream; |
179 |
|
|
|
|
|
180 |
#define MBPRED_SIZE 15 |
#define MBPRED_SIZE 15 |
181 |
|
|
|
|
|
182 |
typedef struct |
typedef struct |
183 |
{ |
{ |
184 |
/* decoder/encoder */ |
/* decoder/encoder */ |
206 |
int dquant; |
int dquant; |
207 |
int cbp; |
int cbp; |
208 |
|
|
209 |
|
/* lambda for these blocks */ |
210 |
|
int lambda[6]; |
211 |
|
|
212 |
/* bframe stuff */ |
/* bframe stuff */ |
213 |
|
|
214 |
VECTOR b_mvs[4]; |
VECTOR b_mvs[4]; |
217 |
VECTOR amv; /* average motion vectors from GMC */ |
VECTOR amv; /* average motion vectors from GMC */ |
218 |
int32_t mcsel; |
int32_t mcsel; |
219 |
|
|
220 |
|
VECTOR mvs_avg; //CK average of field motion vectors |
221 |
|
|
222 |
/* This structure has become way to big! What to do? Split it up? */ |
/* This structure has become way to big! What to do? Split it up? */ |
223 |
|
|
224 |
} |
} |