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; |
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 |
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, |