[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.65, Sun Jul 28 13:06:45 2002 UTC revision 1.66, Mon Jul 29 19:21:23 2002 UTC
# Line 424  Line 424 
424          pEnc->mbParam.m_seconds = 0;          pEnc->mbParam.m_seconds = 0;
425          pEnc->mbParam.m_ticks = 0;          pEnc->mbParam.m_ticks = 0;
426          pEnc->m_framenum = 0;          pEnc->m_framenum = 0;
427          pEnc->last_pframe = 1;          pEnc->last_pframe = 0;
428  #endif  #endif
429    
430          pParam->handle = (void *) pEnc;          pParam->handle = (void *) pEnc;
# Line 1801  Line 1801 
1801          *pBits = BitstreamPos(bs) - *pBits;          *pBits = BitstreamPos(bs) - *pBits;
1802    
1803  #ifdef BFRAMES  #ifdef BFRAMES
1804          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->current->ticks) %
1805          pEnc->last_pframe = pEnc->mbParam.m_ticks;                          (int32_t)pEnc->mbParam.fbase;
1806            pEnc->last_pframe = pEnc->current->ticks;
1807  #endif  #endif
1808    
1809          return 0;                                       // inter          return 0;                                       // inter
# Line 1861  Line 1862 
1862    
1863          start_timer();          start_timer();
1864          MotionEstimationBVOP(&pEnc->mbParam, frame,          MotionEstimationBVOP(&pEnc->mbParam, frame,
1865            ((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 + pEnc->last_pframe - frame->ticks) % pEnc->mbParam.fbase,
1866                                                  pEnc->time_pp,                                                  pEnc->time_pp,
1867                                                  pEnc->reference->mbs, f_ref,                                                  pEnc->reference->mbs, f_ref,
1868                                                   &pEnc->f_refh, &pEnc->f_refv, &pEnc->f_refhv,                                                   &pEnc->f_refh, &pEnc->f_refv, &pEnc->f_refhv,

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

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