569 |
/* custom pixel aspect ratio -> calculated from DAR */ |
/* custom pixel aspect ratio -> calculated from DAR */ |
570 |
frame.par = XVID_PAR_EXT; |
frame.par = XVID_PAR_EXT; |
571 |
frame.par_width = (100 * inhdr->biHeight) / codec->config.ar_y; |
frame.par_width = (100 * inhdr->biHeight) / codec->config.ar_y; |
572 |
frame.par_height= (100 * inhdr->biWidth) / codec->config.ar_x;; |
frame.par_height= (100 * inhdr->biWidth) / codec->config.ar_x; |
573 |
} |
} |
574 |
|
|
575 |
/* vop stuff */ |
/* vop stuff */ |
595 |
frame.motion |= XVID_ME_DETECT_STATIC_MOTION; |
frame.motion |= XVID_ME_DETECT_STATIC_MOTION; |
596 |
} |
} |
597 |
|
|
598 |
|
if (codec->config.turbo) |
599 |
|
frame.motion |= XVID_ME_FASTREFINE16 | XVID_ME_FASTREFINE8 | |
600 |
|
XVID_ME_SKIP_DELTASEARCH | XVID_ME_FAST_MODEINTERPOLATE | |
601 |
|
XVID_ME_BFRAME_EARLYSTOP; |
602 |
|
|
603 |
frame.motion |= pmvfast_presets[codec->config.motion_search]; |
frame.motion |= pmvfast_presets[codec->config.motion_search]; |
604 |
|
|
605 |
switch (codec->config.vhq_mode) |
switch (codec->config.vhq_mode) |