23 |
* |
* |
24 |
* History: |
* History: |
25 |
* |
* |
26 |
|
* 25.04.2002 ICDECOMPRESS_PREROLL |
27 |
* 17.04.2002 re-enabled lumi masking for 1st pass |
* 17.04.2002 re-enabled lumi masking for 1st pass |
28 |
* 15.04.2002 updated cbr support |
* 15.04.2002 updated cbr support |
29 |
* 04.04.2002 separated 2-pass code to 2pass.c |
* 04.04.2002 separated 2-pass code to 2pass.c |
374 |
|
|
375 |
if (codec->config.interlacing) |
if (codec->config.interlacing) |
376 |
frame.general |= XVID_INTERLACING; |
frame.general |= XVID_INTERLACING; |
377 |
|
// fix 1pass modes/hinted MV by koepi |
378 |
|
if (codec->config.hinted_me && (codec->config.mode == DLG_MODE_CBR || codec->config.mode == DLG_MODE_VBR_QUAL || codec->config.mode == DLG_MODE_VBR_QUANT)) |
379 |
|
{ |
380 |
|
codec->config.hinted_me = 0; |
381 |
|
} |
382 |
|
// end of ugly hack |
383 |
|
|
384 |
if (codec->config.hinted_me && codec->config.mode == DLG_MODE_2PASS_1) |
if (codec->config.hinted_me && codec->config.mode == DLG_MODE_2PASS_1) |
385 |
{ |
{ |
674 |
frame.image = icd->lpOutput; |
frame.image = icd->lpOutput; |
675 |
frame.stride = icd->lpbiOutput->biWidth; |
frame.stride = icd->lpbiOutput->biWidth; |
676 |
|
|
677 |
if (~((icd->dwFlags & ICDECOMPRESS_HURRYUP) | (icd->dwFlags & ICDECOMPRESS_UPDATE))) |
if (~((icd->dwFlags & ICDECOMPRESS_HURRYUP) | (icd->dwFlags & ICDECOMPRESS_UPDATE) | (icd->dwFlags & ICDECOMPRESS_PREROLL))) |
678 |
{ |
{ |
679 |
if ((frame.colorspace = get_colorspace(icd->lpbiOutput)) == XVID_CSP_NULL) |
if ((frame.colorspace = get_colorspace(icd->lpbiOutput)) == XVID_CSP_NULL) |
680 |
{ |
{ |