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.66 2002-07-29 19:21:23 chl Exp $ |
* $Id: encoder.c,v 1.67 2002-07-30 12:14:37 chl Exp $ |
43 |
* |
* |
44 |
****************************************************************************/ |
****************************************************************************/ |
45 |
|
|
1777 |
#ifdef BFRAMES |
#ifdef BFRAMES |
1778 |
/* frame drop code */ |
/* frame drop code */ |
1779 |
// DPRINTF(DPRINTF_DEBUG, "kmu %i %i %i", pEnc->sStat.kblks, pEnc->sStat.mblks, pEnc->sStat.ublks); |
// DPRINTF(DPRINTF_DEBUG, "kmu %i %i %i", pEnc->sStat.kblks, pEnc->sStat.mblks, pEnc->sStat.ublks); |
1780 |
if (pEnc->sStat.kblks + pEnc->sStat.mblks <= |
if (pEnc->sStat.kblks + pEnc->sStat.mblks < |
1781 |
(pEnc->frame_drop_ratio * pEnc->mbParam.mb_width * pEnc->mbParam.mb_height) / 100) |
(pEnc->frame_drop_ratio * pEnc->mbParam.mb_width * pEnc->mbParam.mb_height) / 100) |
1782 |
{ |
{ |
1783 |
pEnc->sStat.kblks = pEnc->sStat.mblks = 0; |
pEnc->sStat.kblks = pEnc->sStat.mblks = 0; |