570 |
if (codec->config.packed) |
if (codec->config.packed) |
571 |
create.global |= XVID_GLOBAL_PACKED; |
create.global |= XVID_GLOBAL_PACKED; |
572 |
|
|
|
if (codec->config.closed_gov) |
|
573 |
create.global |= XVID_GLOBAL_CLOSED_GOP; |
create.global |= XVID_GLOBAL_CLOSED_GOP; |
574 |
|
|
575 |
} |
} |
684 |
} |
} |
685 |
} |
} |
686 |
|
|
|
if ((profiles[codec->config.profile].flags & PROFILE_REDUCED) && |
|
|
codec->config.reduced_resolution) { |
|
|
frame.vol_flags |= XVID_VOL_REDUCED_ENABLE; |
|
|
frame.vop_flags |= XVID_VOP_REDUCED; /* XXX: need auto decion mode */ |
|
|
} |
|
|
|
|
687 |
if ((profiles[codec->config.profile].flags & PROFILE_QPEL) && codec->config.qpel) { |
if ((profiles[codec->config.profile].flags & PROFILE_QPEL) && codec->config.qpel) { |
688 |
frame.vol_flags |= XVID_VOL_QUARTERPEL; |
frame.vol_flags |= XVID_VOL_QUARTERPEL; |
689 |
frame.motion |= XVID_ME_QUARTERPELREFINE16 | XVID_ME_QUARTERPELREFINE8; |
frame.motion |= XVID_ME_QUARTERPELREFINE16 | XVID_ME_QUARTERPELREFINE8; |
962 |
memset(&init, 0, sizeof(init)); |
memset(&init, 0, sizeof(init)); |
963 |
init.version = XVID_VERSION; |
init.version = XVID_VERSION; |
964 |
init.cpu_flags = codec->config.cpu; |
init.cpu_flags = codec->config.cpu; |
965 |
|
init.debug = codec->config.debug; |
966 |
codec->xvid_global_func(0, XVID_GBL_INIT, &init, NULL); |
codec->xvid_global_func(0, XVID_GBL_INIT, &init, NULL); |
967 |
|
|
968 |
memset(&create, 0, sizeof(create)); |
memset(&create, 0, sizeof(create)); |