--- encoder.h 2003/03/15 17:03:17 1.27.2.4 +++ encoder.h 2003/05/12 12:28:31 1.27.2.7 @@ -36,7 +36,7 @@ * support for EXTENDED API * - 22.08.2001 fixed bug in iDQtab * - * $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 $ * ****************************************************************************/ @@ -52,13 +52,6 @@ * Constants ****************************************************************************/ -/* Quatization type */ -#define H263_QUANT 0 -#define MPEG4_QUANT 1 - -/* Indicates no quantizer changes in INTRA_Q/INTER_Q modes */ -#define NO_CHANGE 64 - /***************************************************************************** * Types ****************************************************************************/ @@ -86,11 +79,16 @@ uint32_t fincr; uint32_t fbase; + int profile; + xvid_global_t global_flags; int bquant_ratio; int bquant_offset; int frame_drop_ratio; + int min_quant[3]; + int max_quant[3]; + #ifdef _SMP int num_threads; #endif @@ -177,8 +175,12 @@ int iFrameNum; int bitrate; + // zones + unsigned int num_zones; + xvid_enc_zone_t * zones; + // plugins - int num_plugins; /* note: we store plugin flags in MBPARAM */ + unsigned int num_plugins; /* note: we store plugin flags in MBPARAM */ xvid_enc_plugin_t * plugins; // dquant @@ -267,7 +269,7 @@ void init_encoder(uint32_t cpu_flags); -int enc_create(xvid_enc_create_t * create, xvid_enc_rc_t * rc); +int enc_create(xvid_enc_create_t * create); int enc_destroy(Encoder * pEnc); int enc_encode(Encoder * pEnc, xvid_enc_frame_t * pFrame,