--- encoder.h 2002/06/13 21:45:24 1.10 +++ encoder.h 2002/06/23 03:58:32 1.12 @@ -36,7 +36,7 @@ * support for EXTENDED API * - 22.08.2001 fixed bug in iDQtab * - * $Id: encoder.h,v 1.10 2002/06/13 21:45:24 edgomez Exp $ + * $Id: encoder.h,v 1.12 2002/06/23 03:58:32 suxen_drol Exp $ * ****************************************************************************/ @@ -167,7 +167,7 @@ FRAMEINFO *current; FRAMEINFO *reference; -#ifdef _DEBUG +#ifdef _DEBUG_PSNR IMAGE sOriginal; #endif IMAGE vInterH; @@ -178,8 +178,16 @@ #ifdef BFRAMES /* constants */ + int global; int bquant_ratio; - /* vars */ + + /* image queue */ + int queue_head; + int queue_tail; + int queue_size; + IMAGE *queue; + + /* bframe buffer */ int bframenum_head; int bframenum_tail; int flush_bframes; @@ -188,7 +196,10 @@ IMAGE f_refh; IMAGE f_refv; IMAGE f_refhv; + + int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ #endif + Statistics sStat; RateControl rate_control; } @@ -239,4 +250,8 @@ XVID_ENC_FRAME * pFrame, XVID_ENC_STATS * pResult); +int encoder_encode_bframes(Encoder * pEnc, + XVID_ENC_FRAME * pFrame, + XVID_ENC_STATS * pResult); + #endif