36 |
* support for EXTENDED API |
* support for EXTENDED API |
37 |
* - 22.08.2001 fixed bug in iDQtab |
* - 22.08.2001 fixed bug in iDQtab |
38 |
* |
* |
39 |
* $Id: encoder.h,v 1.27.2.4 2003-03-15 17:03:17 suxen_drol Exp $ |
* $Id: encoder.h,v 1.27.2.7 2003-05-12 12:28:31 suxen_drol Exp $ |
40 |
* |
* |
41 |
****************************************************************************/ |
****************************************************************************/ |
42 |
|
|
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 |
****************************************************************************/ |
****************************************************************************/ |
79 |
uint32_t fincr; |
uint32_t fincr; |
80 |
uint32_t fbase; |
uint32_t fbase; |
81 |
|
|
82 |
|
int profile; |
83 |
|
|
84 |
xvid_global_t global_flags; |
xvid_global_t global_flags; |
85 |
int bquant_ratio; |
int bquant_ratio; |
86 |
int bquant_offset; |
int bquant_offset; |
87 |
int frame_drop_ratio; |
int frame_drop_ratio; |
88 |
|
|
89 |
|
int min_quant[3]; |
90 |
|
int max_quant[3]; |
91 |
|
|
92 |
#ifdef _SMP |
#ifdef _SMP |
93 |
int num_threads; |
int num_threads; |
94 |
#endif |
#endif |
175 |
int iFrameNum; |
int iFrameNum; |
176 |
int bitrate; |
int bitrate; |
177 |
|
|
178 |
|
// zones |
179 |
|
unsigned int num_zones; |
180 |
|
xvid_enc_zone_t * zones; |
181 |
|
|
182 |
// plugins |
// plugins |
183 |
int num_plugins; /* note: we store plugin flags in MBPARAM */ |
unsigned int num_plugins; /* note: we store plugin flags in MBPARAM */ |
184 |
xvid_enc_plugin_t * plugins; |
xvid_enc_plugin_t * plugins; |
185 |
|
|
186 |
// dquant |
// dquant |
269 |
|
|
270 |
void init_encoder(uint32_t cpu_flags); |
void init_encoder(uint32_t cpu_flags); |
271 |
|
|
272 |
int enc_create(xvid_enc_create_t * create, xvid_enc_rc_t * rc); |
int enc_create(xvid_enc_create_t * create); |
273 |
int enc_destroy(Encoder * pEnc); |
int enc_destroy(Encoder * pEnc); |
274 |
int enc_encode(Encoder * pEnc, |
int enc_encode(Encoder * pEnc, |
275 |
xvid_enc_frame_t * pFrame, |
xvid_enc_frame_t * pFrame, |