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-2010 Peter Ross <pross@xvid.org> |
* Copyright(C) 2001-2014 Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This program is free software ; you can redistribute it and/or modify |
* This program is free software ; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid.h,v 1.72 2010-12-18 10:13:30 Isibaar Exp $ |
* $Id$ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
57 |
#define XVID_API_MAJOR(a) (((a)>>16) & 0xff) |
#define XVID_API_MAJOR(a) (((a)>>16) & 0xff) |
58 |
#define XVID_API_MINOR(a) (((a)>> 0) & 0xff) |
#define XVID_API_MINOR(a) (((a)>> 0) & 0xff) |
59 |
|
|
60 |
#define XVID_VERSION XVID_MAKE_VERSION(1,3,-63) |
#define XVID_VERSION XVID_MAKE_VERSION(1,3,5) |
61 |
#define XVID_API XVID_MAKE_API(4, 3) |
#define XVID_API XVID_MAKE_API(4, 3) |
62 |
|
|
|
#define XVID_UNSTABLE |
|
|
|
|
63 |
/* Bitstream Version |
/* Bitstream Version |
64 |
* this will be writen into the bitstream to allow easy detection of xvid |
* this will be writen into the bitstream to allow easy detection of xvid |
65 |
* encoder bugs in the decoder, without this it might not possible to |
* encoder bugs in the decoder, without this it might not possible to |
71 |
* 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 |
72 |
* future |
* future |
73 |
*/ |
*/ |
74 |
#define XVID_BS_VERSION 58 |
#define XVID_BS_VERSION 67 |
75 |
|
|
76 |
/***************************************************************************** |
/***************************************************************************** |
77 |
* error codes |
* error codes |
447 |
int sse_v; /* [out] V plane's sse */ |
int sse_v; /* [out] V plane's sse */ |
448 |
/* End of duplicated data, kept only for binary compatibility */ |
/* End of duplicated data, kept only for binary compatibility */ |
449 |
|
|
450 |
int bquant_ratio; /* [in] */ |
int bquant_ratio; /* [out] */ |
451 |
int bquant_offset; /* [in] */ |
int bquant_offset; /* [out] */ |
452 |
|
|
453 |
xvid_enc_stats_t stats; /* [out] frame statistics */ |
xvid_enc_stats_t stats; /* [out] frame statistics */ |
454 |
} xvid_plg_data_t; |
} xvid_plg_data_t; |
746 |
int num_plugins; /* [in:opt] number of plugins */ |
int num_plugins; /* [in:opt] number of plugins */ |
747 |
xvid_enc_plugin_t * plugins; /* ^^ plugin array */ |
xvid_enc_plugin_t * plugins; /* ^^ plugin array */ |
748 |
|
|
749 |
int num_threads; /* [in:opt] number of threads */ |
int num_threads; /* [in:opt] number of threads to use in encoder */ |
750 |
int max_bframes; /* [in:opt] max sequential bframes (0=disable bframes) */ |
int max_bframes; /* [in:opt] max sequential bframes (0=disable bframes) */ |
751 |
|
|
752 |
int global; /* [in:opt] global flags; controls encoding behavior */ |
int global; /* [in:opt] global flags; controls encoding behavior */ |
772 |
|
|
773 |
/* ------- v1.3.x ------- */ |
/* ------- v1.3.x ------- */ |
774 |
int start_frame_num; /* [in:opt] frame number of start frame relative to zones definitions. allows to encode sub-sequences */ |
int start_frame_num; /* [in:opt] frame number of start frame relative to zones definitions. allows to encode sub-sequences */ |
775 |
|
int num_slices; /* [in:opt] number of slices to code for each frame */ |
776 |
} xvid_enc_create_t; |
} xvid_enc_create_t; |
777 |
|
|
778 |
|
|