26 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
28 |
* |
* |
29 |
* $Id: encoder.c,v 1.95.2.7 2003-03-15 17:03:17 suxen_drol Exp $ |
* $Id: encoder.c,v 1.95.2.8 2003-03-15 17:06:53 suxen_drol Exp $ |
30 |
* |
* |
31 |
****************************************************************************/ |
****************************************************************************/ |
32 |
|
|
1119 |
|
|
1120 |
// place this frame back on the encoding-queue (head) |
// place this frame back on the encoding-queue (head) |
1121 |
// we will deal with it next time |
// we will deal with it next time |
1122 |
|
dec_frame_num(pEnc); |
1123 |
|
pEnc->iFrameNum--; |
1124 |
|
|
1125 |
pEnc->queue_head = (pEnc->queue_head + (pEnc->mbParam.max_bframes+1) - 1) % (pEnc->mbParam.max_bframes+1); |
pEnc->queue_head = (pEnc->queue_head + (pEnc->mbParam.max_bframes+1) - 1) % (pEnc->mbParam.max_bframes+1); |
1126 |
pEnc->queue_size++; |
pEnc->queue_size++; |
1127 |
image_swap(&pEnc->current->image, &pEnc->queue[pEnc->queue_head].image); |
image_swap(&pEnc->current->image, &pEnc->queue[pEnc->queue_head].image); |
1128 |
|
|
|
dec_frame_num(pEnc); |
|
|
pEnc->iFrameNum--; |
|
|
|
|
1129 |
// grab the last frame from the bframe-queue |
// grab the last frame from the bframe-queue |
1130 |
|
|
1131 |
pEnc->bframenum_tail--; |
pEnc->bframenum_tail--; |