[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.57, Fri Jul 19 14:56:00 2002 UTC revision 1.59, Sat Jul 20 22:30:30 2002 UTC
# Line 1724  Line 1724 
1724    
1725          *pBits = BitstreamPos(bs) - *pBits;          *pBits = BitstreamPos(bs) - *pBits;
1726    
1727    #ifdef BFRAMES
1728          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;
         fprintf(stderr,"fbase=%d last_p=%d ticks=%d time_pp = %d\n",pEnc->mbParam.fbase,pEnc->last_pframe,pEnc->mbParam.m_ticks,pEnc->time_pp);  
1729    
1730          pEnc->last_pframe = pEnc->mbParam.m_ticks;          pEnc->last_pframe = pEnc->mbParam.m_ticks;
1731    #endif
1732          return 0;                                       // inter          return 0;                                       // inter
1733  }  }
1734    
# Line 1783  Line 1784 
1784          stop_inter_timer();          stop_inter_timer();
1785    
1786          start_timer();          start_timer();
         fprintf(stderr,"m_ticks =%d\n",(int32_t)pEnc->mbParam.m_ticks+1);  
1787          MotionEstimationBVOP(&pEnc->mbParam, frame,          MotionEstimationBVOP(&pEnc->mbParam, frame,
1788            ((int32_t)pEnc->mbParam.fbase + (int32_t)pEnc->mbParam.m_ticks + 1 - (int32_t)pEnc->last_pframe) % pEnc->mbParam.fbase,            ((int32_t)pEnc->mbParam.fbase + (int32_t)pEnc->mbParam.m_ticks + 1 - (int32_t)pEnc->last_pframe) % pEnc->mbParam.fbase,
1789                                                  pEnc->time_pp,                                                  pEnc->time_pp,

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.59

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