1 |
/***************************************************************************** |
/***************************************************************************** |
2 |
* |
* |
3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - XviD Main header file - |
* - Xvid Main header file - |
5 |
* |
* |
6 |
* Copyright(C) 2001-2004 Peter Ross <pross@xvid.org> |
* Copyright(C) 2001-2004 Peter Ross <pross@xvid.org> |
7 |
* |
* |
73 |
* doesnt hurt but not increasing it could cause difficulty for decoders in the |
* doesnt hurt but not increasing it could cause difficulty for decoders in the |
74 |
* future |
* future |
75 |
*/ |
*/ |
76 |
#define XVID_BS_VERSION 55 |
#define XVID_BS_VERSION 57 |
77 |
|
|
78 |
/***************************************************************************** |
/***************************************************************************** |
79 |
* error codes |
* error codes |
236 |
extern int xvid_decore(void *handle, int opt, void *param1, void *param2); |
extern int xvid_decore(void *handle, int opt, void *param1, void *param2); |
237 |
|
|
238 |
/* XVID_DEC_CREATE param 1 |
/* XVID_DEC_CREATE param 1 |
239 |
image width & height may be specified here when the dimensions are |
image width & height as well as FourCC code may be specified |
240 |
known in advance. */ |
here when known in advance (e.g. being read from container) */ |
241 |
typedef struct { |
typedef struct { |
242 |
int version; |
int version; |
243 |
int width; /* [in:opt] image width */ |
int width; /* [in:opt] image width */ |
244 |
int height; /* [in:opt] image width */ |
int height; /* [in:opt] image width */ |
245 |
void * handle; /* [out] decore context handle */ |
void * handle; /* [out] decore context handle */ |
246 |
|
int fourcc; /* [in:opt] fourcc of the video */ |
247 |
} xvid_dec_create_t; |
} xvid_dec_create_t; |
248 |
|
|
249 |
|
|
560 |
|
|
561 |
} xvid_plugin_ssim_t; |
} xvid_plugin_ssim_t; |
562 |
|
|
563 |
|
typedef struct { |
564 |
|
int version; |
565 |
|
|
566 |
|
int method; /* [in] masking method to apply. 0 for luminance masking, 1 for variance masking */ |
567 |
|
} xvid_plugin_lumimasking_t; |
568 |
|
|
569 |
/***************************************************************************** |
/***************************************************************************** |
570 |
* ENCODER API |
* ENCODER API |
571 |
****************************************************************************/ |
****************************************************************************/ |
763 |
/* ---------------------------------------------- */ |
/* ---------------------------------------------- */ |
764 |
|
|
765 |
void *handle; /* [out] encoder instance handle */ |
void *handle; /* [out] encoder instance handle */ |
766 |
|
|
767 |
|
/* ------- v1.3.x ------- */ |
768 |
|
int start_frame_num; /* [in:opt] frame number of start frame relative to zones definitions. allows to encode sub-sequences */ |
769 |
} xvid_enc_create_t; |
} xvid_enc_create_t; |
770 |
|
|
771 |
|
|