1 |
|
#define KOEPI_2PASS |
2 |
/***************************************************************************** |
/***************************************************************************** |
3 |
* |
* |
4 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
29 |
* ToDo ? : when BFRAMES is defined, the API_VERSION should not |
* ToDo ? : when BFRAMES is defined, the API_VERSION should not |
30 |
* be the same (3.0 ?) |
* be the same (3.0 ?) |
31 |
* |
* |
32 |
* $Id: xvid.h,v 1.17.2.7 2002-11-02 16:08:14 chl Exp $ |
* $Id: xvid.h,v 1.17.2.10 2002-11-08 10:10:48 suxen_drol Exp $ |
33 |
* |
* |
34 |
*****************************************************************************/ |
*****************************************************************************/ |
35 |
|
|
111 |
#define XVID_CPU_CHKONLY 0x40000000 /* check cpu only; dont init globals */ |
#define XVID_CPU_CHKONLY 0x40000000 /* check cpu only; dont init globals */ |
112 |
#define XVID_CPU_FORCE 0x80000000 |
#define XVID_CPU_FORCE 0x80000000 |
113 |
|
|
114 |
|
typedef struct |
115 |
|
{ |
116 |
|
int colorspace; |
117 |
|
void * y; |
118 |
|
void * u; |
119 |
|
void * v; |
120 |
|
int y_stride; |
121 |
|
int uv_stride; |
122 |
|
} XVID_IMAGE; /* from yv12 */ |
123 |
|
|
124 |
|
#define XVID_INIT_INIT 0 |
125 |
|
#define XVID_INIT_CONVERT 1 |
126 |
|
|
127 |
/***************************************************************************** |
/***************************************************************************** |
128 |
* Initialization structures |
* Initialization structures |
136 |
} |
} |
137 |
XVID_INIT_PARAM; |
XVID_INIT_PARAM; |
138 |
|
|
139 |
|
typedef struct |
140 |
|
{ |
141 |
|
XVID_IMAGE input; |
142 |
|
XVID_IMAGE output; |
143 |
|
int width; |
144 |
|
int height; |
145 |
|
int interlacing; |
146 |
|
} XVID_INIT_CONVERTINFO; |
147 |
|
|
148 |
/***************************************************************************** |
/***************************************************************************** |
149 |
* Initialization entry point |
* Initialization entry point |
150 |
****************************************************************************/ |
****************************************************************************/ |
175 |
XVID_DEC_PARAM; |
XVID_DEC_PARAM; |
176 |
|
|
177 |
|
|
178 |
|
#define XVID_DEC_VOP 0 |
179 |
|
#define XVID_DEC_VOL 1 |
180 |
|
|
181 |
|
typedef struct |
182 |
|
{ |
183 |
|
int notify; /* [out] output 'mode' */ |
184 |
|
union |
185 |
|
{ |
186 |
|
struct /* XVID_DEC_VOP */ |
187 |
|
{ |
188 |
|
int time_base; /* [out] time base */ |
189 |
|
int time_increment; /* [out] time increment */ |
190 |
|
} vop; |
191 |
|
struct /* XVID_DEC_VOL */ |
192 |
|
{ |
193 |
|
int general; /* [out] flags: eg. frames are interlaced */ |
194 |
|
int width; /* [out] width */ |
195 |
|
int height; /* [out] height */ |
196 |
|
int aspect_ratio; /* [out] aspect ratio */ |
197 |
|
int par_width; /* [out] aspect ratio width */ |
198 |
|
int par_height; /* [out] aspect ratio height */ |
199 |
|
} vol; |
200 |
|
} data; |
201 |
|
} XVID_DEC_STATS; |
202 |
|
|
203 |
|
|
204 |
typedef struct |
typedef struct |
205 |
{ |
{ |
206 |
int general; |
int general; |
273 |
#define XVID_ME_PMVFAST 0x00080000 |
#define XVID_ME_PMVFAST 0x00080000 |
274 |
#define XVID_ME_EPZS 0x00100000 |
#define XVID_ME_EPZS 0x00100000 |
275 |
|
|
|
|
|
276 |
#define XVID_GREYSCALE 0x01000000 /* enable greyscale only mode (even for */ |
#define XVID_GREYSCALE 0x01000000 /* enable greyscale only mode (even for */ |
277 |
#define XVID_GRAYSCALE 0x01000000 /* color input material chroma is ignored) */ |
#define XVID_GRAYSCALE 0x01000000 /* color input material chroma is ignored) */ |
278 |
|
|
279 |
#define XVID_GMC 0x20000000 |
#define XVID_GMC 0x20000000 |
280 |
|
#define XVID_ME_COLOUR 0x40000000 |
281 |
|
|
282 |
/* Flags for XVID_ENC_FRAME.motion */ |
/* Flags for XVID_ENC_FRAME.motion */ |
283 |
#define PMV_ADVANCEDDIAMOND8 0x00004000 |
#define PMV_ADVANCEDDIAMOND8 0x00004000 |
302 |
#define PMV_USESQUARES8 0x80000000 |
#define PMV_USESQUARES8 0x80000000 |
303 |
|
|
304 |
|
|
305 |
|
|
306 |
/***************************************************************************** |
/***************************************************************************** |
307 |
* Encoder structures |
* Encoder structures |
308 |
****************************************************************************/ |
****************************************************************************/ |
373 |
int length; /* [out] bitstream length (bytes) */ |
int length; /* [out] bitstream length (bytes) */ |
374 |
|
|
375 |
void *image; /* [in] image ptr */ |
void *image; /* [in] image ptr */ |
376 |
|
int stride; |
377 |
int colorspace; /* [in] source colorspace */ |
int colorspace; /* [in] source colorspace */ |
378 |
|
|
379 |
unsigned char *quant_intra_matrix; // [in] custom intra qmatrix */ |
unsigned char *quant_intra_matrix; // [in] custom intra qmatrix */ |
395 |
int quant; /* [out] frame quantizer */ |
int quant; /* [out] frame quantizer */ |
396 |
int hlength; /* [out] header length (bytes) */ |
int hlength; /* [out] header length (bytes) */ |
397 |
int kblks, mblks, ublks; /* [out] */ |
int kblks, mblks, ublks; /* [out] */ |
|
|
|
398 |
} |
} |
399 |
XVID_ENC_STATS; |
XVID_ENC_STATS; |
400 |
|
|