386 |
frame.general |= XVID_HALFPEL; |
frame.general |= XVID_HALFPEL; |
387 |
// frame.general |= XVID_ME_EPZS; |
// frame.general |= XVID_ME_EPZS; |
388 |
|
|
|
|
|
389 |
if (codec->config.motion_search > 4) |
if (codec->config.motion_search > 4) |
390 |
frame.general |= XVID_INTER4V; |
frame.general |= XVID_INTER4V; |
391 |
|
|
404 |
frame.general |= XVID_GMC; |
frame.general |= XVID_GMC; |
405 |
|
|
406 |
if (codec->config.chromame) |
if (codec->config.chromame) |
407 |
frame.general |= XVID_ME_COLOUR; |
frame.motion |= PMV_CHROMA16 + PMV_CHROMA8; |
408 |
|
|
409 |
if (codec->config.reduced_resolution) |
if (codec->config.reduced_resolution) |
410 |
frame.general |= XVID_REDUCED; |
frame.general |= XVID_REDUCED; |
661 |
} |
} |
662 |
/* --- yv12 --- */ |
/* --- yv12 --- */ |
663 |
|
|
664 |
result = decompress_query(codec, lpbiInput, lpbiOutput); |
result = decompress_query(codec, lpbiInput, NULL); |
665 |
if (result != ICERR_OK) |
if (result != ICERR_OK) |
666 |
{ |
{ |
667 |
return result; |
return result; |
668 |
} |
} |
669 |
|
|
|
memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER)); |
|
670 |
outhdr->biSize = sizeof(BITMAPINFOHEADER); |
outhdr->biSize = sizeof(BITMAPINFOHEADER); |
671 |
outhdr->biCompression = FOURCC_YUY2; |
outhdr->biWidth = inhdr->biWidth; |
672 |
|
outhdr->biHeight = inhdr->biHeight; |
673 |
|
outhdr->biPlanes = 1; |
674 |
|
outhdr->biBitCount = 24; |
675 |
|
outhdr->biCompression = BI_RGB; /* sonic foundry vegas video v3 only supports BI_RGB */ |
676 |
outhdr->biSizeImage = outhdr->biWidth * outhdr->biHeight * outhdr->biBitCount; |
outhdr->biSizeImage = outhdr->biWidth * outhdr->biHeight * outhdr->biBitCount; |
677 |
outhdr->biXPelsPerMeter = 0; |
outhdr->biXPelsPerMeter = 0; |
678 |
outhdr->biYPelsPerMeter = 0; |
outhdr->biYPelsPerMeter = 0; |