3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Encoder header - |
* - Encoder header - |
5 |
* |
* |
6 |
|
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
|
* |
8 |
* This program is an implementation of a part of one or more MPEG-4 |
* This program is an implementation of a part of one or more MPEG-4 |
9 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
10 |
* to use this software module in hardware or software products are |
* to use this software module in hardware or software products are |
28 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
29 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
30 |
* |
* |
31 |
****************************************************************************/ |
* $Id: encoder.h,v 1.23 2002-10-19 11:41:11 edgomez Exp $ |
|
/***************************************************************************** |
|
|
* |
|
|
* History |
|
|
* |
|
|
* - 13.06.2002 Added legal header |
|
|
* - 22.08.2001 Added support for EXT_MODE encoding mode |
|
|
* support for EXTENDED API |
|
|
* - 22.08.2001 fixed bug in iDQtab |
|
|
* |
|
|
* $Id: encoder.h,v 1.18 2002-09-03 17:24:26 chl Exp $ |
|
32 |
* |
* |
33 |
****************************************************************************/ |
****************************************************************************/ |
34 |
|
|
88 |
int num_threads; |
int num_threads; |
89 |
#endif |
#endif |
90 |
|
|
|
#ifdef BFRAMES |
|
|
int max_bframes; |
|
|
#endif |
|
|
|
|
91 |
/* rounding type; alternate 0-1 after each interframe */ |
/* rounding type; alternate 0-1 after each interframe */ |
92 |
/* 1 <= fixed_code <= 4 |
/* 1 <= fixed_code <= 4 |
93 |
automatically adjusted using motion vector statistics inside |
automatically adjusted using motion vector statistics inside |
160 |
#endif |
#endif |
161 |
IMAGE vInterH; |
IMAGE vInterH; |
162 |
IMAGE vInterV; |
IMAGE vInterV; |
|
IMAGE vInterVf; |
|
163 |
IMAGE vInterHV; |
IMAGE vInterHV; |
|
IMAGE vInterHVf; |
|
|
|
|
|
#ifdef BFRAMES |
|
|
/* constants */ |
|
|
int global; |
|
|
int bquant_ratio; |
|
|
int frame_drop_ratio; |
|
|
|
|
|
/* image queue */ |
|
|
int queue_head; |
|
|
int queue_tail; |
|
|
int queue_size; |
|
|
IMAGE *queue; |
|
|
|
|
|
/* bframe buffer */ |
|
|
int bframenum_head; |
|
|
int bframenum_tail; |
|
|
int flush_bframes; |
|
|
|
|
|
FRAMEINFO **bframes; |
|
|
IMAGE f_refh; |
|
|
IMAGE f_refv; |
|
|
IMAGE f_refhv; |
|
|
int bframenum_dx50bvop; |
|
|
|
|
|
int last_pframe; |
|
|
int last_sync; |
|
|
int time_pp; |
|
|
int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ |
|
|
#endif |
|
164 |
|
|
165 |
Statistics sStat; |
Statistics sStat; |
166 |
RateControl rate_control; |
RateControl rate_control; |