46 |
#include "xvid.h" |
#include "xvid.h" |
47 |
#include "portab.h" |
#include "portab.h" |
48 |
#include "global.h" |
#include "global.h" |
|
#include "image/image.h" |
|
49 |
#include "utils/ratecontrol.h" |
#include "utils/ratecontrol.h" |
50 |
|
|
51 |
/***************************************************************************** |
/***************************************************************************** |
98 |
int bquant_offset; |
int bquant_offset; |
99 |
int frame_drop_ratio; |
int frame_drop_ratio; |
100 |
|
|
|
#ifdef _SMP |
|
|
int num_threads; |
|
|
#endif |
|
|
|
|
101 |
int iMaxKeyInterval; |
int iMaxKeyInterval; |
102 |
int max_bframes; |
int max_bframes; |
103 |
|
|
128 |
int kblks; |
int kblks; |
129 |
int mblks; |
int mblks; |
130 |
int ublks; |
int ublks; |
131 |
|
int gblks; |
132 |
} |
} |
133 |
Statistics; |
Statistics; |
134 |
|
|
152 |
IMAGE image; |
IMAGE image; |
153 |
|
|
154 |
MACROBLOCK *mbs; |
MACROBLOCK *mbs; |
155 |
VECTOR GMC_MV; |
|
156 |
|
WARPPOINTS warp; // as in bitstream |
157 |
|
GMC_DATA gmc_data; // common data for all MBs |
158 |
|
|
159 |
Statistics sStat; |
Statistics sStat; |
160 |
} |
} |
161 |
FRAMEINFO; |
FRAMEINFO; |
162 |
|
|
163 |
|
|
|
|
|
164 |
typedef struct |
typedef struct |
165 |
{ |
{ |
166 |
MBParam mbParam; |
MBParam mbParam; |
173 |
FRAMEINFO *current; |
FRAMEINFO *current; |
174 |
FRAMEINFO *reference; |
FRAMEINFO *reference; |
175 |
|
|
|
#ifdef _DEBUG_PSNR |
|
176 |
IMAGE sOriginal; |
IMAGE sOriginal; |
|
#endif |
|
177 |
IMAGE vInterH; |
IMAGE vInterH; |
178 |
IMAGE vInterV; |
IMAGE vInterV; |
179 |
IMAGE vInterVf; |
IMAGE vInterVf; |
180 |
IMAGE vInterHV; |
IMAGE vInterHV; |
181 |
IMAGE vInterHVf; |
IMAGE vInterHVf; |
182 |
|
|
183 |
|
IMAGE vGMC; |
184 |
|
|
185 |
/* image queue */ |
/* image queue */ |
186 |
int queue_head; |
int queue_head; |
187 |
int queue_tail; |
int queue_tail; |