[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.56, Thu Jul 18 23:52:40 2002 UTC revision 1.57, Fri Jul 19 14:56:00 2002 UTC
# Line 421  Line 421 
421          pEnc->mbParam.m_seconds = 0;          pEnc->mbParam.m_seconds = 0;
422          pEnc->mbParam.m_ticks = 0;          pEnc->mbParam.m_ticks = 0;
423          pEnc->m_framenum = 0;          pEnc->m_framenum = 0;
424            pEnc->last_pframe = 1;
425  #endif  #endif
426    
427          pParam->handle = (void *) pEnc;          pParam->handle = (void *) pEnc;
# Line 1723  Line 1724 
1724    
1725          *pBits = BitstreamPos(bs) - *pBits;          *pBits = BitstreamPos(bs) - *pBits;
1726    
1727            pEnc->time_pp = ((int32_t)pEnc->mbParam.fbase - (int32_t)pEnc->last_pframe + (int32_t)pEnc->mbParam.m_ticks) % (int32_t)pEnc->mbParam.fbase;
1728            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;
1731          return 0;                                       // inter          return 0;                                       // inter
1732  }  }
1733    
# Line 1778  Line 1783 
1783          stop_inter_timer();          stop_inter_timer();
1784    
1785          start_timer();          start_timer();
1786          MotionEstimationBVOP(&pEnc->mbParam, frame, pEnc->reference->mbs, f_ref,          fprintf(stderr,"m_ticks =%d\n",(int32_t)pEnc->mbParam.m_ticks+1);
1787            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,
1789                                                    pEnc->time_pp,
1790                                                    pEnc->reference->mbs, f_ref,
1791                                                   &pEnc->f_refh, &pEnc->f_refv, &pEnc->f_refhv,                                                   &pEnc->f_refh, &pEnc->f_refv, &pEnc->f_refhv,
1792                                                   pEnc->current->mbs, b_ref, &pEnc->vInterH,                                                   pEnc->current->mbs, b_ref, &pEnc->vInterH,
1793                                                   &pEnc->vInterV, &pEnc->vInterHV);                                                   &pEnc->vInterV, &pEnc->vInterHV);

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

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