--- trunk/xvidcore/src/encoder.h 2002/04/25 06:55:00 136 +++ trunk/xvidcore/src/encoder.h 2002/05/06 10:07:19 164 @@ -52,6 +52,14 @@ uint32_t mb_width; uint32_t mb_height; + /* frame rate increment & base */ + uint32_t fincr; + uint32_t fbase; + +#ifdef BFRAMES + int max_bframes; +#endif + /* rounding type; alternate 0-1 after each interframe */ /* 1 <= fixed_code <= 4 automatically adjusted using motion vector statistics inside @@ -64,6 +72,11 @@ HINTINFO * hint; +#ifdef BFRAMES + uint32_t m_seconds; + uint32_t m_ticks; +#endif + } MBParam; @@ -78,7 +91,10 @@ uint32_t fcode; uint32_t bcode; - uint32_t tick; +#ifdef BFRAMES + uint32_t seconds; + uint32_t ticks; +#endif IMAGE image; @@ -122,6 +138,19 @@ IMAGE vInterHV; IMAGE vInterHVf; +#ifdef BFRAMES + /* constants */ + int bquant_ratio; + /* vars */ + int bframenum_head; + int bframenum_tail; + int flush_bframes; + + FRAMEINFO ** bframes; + IMAGE f_refh; + IMAGE f_refv; + IMAGE f_refhv; +#endif Statistics sStat; } Encoder;