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; |