1 |
|
#define KOEPI_2PASS |
2 |
/***************************************************************************** |
/***************************************************************************** |
3 |
* |
* |
4 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
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; |
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 |
|
|