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 |
/***************************************************************************** |
/***************************************************************************** |
92 |
uint32_t fincr; |
uint32_t fincr; |
93 |
uint32_t fbase; |
uint32_t fbase; |
94 |
|
|
95 |
#ifdef _SMP |
/* constants */ |
96 |
int num_threads; |
int global; |
97 |
#endif |
int bquant_ratio; |
98 |
|
int bquant_offset; |
99 |
|
int frame_drop_ratio; |
100 |
|
|
101 |
|
int iMaxKeyInterval; |
102 |
int max_bframes; |
int max_bframes; |
103 |
|
|
104 |
/* rounding type; alternate 0-1 after each interframe */ |
/* rounding type; alternate 0-1 after each interframe */ |
111 |
uint32_t m_rounding_type; |
uint32_t m_rounding_type; |
112 |
uint32_t m_fcode; |
uint32_t m_fcode; |
113 |
uint32_t m_quarterpel; |
uint32_t m_quarterpel; |
114 |
|
int m_reduced_resolution; /* reduced_resolution_enable */ |
115 |
|
|
116 |
HINTINFO *hint; |
HINTINFO *hint; |
117 |
|
|
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; |
167 |
|
|
168 |
int iFrameNum; |
int iFrameNum; |
|
int iMaxKeyInterval; |
|
169 |
int bitrate; |
int bitrate; |
170 |
|
|
171 |
// images |
// images |
182 |
IMAGE vInterHV; |
IMAGE vInterHV; |
183 |
IMAGE vInterHVf; |
IMAGE vInterHVf; |
184 |
|
|
185 |
/* constants */ |
IMAGE vGMC; |
|
int global; |
|
|
int bquant_ratio; |
|
|
int bquant_offset; |
|
|
int frame_drop_ratio; |
|
186 |
|
|
187 |
/* image queue */ |
/* image queue */ |
188 |
int queue_head; |
int queue_head; |