39 |
* MinChen <chenm001@163.com> |
* MinChen <chenm001@163.com> |
40 |
* 14.04.2002 added FrameCodeB() |
* 14.04.2002 added FrameCodeB() |
41 |
* |
* |
42 |
* $Id: encoder.c,v 1.76.2.10 2002-10-03 08:24:27 syskin Exp $ |
* $Id: encoder.c,v 1.76.2.11 2002-10-03 12:06:42 suxen_drol Exp $ |
43 |
* |
* |
44 |
****************************************************************************/ |
****************************************************************************/ |
45 |
|
|
880 |
|
|
881 |
if ((pEnc->global & XVID_GLOBAL_DEBUG)) { |
if ((pEnc->global & XVID_GLOBAL_DEBUG)) { |
882 |
image_printf(&pEnc->current->image, pEnc->mbParam.edged_width, pEnc->mbParam.height, 5, 5, |
image_printf(&pEnc->current->image, pEnc->mbParam.edged_width, pEnc->mbParam.height, 5, 5, |
883 |
"%i if:%i st:%i:%i", pEnc->m_framenum++, pEnc->iFrameNum, pEnc->current->seconds, pEnc->current->ticks); |
"%i if:%i st:%i", pEnc->m_framenum++, pEnc->iFrameNum, pEnc->current->stamp); |
884 |
} |
} |
885 |
|
|
886 |
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
971 |
pEnc->flush_bframes = 1; |
pEnc->flush_bframes = 1; |
972 |
|
|
973 |
if ((pEnc->global & XVID_GLOBAL_PACKED) && pEnc->bframenum_tail > 0) { |
if ((pEnc->global & XVID_GLOBAL_PACKED) && pEnc->bframenum_tail > 0) { |
974 |
BitstreamPad(&bs); |
BitstreamPadAlways(&bs); |
975 |
input_valid = 0; |
input_valid = 0; |
976 |
goto ipvop_loop; |
goto ipvop_loop; |
977 |
} |
} |
998 |
pEnc->flush_bframes = 1; |
pEnc->flush_bframes = 1; |
999 |
|
|
1000 |
if ((pEnc->global & XVID_GLOBAL_PACKED)) { |
if ((pEnc->global & XVID_GLOBAL_PACKED)) { |
1001 |
BitstreamPad(&bs); |
BitstreamPadAlways(&bs); |
1002 |
input_valid = 0; |
input_valid = 0; |
1003 |
goto ipvop_loop; |
goto ipvop_loop; |
1004 |
} |
} |