21 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
* |
* |
24 |
* $Id: encoder.c,v 1.127 2006-02-24 14:18:59 syskin Exp $ |
* $Id: encoder.c,v 1.130 2007-02-08 13:10:24 Isibaar Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
662 |
xvid_free(pEnc->temp_dquants); |
xvid_free(pEnc->temp_dquants); |
663 |
} |
} |
664 |
|
|
665 |
|
if ((pEnc->mbParam.plugin_flags & XVID_REQLAMBDA)) { |
666 |
|
xvid_free(pEnc->temp_lambda); |
667 |
|
} |
668 |
|
|
669 |
if (pEnc->num_plugins>0) { |
if (pEnc->num_plugins>0) { |
670 |
xvid_plg_destroy_t pdestroy; |
xvid_plg_destroy_t pdestroy; |
770 |
|
|
771 |
if(pEnc->mbParam.plugin_flags & XVID_REQLAMBDA) { |
if(pEnc->mbParam.plugin_flags & XVID_REQLAMBDA) { |
772 |
int block = 0; |
int block = 0; |
773 |
|
emms(); |
774 |
data.lambda = pEnc->temp_lambda; |
data.lambda = pEnc->temp_lambda; |
775 |
for(i = 0;i < pEnc->mbParam.mb_height; i++) |
for(i = 0;i < pEnc->mbParam.mb_height; i++) |
776 |
for(j = 0;j < pEnc->mbParam.mb_width; j++) |
for(j = 0;j < pEnc->mbParam.mb_width; j++) |
1307 |
if (pEnc->current->stamp > 0) { |
if (pEnc->current->stamp > 0) { |
1308 |
call_plugins(pEnc, pEnc->reference, &pEnc->sOriginal, XVID_PLG_AFTER, NULL, NULL, stats); |
call_plugins(pEnc, pEnc->reference, &pEnc->sOriginal, XVID_PLG_AFTER, NULL, NULL, stats); |
1309 |
} |
} |
1310 |
else |
else if (stats) { |
1311 |
stats->type = XVID_TYPE_NOTHING; |
stats->type = XVID_TYPE_NOTHING; |
1312 |
} |
} |
1313 |
|
} |
1314 |
|
|
1315 |
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
1316 |
* closed-gop |
* closed-gop |