tgaformat.c (324214f9) | tgaformat.c (e98ef499) |
---|---|
1/* 2 * Copyright 2010 Vincent Povirk for CodeWeavers 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * --- 876 unchanged lines hidden (view full) --- 885} 886 887static HRESULT WINAPI TgaDecoder_Frame_CopyPixels(IWICBitmapFrameDecode *iface, 888 const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) 889{ 890 TgaDecoder *This = impl_from_IWICBitmapFrameDecode(iface); 891 HRESULT hr; 892 | 1/* 2 * Copyright 2010 Vincent Povirk for CodeWeavers 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * --- 876 unchanged lines hidden (view full) --- 885} 886 887static HRESULT WINAPI TgaDecoder_Frame_CopyPixels(IWICBitmapFrameDecode *iface, 888 const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) 889{ 890 TgaDecoder *This = impl_from_IWICBitmapFrameDecode(iface); 891 HRESULT hr; 892 |
893 TRACE("(%p,%p,%u,%u,%p)\n", iface, prc, cbStride, cbBufferSize, pbBuffer); | 893 TRACE("(%p,%s,%u,%u,%p)\n", iface, debug_wic_rect(prc), cbStride, cbBufferSize, pbBuffer); |
894 895 hr = TgaDecoder_ReadImage(This); 896 897 if (SUCCEEDED(hr)) 898 { 899 hr = copy_pixels(This->header.depth, This->origin, 900 This->header.width, This->header.height, This->stride, 901 prc, cbStride, cbBufferSize, pbBuffer); --- 66 unchanged lines hidden --- | 894 895 hr = TgaDecoder_ReadImage(This); 896 897 if (SUCCEEDED(hr)) 898 { 899 hr = copy_pixels(This->header.depth, This->origin, 900 This->header.width, This->header.height, This->stride, 901 prc, cbStride, cbBufferSize, pbBuffer); --- 66 unchanged lines hidden --- |