254 |
case DLG_MODE_2PASS_2_INT : |
case DLG_MODE_2PASS_2_INT : |
255 |
case DLG_MODE_2PASS_2_EXT : |
case DLG_MODE_2PASS_2_EXT : |
256 |
param.bitrate = 0; |
param.bitrate = 0; |
257 |
|
codec->twopass.max_framesize = (int)((double)codec->config.twopass_max_bitrate / 8.0 / ((double)codec->fbase / (double)codec->fincr)); |
258 |
break; |
break; |
259 |
|
|
260 |
case DLG_MODE_NULL : |
case DLG_MODE_NULL : |
333 |
} |
} |
334 |
|
|
335 |
codec->ehandle = NULL; |
codec->ehandle = NULL; |
336 |
|
|
337 |
|
codec_2pass_finish(codec); |
338 |
} |
} |
339 |
|
|
340 |
return ICERR_OK; |
return ICERR_OK; |
378 |
frame.hint.rawhints = 0; |
frame.hint.rawhints = 0; |
379 |
frame.general |= XVID_HINTEDME_GET; |
frame.general |= XVID_HINTEDME_GET; |
380 |
} |
} |
381 |
else if (codec->config.mode == DLG_MODE_2PASS_2_EXT || codec->config.mode == DLG_MODE_2PASS_2_INT) |
else if (codec->config.hinted_me && (codec->config.mode == DLG_MODE_2PASS_2_EXT || codec->config.mode == DLG_MODE_2PASS_2_INT)) |
382 |
{ |
{ |
383 |
DWORD read; |
DWORD read; |
384 |
DWORD blocksize; |
DWORD blocksize; |
481 |
{ |
{ |
482 |
frame.intra = 1; |
frame.intra = 1; |
483 |
} |
} |
484 |
else if ((codec->keyspacing < codec->config.min_key_interval && codec->framenum) && |
else if (codec->keyspacing < codec->config.min_key_interval && codec->framenum) |
|
(codec->config.mode == DLG_MODE_2PASS_1)) |
|
485 |
{ |
{ |
486 |
DEBUG("current frame forced to p-frame"); |
DEBUG("current frame forced to p-frame"); |
487 |
frame.intra = 0; |
frame.intra = 0; |