28 |
* ToDo ? : when BFRAMES is defined, the API_VERSION should not |
* ToDo ? : when BFRAMES is defined, the API_VERSION should not |
29 |
* be the same (3.0 ?) |
* be the same (3.0 ?) |
30 |
* |
* |
31 |
* $Id: xvid.h,v 1.11 2002-06-14 13:27:47 Isibaar Exp $ |
* $Id: xvid.h,v 1.13 2002-06-23 03:58:32 suxen_drol Exp $ |
32 |
* |
* |
33 |
*****************************************************************************/ |
*****************************************************************************/ |
34 |
|
|
37 |
#define _XVID_H_ |
#define _XVID_H_ |
38 |
|
|
39 |
#ifdef __cplusplus |
#ifdef __cplusplus |
40 |
* $Id: xvid.h,v 1.11 2002-06-14 13:27:47 Isibaar Exp $ |
* $Id: xvid.h,v 1.13 2002-06-23 03:58:32 suxen_drol Exp $ |
41 |
#endif |
#endif |
42 |
|
|
43 |
/***************************************************************************** |
/***************************************************************************** |
97 |
****************************************************************************/ |
****************************************************************************/ |
98 |
|
|
99 |
typedef struct |
typedef struct |
100 |
|
{ |
101 |
int cpu_flags; |
int cpu_flags; |
102 |
int api_version; |
int api_version; |
103 |
int core_build; |
int core_build; |
175 |
#define XVID_VALID_FLAGS 0x80000000 |
#define XVID_VALID_FLAGS 0x80000000 |
176 |
|
|
177 |
#define XVID_CUSTOM_QMATRIX 0x00000004 /* use custom quant matrix */ |
#define XVID_CUSTOM_QMATRIX 0x00000004 /* use custom quant matrix */ |
178 |
|
#define XVID_H263QUANT 0x00000010 |
179 |
|
#define XVID_MPEGQUANT 0x00000020 |
180 |
|
#define XVID_HALFPEL 0x00000040 /* use halfpel interpolation */ |
181 |
|
#define XVID_ADAPTIVEQUANT 0x00000080 |
182 |
|
#define XVID_LUMIMASKING 0x00000100 |
183 |
#define XVID_LATEINTRA 0x00000200 |
#define XVID_LATEINTRA 0x00000200 |
184 |
|
|
185 |
#define XVID_INTERLACING 0x00000400 /* enable interlaced encoding */ |
#define XVID_INTERLACING 0x00000400 /* enable interlaced encoding */ |
246 |
* used only when bquant < 1 |
* used only when bquant < 1 |
247 |
* eg. 200 = x2 multiplier |
* eg. 200 = x2 multiplier |
248 |
#endif |
#endif |
249 |
|
void *handle; /* [out] encoder instance handle */ |
250 |
} |
} |
251 |
XVID_ENC_PARAM; |
XVID_ENC_PARAM; |
252 |
|
|
310 |
typedef struct |
typedef struct |
311 |
{ |
{ |
312 |
int quant; /* [out] frame quantizer */ |
int quant; /* [out] frame quantizer */ |
|
int input_consumed; /* [out] */ |
|
313 |
int hlength; /* [out] header length (bytes) */ |
int hlength; /* [out] header length (bytes) */ |
314 |
int kblks, mblks, ublks; /* [out] */ |
int kblks, mblks, ublks; /* [out] */ |
315 |
|
|