--- trunk/vfw/src/codec.c 2002/06/20 10:51:08 228 +++ trunk/vfw/src/codec.c 2002/07/21 03:49:47 324 @@ -23,6 +23,8 @@ * * 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 * 15.04.2002 updated cbr support @@ -293,10 +295,18 @@ 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.packed = codec->config.packed; + param.global = 0; + if (codec->config.packed) param.global |= XVID_GLOBAL_PACKED; + if (codec->config.dx50bvop) param.global |= XVID_GLOBAL_DX50BVOP; + 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)) @@ -506,7 +516,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 :