Mercurial > libavcodec.hg
comparison avcodec.h @ 378:7875553fc63b libavcodec
I was too lazy to be a hero ;)
author | nickols_k |
---|---|
date | Sun, 12 May 2002 15:30:10 +0000 |
parents | 0d73175fbded |
children | 47c878305986 |
comparison
equal
deleted
inserted
replaced
377:0d73175fbded | 378:7875553fc63b |
---|---|
228 void *opaque; /* can be used to carry app specific stuff */ | 228 void *opaque; /* can be used to carry app specific stuff */ |
229 char codec_name[32]; | 229 char codec_name[32]; |
230 enum CodecType codec_type; /* see CODEC_TYPE_xxx */ | 230 enum CodecType codec_type; /* see CODEC_TYPE_xxx */ |
231 enum CodecID codec_id; /* see CODEC_ID_xxx */ | 231 enum CodecID codec_id; /* see CODEC_ID_xxx */ |
232 unsigned int codec_tag; /* codec tag, only used if unknown codec */ | 232 unsigned int codec_tag; /* codec tag, only used if unknown codec */ |
233 /* | |
234 Note: Below are located reserved fields for further usage | |
235 It requires for ABI !!! | |
236 If you'll perform some changes then borrow new space from these fields | |
237 (void * can be safety replaced with struct * ;) | |
238 P L E A S E ! ! ! | |
239 IMPORTANT: Never change order of already declared fields!!! | |
240 */ | |
241 unsigned long long int | |
242 ull_res0,ull_res1,ull_res2,ull_res3,ull_res4,ull_res5, | |
243 ull_res6,ull_res7,ull_res8,ull_res9,ull_res10,ull_res11,ull_res12; | |
244 float | |
245 flt_res0,flt_res1,flt_res2,flt_res3,flt_res4,flt_res5, | |
246 flt_res6,flt_res7,flt_res8,flt_res9,flt_res10,flt_res11,flt_res12; | |
247 void | |
248 *ptr_res0,*ptr_res1,*ptr_res2,*ptr_res3,*ptr_res4,*ptr_res5, | |
249 *ptr_res6,*ptr_res7,*ptr_res8,*ptr_res9,*ptr_res10,*ptr_res11,*ptr_res12; | |
250 unsigned long int | |
251 ul_res0,ul_res1,ul_res2,ul_res3,ul_res4,ul_res5, | |
252 ul_res6,ul_res7,ul_res8,ul_res9,ul_res10,ul_res11,ul_res12; | |
253 unsigned int | |
254 ui_res0,ui_res1,ui_res2,ui_res3,ui_res4,ui_res5, | |
255 ui_res6,ui_res7,ui_res8,ui_res9,ui_res10,ui_res11,ui_res12; | |
256 unsigned short int | |
257 us_res0,us_res1,us_res2,us_res3,us_res4,us_res5, | |
258 us_res6,us_res7,us_res8,us_res9,us_res10,us_res11,us_res12; | |
259 unsigned char | |
260 uc_res0,uc_res1,uc_res2,uc_res3,uc_res4,uc_res5, | |
261 uc_res6,uc_res7,uc_res8,uc_res9,uc_res10,uc_res11,uc_res12; | |
233 } AVCodecContext; | 262 } AVCodecContext; |
234 | 263 |
235 typedef struct AVCodec { | 264 typedef struct AVCodec { |
236 char *name; | 265 char *name; |
237 int type; | 266 int type; |
242 int (*close)(AVCodecContext *); | 271 int (*close)(AVCodecContext *); |
243 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, | 272 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, |
244 UINT8 *buf, int buf_size); | 273 UINT8 *buf, int buf_size); |
245 int capabilities; | 274 int capabilities; |
246 struct AVCodec *next; | 275 struct AVCodec *next; |
276 /* | |
277 Note: Below are located reserved fields for further usage | |
278 It requires for ABI !!! | |
279 If you'll perform some changes then borrow new space from these fields | |
280 (void * can be safety replaced with struct * ;) | |
281 P L E A S E ! ! ! | |
282 IMPORTANT: Never change order of already declared fields!!! | |
283 */ | |
284 unsigned long long int | |
285 ull_res0,ull_res1,ull_res2,ull_res3,ull_res4,ull_res5, | |
286 ull_res6,ull_res7,ull_res8,ull_res9,ull_res10,ull_res11,ull_res12; | |
287 float | |
288 flt_res0,flt_res1,flt_res2,flt_res3,flt_res4,flt_res5, | |
289 flt_res6,flt_res7,flt_res8,flt_res9,flt_res10,flt_res11,flt_res12; | |
290 void | |
291 *ptr_res0,*ptr_res1,*ptr_res2,*ptr_res3,*ptr_res4,*ptr_res5, | |
292 *ptr_res6,*ptr_res7,*ptr_res8,*ptr_res9,*ptr_res10,*ptr_res11,*ptr_res12; | |
247 } AVCodec; | 293 } AVCodec; |
248 | 294 |
249 /* three components are given, that's all */ | 295 /* three components are given, that's all */ |
250 typedef struct AVPicture { | 296 typedef struct AVPicture { |
251 UINT8 *data[3]; | 297 UINT8 *data[3]; |