[cvs] / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /xvidcore/src/encoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.79, Wed Sep 4 21:43:46 2002 UTC revision 1.83, Thu Sep 12 18:53:35 2002 UTC
# Line 102  Line 102 
102   * Encoder creation   * Encoder creation
103   *   *
104   * This function creates an Encoder instance, it allocates all necessary   * This function creates an Encoder instance, it allocates all necessary
105   * image buffers (reference, current and bframes) and initialize the internal   * image buffers (reference, current) and initialize the internal xvid
106   * xvid encoder paremeters according to the XVID_ENC_PARAM input parameter.   * encoder paremeters according to the XVID_ENC_PARAM input parameter.
107   *   *
108   * The code seems to be very long but is very basic, mainly memory allocation   * The code seems to be very long but is very basic, mainly memory allocation
109   * and cleaning code.   * and cleaning code.
# Line 560  Line 560 
560          emms();          emms();
561    
562          if (pFrame->quant == 0) {          if (pFrame->quant == 0) {
563                  RateControlUpdate(&pEnc->rate_control, pEnc->current->quant,                  RateControlUpdate(&pEnc->rate_control, (int16_t)pEnc->current->quant,
564                                                    pFrame->length, pFrame->intra);                                                    pFrame->length, pFrame->intra);
565          }          }
566  #ifdef _DEBUG_PSNR  #ifdef _DEBUG_PSNR
# Line 889  Line 889 
889          DECLARE_ALIGNED_MATRIX(qcoeff, 6, 64, int16_t, CACHE_LINE);          DECLARE_ALIGNED_MATRIX(qcoeff, 6, 64, int16_t, CACHE_LINE);
890    
891          int iLimit;          int iLimit;
892          int x, y, k;          unsigned int x, y;
893          int iSearchRange;          int iSearchRange;
894          int bIntra;          int bIntra;
895    
# Line 1000  Line 1000 
1000                                  CodeIntraMB(pEnc, pMB);                                  CodeIntraMB(pEnc, pMB);
1001                                  MBTransQuantIntra(&pEnc->mbParam, pEnc->current, pMB, x, y,                                  MBTransQuantIntra(&pEnc->mbParam, pEnc->current, pMB, x, y,
1002                                                                    dct_codes, qcoeff);                                                                    dct_codes, qcoeff);
                         }  
1003    
1004                          start_timer();                          start_timer();
1005                          MBPrediction(pEnc->current, x, y, pEnc->mbParam.mb_width, qcoeff);                          MBPrediction(pEnc->current, x, y, pEnc->mbParam.mb_width, qcoeff);
1006                          stop_prediction_timer();                          stop_prediction_timer();
1007                            }
1008    
1009                          if (pMB->mode == MODE_INTRA || pMB->mode == MODE_INTRA_Q) {                          if (pMB->mode == MODE_INTRA || pMB->mode == MODE_INTRA_Q) {
1010                                  pEnc->sStat.kblks++;                                  pEnc->sStat.kblks++;

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.83

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4