35 |
* Constants |
* Constants |
36 |
****************************************************************************/ |
****************************************************************************/ |
37 |
|
|
38 |
|
/* lambda base exponential. 1<<LAMBDA_EXP is the neutral lambda */ |
39 |
|
#define LAMBDA_EXP 6 |
40 |
|
|
41 |
/***************************************************************************** |
/***************************************************************************** |
42 |
* Types |
* Types |
43 |
****************************************************************************/ |
****************************************************************************/ |
79 |
int par_width; |
int par_width; |
80 |
int par_height; |
int par_height; |
81 |
|
|
|
#ifdef _SMP |
|
|
int num_threads; |
|
|
#endif |
|
|
|
|
|
|
|
82 |
int iMaxKeyInterval; |
int iMaxKeyInterval; |
83 |
int max_bframes; |
int max_bframes; |
84 |
|
|
108 |
int mblks; |
int mblks; |
109 |
int ublks; |
int ublks; |
110 |
int gblks; |
int gblks; |
111 |
|
int iMVBits; |
112 |
} Statistics; |
} Statistics; |
113 |
|
|
114 |
|
|
155 |
} FRAMEINFO; |
} FRAMEINFO; |
156 |
|
|
157 |
|
|
158 |
|
#include "motion/motion_smp.h" |
159 |
|
|
160 |
typedef struct |
typedef struct |
161 |
{ |
{ |
162 |
MBParam mbParam; |
MBParam mbParam; |
176 |
|
|
177 |
int * temp_dquants; |
int * temp_dquants; |
178 |
|
|
179 |
|
/* lambda */ |
180 |
|
|
181 |
|
float * temp_lambda; |
182 |
|
|
183 |
/* images */ |
/* images */ |
184 |
|
|
185 |
FRAMEINFO *current; |
FRAMEINFO *current; |
215 |
int closed_bframenum; /* == -1 if there is no fixup intended */ |
int closed_bframenum; /* == -1 if there is no fixup intended */ |
216 |
QUEUEINFO closed_qframe; /* qFrame, only valid when >= 0 */ |
QUEUEINFO closed_qframe; /* qFrame, only valid when >= 0 */ |
217 |
|
|
218 |
|
/* multithreaded stuff */ |
219 |
|
int num_threads; /* number of additional threads */ |
220 |
|
SMPmotionData * motionData; /* data structures used to pass all thread-specific data */ |
221 |
|
|
222 |
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 */ |
223 |
|
|
224 |
float fMvPrevSigma; |
float fMvPrevSigma; |