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 |
****************************************************************************/ |
****************************************************************************/ |
99 |
int vol_flags; |
int vol_flags; |
100 |
|
|
101 |
int64_t m_stamp; |
int64_t m_stamp; |
102 |
} |
|
103 |
MBParam; |
uint16_t *mpeg_quant_matrices; |
104 |
|
} MBParam; |
105 |
|
|
106 |
|
|
107 |
typedef struct |
typedef struct |
113 |
int mblks; |
int mblks; |
114 |
int ublks; |
int ublks; |
115 |
int gblks; |
int gblks; |
116 |
} |
} Statistics; |
|
Statistics; |
|
117 |
|
|
118 |
|
|
119 |
/* encoding queue */ |
/* encoding queue */ |
155 |
int length; /* the encoded size of this frame */ |
int length; /* the encoded size of this frame */ |
156 |
|
|
157 |
Statistics sStat; |
Statistics sStat; |
158 |
} |
int is_edged, is_interpolated; |
159 |
FRAMEINFO; |
} FRAMEINFO; |
160 |
|
|
161 |
|
|
162 |
typedef struct |
typedef struct |
178 |
|
|
179 |
int * temp_dquants; |
int * temp_dquants; |
180 |
|
|
181 |
|
/* lambda */ |
182 |
|
|
183 |
|
float * temp_lambda; |
184 |
|
|
185 |
/* images */ |
/* images */ |
186 |
|
|
187 |
FRAMEINFO *current; |
FRAMEINFO *current; |
220 |
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 */ |
221 |
|
|
222 |
float fMvPrevSigma; |
float fMvPrevSigma; |
223 |
} |
} Encoder; |
|
Encoder; |
|
224 |
|
|
225 |
/***************************************************************************** |
/***************************************************************************** |
226 |
* Inline functions |
* Inline functions |