--- branches/dev-api-4/xvidcore/vfw/src/codec.c 2003/03/15 17:06:53 925 +++ branches/dev-api-4/xvidcore/vfw/src/codec.c 2003/03/16 12:05:09 926 @@ -241,6 +241,7 @@ xvid_gbl_init_t init; xvid_enc_create_t create; xvid_enc_rc_t rc; + xvid_enc_plugin_t plugins[1]; memset(&rc, 0, sizeof(rc)); rc.version = XVID_VERSION; @@ -305,6 +306,14 @@ create.fincr = codec->fincr; create.fbase = codec->fbase; + create.plugins = plugins; + create.num_plugins = 0; + if (codec->config.lum_masking) { + plugins[create.num_plugins].func = xvid_plugin_lumimasking; + plugins[create.num_plugins].param = NULL; + create.num_plugins++; + } + if (codec->config.packed) create.global |= XVID_PACKED; if (codec->config.dx50bvop) @@ -448,9 +457,6 @@ if (codec->config.motion_search > 4) frame.vop_flags |= XVID_INTER4V; - if (codec->config.lum_masking) - frame.vop_flags |= XVID_LUMIMASKING; - if (codec->config.chromame) frame.vop_flags |= PMV_CHROMA16 + PMV_CHROMA8; @@ -600,8 +606,6 @@ frame.type = XVID_TYPE_PVOP; } - frame.bquant = 0; - memset(&stats, 0, sizeof(stats)); stats.version = XVID_VERSION;