--- encoder.h 2002/11/02 15:52:30 1.18.2.4 +++ encoder.h 2002/12/10 11:13:50 1.18.2.8 @@ -36,7 +36,7 @@ * support for EXTENDED API * - 22.08.2001 fixed bug in iDQtab * - * $Id: encoder.h,v 1.18.2.4 2002/11/02 15:52:30 chl Exp $ + * $Id: encoder.h,v 1.18.2.8 2002/12/10 11:13:50 suxen_drol Exp $ * ****************************************************************************/ @@ -46,7 +46,6 @@ #include "xvid.h" #include "portab.h" #include "global.h" -#include "image/image.h" #include "utils/ratecontrol.h" /***************************************************************************** @@ -93,10 +92,17 @@ uint32_t fincr; uint32_t fbase; + /* constants */ + int global; + int bquant_ratio; + int bquant_offset; + int frame_drop_ratio; + #ifdef _SMP int num_threads; #endif - + + int iMaxKeyInterval; int max_bframes; /* rounding type; alternate 0-1 after each interframe */ @@ -109,6 +115,7 @@ uint32_t m_rounding_type; uint32_t m_fcode; uint32_t m_quarterpel; + int m_reduced_resolution; /* reduced_resolution_enable */ HINTINFO *hint; @@ -119,6 +126,18 @@ typedef struct { + int iTextBits; + int iMvSum; + int iMvCount; + int kblks; + int mblks; + int ublks; +} +Statistics; + + +typedef struct +{ uint32_t quant; uint32_t motion_flags; uint32_t global_flags; @@ -137,20 +156,10 @@ MACROBLOCK *mbs; VECTOR GMC_MV; -} -FRAMEINFO; -typedef struct -{ - int iTextBits; - float fMvPrevSigma; - int iMvSum; - int iMvCount; - int kblks; - int mblks; - int ublks; + Statistics sStat; } -Statistics; +FRAMEINFO; @@ -159,7 +168,6 @@ MBParam mbParam; int iFrameNum; - int iMaxKeyInterval; int bitrate; // images @@ -176,11 +184,6 @@ IMAGE vInterHV; IMAGE vInterHVf; - /* constants */ - int global; - int bquant_ratio; - int frame_drop_ratio; - /* image queue */ int queue_head; int queue_tail; @@ -200,8 +203,9 @@ int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ - Statistics sStat; RateControl rate_control; + + float fMvPrevSigma; } Encoder;