[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.61, Sun Jul 21 14:05:38 2002 UTC revision 1.62, Sun Jul 21 23:34:07 2002 UTC
# Line 853  Line 853 
853                  else                  else
854                          pEnc->current->quant = pFrame->quant;                          pEnc->current->quant = pFrame->quant;
855    
856                  if (pEnc->current->quant < 1)  /*              if (pEnc->current->quant < 1)
857                          pEnc->current->quant = 1;                          pEnc->current->quant = 1;
858    
859                  if (pEnc->current->quant > 31)                  if (pEnc->current->quant > 31)
860                          pEnc->current->quant = 31;                          pEnc->current->quant = 31;
861    */
862                  pEnc->current->global_flags = pFrame->general;                  pEnc->current->global_flags = pFrame->general;
863                  pEnc->current->motion_flags = pFrame->motion;                  pEnc->current->motion_flags = pFrame->motion;
864    
# Line 1005  Line 1005 
1005                   * This will be coded as a Bidirectional Frame                   * This will be coded as a Bidirectional Frame
1006                   */                   */
1007    
                 DPRINTF(DPRINTF_DEBUG,"*** BFRAME (store) bf: head=%i tail=%i   queue: head=%i tail=%i size=%i",  
                                 pEnc->bframenum_head, pEnc->bframenum_tail,  
                                 pEnc->queue_head, pEnc->queue_tail, pEnc->queue_size);  
   
1008                  if ((pEnc->global & XVID_GLOBAL_DEBUG)) {                  if ((pEnc->global & XVID_GLOBAL_DEBUG)) {
1009                          image_printf(&pEnc->current->image, pEnc->mbParam.edged_width, pEnc->mbParam.height, 5, 200, "BVOP");                          image_printf(&pEnc->current->image, pEnc->mbParam.edged_width, pEnc->mbParam.height, 5, 200, "BVOP");
1010                  }                  }
# Line 1020  Line 1016 
1016                  } else {                  } else {
1017                          pEnc->current->quant = pFrame->bquant;                          pEnc->current->quant = pFrame->bquant;
1018                  }                  }
1019    /*                if (pEnc->current->quant < 1)
1020                            pEnc->current->quant = 1;
1021    
1022                    if (pEnc->current->quant > 31)
1023                            pEnc->current->quant = 31;
1024    
1025    */
1026                            DPRINTF(DPRINTF_DEBUG,"*** BFRAME (store) bf: head=%i tail=%i   queue: head=%i tail=%i size=%i  quant=%i\n",
1027                                    pEnc->bframenum_head, pEnc->bframenum_tail,
1028                                    pEnc->queue_head, pEnc->queue_tail, pEnc->queue_size,pEnc->current->quant);
1029    
1030    
1031    
1032                  /* store frame into bframe buffer & swap ref back to current */                  /* store frame into bframe buffer & swap ref back to current */
1033                  SWAP(pEnc->current, pEnc->bframes[pEnc->bframenum_tail]);                  SWAP(pEnc->current, pEnc->bframes[pEnc->bframenum_tail]);
# Line 1751  Line 1759 
1759    
1760  #ifdef BFRAMES  #ifdef BFRAMES
1761          pEnc->time_pp = ((int32_t)pEnc->mbParam.fbase - (int32_t)pEnc->last_pframe + (int32_t)pEnc->mbParam.m_ticks) % (int32_t)pEnc->mbParam.fbase;          pEnc->time_pp = ((int32_t)pEnc->mbParam.fbase - (int32_t)pEnc->last_pframe + (int32_t)pEnc->mbParam.m_ticks) % (int32_t)pEnc->mbParam.fbase;
   
1762          pEnc->last_pframe = pEnc->mbParam.m_ticks;          pEnc->last_pframe = pEnc->mbParam.m_ticks;
1763  #endif  #endif
1764    
1765          return 0;                                       // inter          return 0;                                       // inter
1766  }  }
1767    

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

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