--- trunk/xvidcore/src/encoder.c 2002/09/04 21:41:57 403 +++ trunk/xvidcore/src/encoder.c 2002/09/08 16:38:03 455 @@ -1,7 +1,7 @@ /***************************************************************************** * * XVID MPEG-4 VIDEO CODEC - * - Encoder main module - + * - Encoder main module - * * Copyright(C) 2002 Michael Militzer * @@ -28,6 +28,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + * $Id: encoder.c,v 1.82 2002-09-08 16:38:03 edgomez Exp $ + * ****************************************************************************/ #include @@ -100,8 +102,8 @@ * Encoder creation * * This function creates an Encoder instance, it allocates all necessary - * image buffers (reference, current and bframes) and initialize the internal - * xvid encoder paremeters according to the XVID_ENC_PARAM input parameter. + * image buffers (reference, current) and initialize the internal xvid + * encoder paremeters according to the XVID_ENC_PARAM input parameter. * * The code seems to be very long but is very basic, mainly memory allocation * and cleaning code. @@ -887,7 +889,7 @@ DECLARE_ALIGNED_MATRIX(qcoeff, 6, 64, int16_t, CACHE_LINE); int iLimit; - int x, y, k; + int x, y; int iSearchRange; int bIntra; @@ -998,11 +1000,11 @@ CodeIntraMB(pEnc, pMB); MBTransQuantIntra(&pEnc->mbParam, pEnc->current, pMB, x, y, dct_codes, qcoeff); - } - start_timer(); - MBPrediction(pEnc->current, x, y, pEnc->mbParam.mb_width, qcoeff); - stop_prediction_timer(); + start_timer(); + MBPrediction(pEnc->current, x, y, pEnc->mbParam.mb_width, qcoeff); + stop_prediction_timer(); + } if (pMB->mode == MODE_INTRA || pMB->mode == MODE_INTRA_Q) { pEnc->sStat.kblks++;