401 |
frame.general |= XVID_INTERLACING; |
frame.general |= XVID_INTERLACING; |
402 |
|
|
403 |
|
|
404 |
|
|
405 |
// added by koepi for credits greyscale |
// added by koepi for credits greyscale |
406 |
|
|
407 |
check_greyscale_mode(&codec->config, &frame, codec->framenum); |
check_greyscale_mode(&codec->config, &frame, codec->framenum); |
451 |
frame.motion = pmvfast_presets[codec->config.motion_search]; |
frame.motion = pmvfast_presets[codec->config.motion_search]; |
452 |
|
|
453 |
frame.image = icc->lpInput; |
frame.image = icc->lpInput; |
454 |
// dev-api-3 frame.stride = (((icc->lpbiInput->biWidth * icc->lpbiInput->biBitCount) + 31) & ~31) >> 3; |
// dev-api-3 |
455 |
|
frame.stride = (((icc->lpbiInput->biWidth * icc->lpbiInput->biBitCount) + 31) & ~31) >> 3; |
456 |
|
|
457 |
if ((frame.colorspace = get_colorspace(inhdr)) == XVID_CSP_NULL) |
if ((frame.colorspace = get_colorspace(inhdr)) == XVID_CSP_NULL) |
458 |
return ICERR_BADFORMAT; |
return ICERR_BADFORMAT; |
727 |
frame.length = icd->lpbiInput->biSizeImage; |
frame.length = icd->lpbiInput->biSizeImage; |
728 |
|
|
729 |
frame.image = icd->lpOutput; |
frame.image = icd->lpOutput; |
730 |
frame.stride = icd->lpbiOutput->biWidth; |
//frame.stride = icd->lpbiOutput->biWidth; |
731 |
// dev-api-3: frame.stride = (((icd->lpbiOutput->biWidth * icd->lpbiOutput->biBitCount) + 31) & ~31) >> 3; |
// dev-api-3: |
732 |
|
frame.stride = (((icd->lpbiOutput->biWidth * icd->lpbiOutput->biBitCount) + 31) & ~31) >> 3; |
733 |
|
|
734 |
/* --- yv12 --- */ |
/* --- yv12 --- */ |
735 |
if (icd->lpbiInput->biCompression == FOURCC_YV12) { |
if (icd->lpbiInput->biCompression == FOURCC_YV12) { |