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 |
****************************************************************************/ |
****************************************************************************/ |
62 |
int plugin_flags; |
int plugin_flags; |
63 |
|
|
64 |
/* frame rate increment & base */ |
/* frame rate increment & base */ |
65 |
uint32_t fincr; |
int32_t fincr; |
66 |
uint32_t fbase; |
uint32_t fbase; |
67 |
|
|
68 |
int profile; |
int profile; |
75 |
int min_quant[3]; |
int min_quant[3]; |
76 |
int max_quant[3]; |
int max_quant[3]; |
77 |
|
|
78 |
|
int par; |
79 |
|
int par_width; |
80 |
|
int par_height; |
81 |
|
|
82 |
#ifdef _SMP |
#ifdef _SMP |
83 |
int num_threads; |
int num_threads; |
84 |
#endif |
#endif |
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 |
171 |
xvid_enc_zone_t * zones; |
xvid_enc_zone_t * zones; |
172 |
|
|
173 |
/* plugins */ |
/* plugins */ |
174 |
unsigned int num_plugins; /* note: we store plugin flags in MBPARAM */ |
int num_plugins; /* note: we store plugin flags in MBPARAM */ |
175 |
xvid_enc_plugin_t * plugins; |
xvid_enc_plugin_t * plugins; |
176 |
|
|
177 |
/* dquant */ |
/* dquant */ |
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 |