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.96 2003-03-04 10:55:21 syskin Exp $ |
* $Id: encoder.c,v 1.98 2003-04-08 11:04:06 syskin Exp $ |
30 |
* |
* |
31 |
****************************************************************************/ |
****************************************************************************/ |
32 |
|
|
752 |
pResult->ublks = pEnc->current->sStat.ublks; |
pResult->ublks = pEnc->current->sStat.ublks; |
753 |
} |
} |
754 |
|
|
755 |
|
emms(); |
756 |
|
|
757 |
|
if (pFrame->quant == 0) { |
758 |
|
RateControlUpdate(&pEnc->rate_control, pEnc->current->quant, |
759 |
|
pFrame->length, pFrame->intra); |
760 |
|
} |
761 |
|
|
762 |
if (input_valid) |
if (input_valid) |
763 |
queue_image(pEnc, pFrame); |
queue_image(pEnc, pFrame); |
764 |
|
|
801 |
pResult->ublks = pEnc->current->sStat.ublks; |
pResult->ublks = pEnc->current->sStat.ublks; |
802 |
} |
} |
803 |
|
|
804 |
|
emms(); |
805 |
|
|
806 |
|
if (pFrame->quant == 0) { |
807 |
|
RateControlUpdate(&pEnc->rate_control, pEnc->current->quant, |
808 |
|
pFrame->length, pFrame->intra); |
809 |
|
} |
810 |
|
|
811 |
if (input_valid) |
if (input_valid) |
812 |
queue_image(pEnc, pFrame); |
queue_image(pEnc, pFrame); |
813 |
|
|
1016 |
mode = MEanalysis(&pEnc->reference->image, pEnc->current, |
mode = MEanalysis(&pEnc->reference->image, pEnc->current, |
1017 |
&pEnc->mbParam, pEnc->mbParam.iMaxKeyInterval, |
&pEnc->mbParam, pEnc->mbParam.iMaxKeyInterval, |
1018 |
(/*mode < 0*/1/*hack*/) ? pEnc->iFrameNum : 0, |
(/*mode < 0*/1/*hack*/) ? pEnc->iFrameNum : 0, |
1019 |
bframes_count++, pFrame->bframe_threshold); |
bframes_count++, 0 /*pFrame->bframe_threshold*/); |
1020 |
} |
} |
1021 |
|
|
1022 |
if (mode == I_VOP) { |
if (mode == I_VOP) { |