mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
windowscodecs: Add 32bppRGBA to 32bppBGRA copy.
Signed-off-by: Esme Povirk <esme@codeweavers.com> Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f3752eb58f
commit
c5b351c35d
1 changed files with 9 additions and 0 deletions
|
@ -722,6 +722,15 @@ static HRESULT copypixels_to_32bppBGRA(struct FormatConverter *This, const WICRe
|
|||
pbBuffer[cbStride*y+4*x+3] = 0xff;
|
||||
}
|
||||
return S_OK;
|
||||
case format_32bppRGBA:
|
||||
if (prc)
|
||||
{
|
||||
HRESULT res;
|
||||
res = IWICBitmapSource_CopyPixels(This->source, prc, cbStride, cbBufferSize, pbBuffer);
|
||||
if (FAILED(res)) return res;
|
||||
reverse_bgr8(4, pbBuffer, prc->Width, prc->Height, cbStride);
|
||||
}
|
||||
return S_OK;
|
||||
case format_32bppBGRA:
|
||||
if (prc)
|
||||
return IWICBitmapSource_CopyPixels(This->source, prc, cbStride, cbBufferSize, pbBuffer);
|
||||
|
|
Loading…
Reference in a new issue