742 |
|
|
743 |
frame.motion |= pmvfast_presets[codec->config.motion_search]; |
frame.motion |= pmvfast_presets[codec->config.motion_search]; |
744 |
|
|
745 |
|
if (codec->config.vhq_bframe) frame.vop_flags |= XVID_VOP_RD_BVOP; |
746 |
|
|
747 |
|
|
748 |
switch (codec->config.vhq_mode) |
switch (codec->config.vhq_mode) |
749 |
{ |
{ |
750 |
case VHQ_MODE_DECISION : |
case VHQ_MODE_DECISION : |
1079 |
frame.output.plane[0] = icd->lpOutput; |
frame.output.plane[0] = icd->lpOutput; |
1080 |
frame.output.stride[0] = CALC_BI_STRIDE(icd->lpbiOutput->biWidth, icd->lpbiOutput->biBitCount); |
frame.output.stride[0] = CALC_BI_STRIDE(icd->lpbiOutput->biWidth, icd->lpbiOutput->biBitCount); |
1081 |
if (frame.output.csp == XVID_CSP_I420 || frame.output.csp == XVID_CSP_YV12) |
if (frame.output.csp == XVID_CSP_I420 || frame.output.csp == XVID_CSP_YV12) |
1082 |
frame.output.stride[0] = (frame.output.stride[0]*2)/3; |
frame.output.stride[0] = CALC_BI_STRIDE(icd->lpbiOutput->biWidth, 8); |
1083 |
} |
} |
1084 |
else |
else |
1085 |
{ |
{ |