241 |
xvid_gbl_init_t init; |
xvid_gbl_init_t init; |
242 |
xvid_enc_create_t create; |
xvid_enc_create_t create; |
243 |
xvid_enc_rc_t rc; |
xvid_enc_rc_t rc; |
244 |
|
xvid_enc_plugin_t plugins[1]; |
245 |
|
|
246 |
memset(&rc, 0, sizeof(rc)); |
memset(&rc, 0, sizeof(rc)); |
247 |
rc.version = XVID_VERSION; |
rc.version = XVID_VERSION; |
306 |
create.fincr = codec->fincr; |
create.fincr = codec->fincr; |
307 |
create.fbase = codec->fbase; |
create.fbase = codec->fbase; |
308 |
|
|
309 |
|
create.plugins = plugins; |
310 |
|
create.num_plugins = 0; |
311 |
|
if (codec->config.lum_masking) { |
312 |
|
plugins[create.num_plugins].func = xvid_plugin_lumimasking; |
313 |
|
plugins[create.num_plugins].param = NULL; |
314 |
|
create.num_plugins++; |
315 |
|
} |
316 |
|
|
317 |
if (codec->config.packed) |
if (codec->config.packed) |
318 |
create.global |= XVID_PACKED; |
create.global |= XVID_PACKED; |
319 |
if (codec->config.dx50bvop) |
if (codec->config.dx50bvop) |
457 |
if (codec->config.motion_search > 4) |
if (codec->config.motion_search > 4) |
458 |
frame.vop_flags |= XVID_INTER4V; |
frame.vop_flags |= XVID_INTER4V; |
459 |
|
|
|
if (codec->config.lum_masking) |
|
|
frame.vop_flags |= XVID_LUMIMASKING; |
|
|
|
|
460 |
if (codec->config.chromame) |
if (codec->config.chromame) |
461 |
frame.vop_flags |= PMV_CHROMA16 + PMV_CHROMA8; |
frame.vop_flags |= PMV_CHROMA16 + PMV_CHROMA8; |
462 |
|
|
606 |
frame.type = XVID_TYPE_PVOP; |
frame.type = XVID_TYPE_PVOP; |
607 |
} |
} |
608 |
|
|
|
frame.bquant = 0; |
|
|
|
|
609 |
memset(&stats, 0, sizeof(stats)); |
memset(&stats, 0, sizeof(stats)); |
610 |
stats.version = XVID_VERSION; |
stats.version = XVID_VERSION; |
611 |
|
|