93 |
uint32_t fincr; |
uint32_t fincr; |
94 |
uint32_t fbase; |
uint32_t fbase; |
95 |
|
|
96 |
|
/* constants */ |
97 |
|
int global; |
98 |
|
int bquant_ratio; |
99 |
|
int bquant_offset; |
100 |
|
int frame_drop_ratio; |
101 |
|
|
102 |
#ifdef _SMP |
#ifdef _SMP |
103 |
int num_threads; |
int num_threads; |
104 |
#endif |
#endif |
105 |
|
|
106 |
|
int iMaxKeyInterval; |
107 |
int max_bframes; |
int max_bframes; |
108 |
|
|
109 |
/* rounding type; alternate 0-1 after each interframe */ |
/* rounding type; alternate 0-1 after each interframe */ |
116 |
uint32_t m_rounding_type; |
uint32_t m_rounding_type; |
117 |
uint32_t m_fcode; |
uint32_t m_fcode; |
118 |
uint32_t m_quarterpel; |
uint32_t m_quarterpel; |
119 |
|
int m_reduced_resolution; /* reduced_resolution_enable */ |
120 |
|
|
121 |
HINTINFO *hint; |
HINTINFO *hint; |
122 |
|
|
127 |
|
|
128 |
typedef struct |
typedef struct |
129 |
{ |
{ |
130 |
|
int iTextBits; |
131 |
|
int iMvSum; |
132 |
|
int iMvCount; |
133 |
|
int kblks; |
134 |
|
int mblks; |
135 |
|
int ublks; |
136 |
|
} |
137 |
|
Statistics; |
138 |
|
|
139 |
|
|
140 |
|
typedef struct |
141 |
|
{ |
142 |
uint32_t quant; |
uint32_t quant; |
143 |
uint32_t motion_flags; |
uint32_t motion_flags; |
144 |
uint32_t global_flags; |
uint32_t global_flags; |
157 |
|
|
158 |
MACROBLOCK *mbs; |
MACROBLOCK *mbs; |
159 |
VECTOR GMC_MV; |
VECTOR GMC_MV; |
|
} |
|
|
FRAMEINFO; |
|
160 |
|
|
161 |
typedef struct |
Statistics sStat; |
|
{ |
|
|
int iTextBits; |
|
|
float fMvPrevSigma; |
|
|
int iMvSum; |
|
|
int iMvCount; |
|
|
int kblks; |
|
|
int mblks; |
|
|
int ublks; |
|
162 |
} |
} |
163 |
Statistics; |
FRAMEINFO; |
164 |
|
|
165 |
|
|
166 |
|
|
169 |
MBParam mbParam; |
MBParam mbParam; |
170 |
|
|
171 |
int iFrameNum; |
int iFrameNum; |
|
int iMaxKeyInterval; |
|
172 |
int bitrate; |
int bitrate; |
173 |
|
|
174 |
// images |
// images |
185 |
IMAGE vInterHV; |
IMAGE vInterHV; |
186 |
IMAGE vInterHVf; |
IMAGE vInterHVf; |
187 |
|
|
|
/* constants */ |
|
|
int global; |
|
|
int bquant_ratio; |
|
|
int bquant_offset; |
|
|
int frame_drop_ratio; |
|
|
|
|
188 |
/* image queue */ |
/* image queue */ |
189 |
int queue_head; |
int queue_head; |
190 |
int queue_tail; |
int queue_tail; |
204 |
|
|
205 |
int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ |
int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ |
206 |
|
|
|
Statistics sStat; |
|
207 |
RateControl rate_control; |
RateControl rate_control; |
208 |
|
|
209 |
|
float fMvPrevSigma; |
210 |
} |
} |
211 |
Encoder; |
Encoder; |
212 |
|
|