--- trunk/vfw/src/codec.c 2002/06/23 03:59:49 235 +++ trunk/vfw/src/codec.c 2002/08/01 12:56:29 355 @@ -23,6 +23,7 @@ * * History: * + * 12.07.2002 num_threads * 23.06.2002 XVID_CPU_CHKONLY; loading speed up * 25.04.2002 ICDECOMPRESS_PREROLL * 17.04.2002 re-enabled lumi masking for 1st pass @@ -294,6 +295,10 @@ param.max_quantizer = codec->config.max_pquant; param.max_key_interval = codec->config.max_key_interval; +#ifdef _SMP + param.num_threads = codec->config.num_threads; +#endif + #ifdef BFRAMES param.global = 0; if (codec->config.packed) param.global |= XVID_GLOBAL_PACKED; @@ -301,6 +306,7 @@ if (codec->config.debug) param.global |= XVID_GLOBAL_DEBUG; param.max_bframes = codec->config.max_bframes; param.bquant_ratio = codec->config.bquant_ratio; + param.frame_drop_ratio = codec->config.frame_drop_ratio; #endif switch(xvid_encore(0, XVID_ENC_CREATE, ¶m, NULL)) @@ -387,7 +393,14 @@ frame.general |= XVID_LUMIMASKING; if (codec->config.interlacing) - frame.general |= XVID_INTERLACING; + frame.general |= XVID_INTERLACING; + +// added by koepi for gruel's greyscale_mode + if (codec->config.greyscale) + frame.general |= XVID_GREYSCALE; + +// end of koepi's addition + // fix 1pass modes/hinted MV by koepi 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)) { @@ -510,7 +523,11 @@ frame.intra = 0; } - OutputDebugString(" "); +#ifdef BFRAMES + frame.bquant = 0; +#endif + +// OutputDebugString(" "); switch (xvid_encore(codec->ehandle, XVID_ENC_ENCODE, &frame, &stats)) { case XVID_ERR_FAIL :