411 |
pEnc->queue_size = 0; |
pEnc->queue_size = 0; |
412 |
|
|
413 |
pEnc->mbParam.m_stamp = 0; |
pEnc->mbParam.m_stamp = 0; |
414 |
; |
|
415 |
pEnc->m_framenum = 0; |
pEnc->m_framenum = 0; |
416 |
|
pEnc->current->stamp = 0; |
417 |
|
pEnc->reference->stamp = 0; |
418 |
|
|
419 |
pParam->handle = (void *) pEnc; |
pParam->handle = (void *) pEnc; |
420 |
|
|
642 |
|
|
643 |
//HEAVY DEBUG OUTPUT remove when timecodes prove to be stable |
//HEAVY DEBUG OUTPUT remove when timecodes prove to be stable |
644 |
|
|
645 |
fprintf(stderr,"WriteVop: %d - %d \n", |
/* fprintf(stderr,"WriteVop: %d - %d \n", |
646 |
((int32_t)pCur->stamp / time_base), ((int32_t)pRef->stamp / time_base)); |
((int32_t)pCur->stamp / time_base), ((int32_t)pRef->stamp / time_base)); |
647 |
fprintf(stderr,"set_timecodes: VOP %1d stamp=%lld ref_stamp=%lld base=%d\n", |
fprintf(stderr,"set_timecodes: VOP %1d stamp=%lld ref_stamp=%lld base=%d\n", |
648 |
pCur->coding_type, pCur->stamp, pRef->stamp, time_base); |
pCur->coding_type, pCur->stamp, pRef->stamp, time_base); |
649 |
fprintf(stderr,"set_timecodes: VOP %1d seconds=%d ticks=%d (ref-sec=%d ref-tick=%d)\n", |
fprintf(stderr,"set_timecodes: VOP %1d seconds=%d ticks=%d (ref-sec=%d ref-tick=%d)\n", |
650 |
pCur->coding_type, pCur->seconds, pCur->ticks, pRef->seconds, pRef->ticks); |
pCur->coding_type, pCur->seconds, pCur->ticks, pRef->seconds, pRef->ticks); |
651 |
|
|
652 |
|
*/ |
653 |
} |
} |
654 |
|
|
655 |
|
|
1112 |
pEnc->current->motion_flags = pFrame->motion; |
pEnc->current->motion_flags = pFrame->motion; |
1113 |
pEnc->mbParam.hint = &pFrame->hint; |
pEnc->mbParam.hint = &pFrame->hint; |
1114 |
|
|
1115 |
|
inc_frame_num(pEnc); |
1116 |
|
|
1117 |
/* disable alternate scan flag if interlacing is not enabled */ |
/* disable alternate scan flag if interlacing is not enabled */ |
1118 |
if ((pEnc->current->global_flags & XVID_ALTERNATESCAN) && |
if ((pEnc->current->global_flags & XVID_ALTERNATESCAN) && |
1119 |
!(pEnc->current->global_flags & XVID_INTERLACING)) |
!(pEnc->current->global_flags & XVID_INTERLACING)) |
1248 |
DEBUG(temp); |
DEBUG(temp); |
1249 |
#endif |
#endif |
1250 |
|
|
|
inc_frame_num(pEnc); |
|
1251 |
pEnc->iFrameNum++; |
pEnc->iFrameNum++; |
1252 |
|
|
1253 |
stop_global_timer(); |
stop_global_timer(); |