52 |
* Constants |
* Constants |
53 |
****************************************************************************/ |
****************************************************************************/ |
54 |
|
|
|
/* Quatization type */ |
|
|
#define H263_QUANT 0 |
|
|
#define MPEG4_QUANT 1 |
|
|
|
|
|
/* Indicates no quantizer changes in INTRA_Q/INTER_Q modes */ |
|
|
#define NO_CHANGE 64 |
|
|
|
|
55 |
/***************************************************************************** |
/***************************************************************************** |
56 |
* Types |
* Types |
57 |
****************************************************************************/ |
****************************************************************************/ |
73 |
uint32_t mb_width; |
uint32_t mb_width; |
74 |
uint32_t mb_height; |
uint32_t mb_height; |
75 |
|
|
76 |
|
int plugin_flags; |
77 |
|
|
78 |
/* frame rate increment & base */ |
/* frame rate increment & base */ |
79 |
uint32_t fincr; |
uint32_t fincr; |
80 |
uint32_t fbase; |
uint32_t fbase; |
133 |
|
|
134 |
typedef struct |
typedef struct |
135 |
{ |
{ |
136 |
|
int frame_num; |
137 |
|
int fincr; |
138 |
xvid_vol_t vol_flags; |
xvid_vol_t vol_flags; |
139 |
xvid_vop_t vop_flags; |
xvid_vop_t vop_flags; |
140 |
xvid_motion_t motion_flags; |
xvid_motion_t motion_flags; |
170 |
int iFrameNum; |
int iFrameNum; |
171 |
int bitrate; |
int bitrate; |
172 |
|
|
173 |
|
// plugins |
174 |
|
unsigned int num_plugins; /* note: we store plugin flags in MBPARAM */ |
175 |
|
xvid_enc_plugin_t * plugins; |
176 |
|
|
177 |
|
// dquant |
178 |
|
|
179 |
|
int * temp_dquants; |
180 |
|
|
181 |
// images |
// images |
182 |
|
|
183 |
FRAMEINFO *current; |
FRAMEINFO *current; |
184 |
FRAMEINFO *reference; |
FRAMEINFO *reference; |
185 |
|
|
186 |
IMAGE sOriginal; |
IMAGE sOriginal; /* original image copy for i/p frames */ |
187 |
|
IMAGE sOriginal2; /* original image copy for b-frames */ |
188 |
IMAGE vInterH; |
IMAGE vInterH; |
189 |
IMAGE vInterV; |
IMAGE vInterV; |
190 |
IMAGE vInterVf; |
IMAGE vInterVf; |