3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Encoder header - |
* - Encoder header - |
5 |
* |
* |
6 |
|
* Copyright(C) 2002 Michael Militzer |
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 |
* |
* |
|
****************************************************************************/ |
|
|
/***************************************************************************** |
|
|
* |
|
|
* 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 |
|
|
* |
|
31 |
* $Id$ |
* $Id$ |
32 |
* |
* |
33 |
****************************************************************************/ |
****************************************************************************/ |
84 |
uint32_t fincr; |
uint32_t fincr; |
85 |
uint32_t fbase; |
uint32_t fbase; |
86 |
|
|
87 |
#ifdef BFRAMES |
#ifdef _SMP |
88 |
int max_bframes; |
int num_threads; |
89 |
#endif |
#endif |
90 |
|
|
91 |
/* rounding type; alternate 0-1 after each interframe */ |
/* rounding type; alternate 0-1 after each interframe */ |
100 |
|
|
101 |
HINTINFO *hint; |
HINTINFO *hint; |
102 |
|
|
|
#ifdef BFRAMES |
|
103 |
uint32_t m_seconds; |
uint32_t m_seconds; |
104 |
uint32_t m_ticks; |
uint32_t m_ticks; |
|
#endif |
|
105 |
|
|
106 |
} |
} |
107 |
MBParam; |
MBParam; |
118 |
uint32_t fcode; |
uint32_t fcode; |
119 |
uint32_t bcode; |
uint32_t bcode; |
120 |
|
|
|
#ifdef BFRAMES |
|
121 |
uint32_t seconds; |
uint32_t seconds; |
122 |
uint32_t ticks; |
uint32_t ticks; |
|
#endif |
|
123 |
|
|
124 |
IMAGE image; |
IMAGE image; |
125 |
|
|
155 |
FRAMEINFO *current; |
FRAMEINFO *current; |
156 |
FRAMEINFO *reference; |
FRAMEINFO *reference; |
157 |
|
|
158 |
#ifdef _DEBUG |
#ifdef _DEBUG_PSNR |
159 |
IMAGE sOriginal; |
IMAGE sOriginal; |
160 |
#endif |
#endif |
161 |
IMAGE vInterH; |
IMAGE vInterH; |
164 |
IMAGE vInterHV; |
IMAGE vInterHV; |
165 |
IMAGE vInterHVf; |
IMAGE vInterHVf; |
166 |
|
|
|
#ifdef BFRAMES |
|
|
/* constants */ |
|
|
int bquant_ratio; |
|
|
/* vars */ |
|
|
int bframenum_head; |
|
|
int bframenum_tail; |
|
|
int flush_bframes; |
|
|
|
|
|
FRAMEINFO **bframes; |
|
|
IMAGE f_refh; |
|
|
IMAGE f_refv; |
|
|
IMAGE f_refhv; |
|
|
#endif |
|
167 |
Statistics sStat; |
Statistics sStat; |
168 |
RateControl rate_control; |
RateControl rate_control; |
169 |
} |
} |
214 |
XVID_ENC_FRAME * pFrame, |
XVID_ENC_FRAME * pFrame, |
215 |
XVID_ENC_STATS * pResult); |
XVID_ENC_STATS * pResult); |
216 |
|
|
217 |
|
int encoder_encode_bframes(Encoder * pEnc, |
218 |
|
XVID_ENC_FRAME * pFrame, |
219 |
|
XVID_ENC_STATS * pResult); |
220 |
|
|
221 |
#endif |
#endif |