2009-06-01 20:32:41 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2009 Vincent Povirk for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WINCODECS_PRIVATE_H
|
|
|
|
#define WINCODECS_PRIVATE_H
|
|
|
|
|
2010-06-07 21:36:35 +02:00
|
|
|
DEFINE_GUID(CLSID_WineTgaDecoder, 0xb11fc79a,0x67cc,0x43e6,0xa9,0xce,0xe3,0xd5,0x49,0x45,0xd3,0x04);
|
|
|
|
|
2010-08-24 09:43:54 +02:00
|
|
|
DEFINE_GUID(CLSID_WICIcnsEncoder, 0x312fb6f1,0xb767,0x409d,0x8a,0x6d,0x0f,0xc1,0x54,0xd4,0xf0,0x5c);
|
|
|
|
|
2010-06-07 21:36:35 +02:00
|
|
|
DEFINE_GUID(GUID_WineContainerFormatTga, 0x0c44fda1,0xa5c5,0x4298,0x96,0x85,0x47,0x3f,0xc1,0x7c,0xd3,0x22);
|
|
|
|
|
2010-09-06 04:24:53 +02:00
|
|
|
DEFINE_GUID(GUID_VendorWine, 0xddf46da1,0x7dc1,0x404e,0x98,0xf2,0xef,0xa4,0x8d,0xfc,0x95,0x0a);
|
|
|
|
|
2009-08-06 03:49:37 +02:00
|
|
|
extern HRESULT FormatConverter_CreateInstance(IUnknown *pUnkOuter, REFIID riid, void** ppv);
|
2009-06-01 20:32:41 +02:00
|
|
|
extern HRESULT ImagingFactory_CreateInstance(IUnknown *pUnkOuter, REFIID riid, void** ppv);
|
2009-06-10 22:40:27 +02:00
|
|
|
extern HRESULT BmpDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID riid, void** ppv);
|
2009-08-09 01:49:33 +02:00
|
|
|
extern HRESULT PngDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2009-09-23 20:54:39 +02:00
|
|
|
extern HRESULT PngEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2009-08-11 20:47:29 +02:00
|
|
|
extern HRESULT BmpEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2010-09-16 20:40:55 +02:00
|
|
|
extern HRESULT DibDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2009-08-17 16:45:28 +02:00
|
|
|
extern HRESULT GifDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID riid, void** ppv);
|
2009-08-20 16:22:16 +02:00
|
|
|
extern HRESULT IcoDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2009-08-24 17:19:37 +02:00
|
|
|
extern HRESULT JpegDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2010-03-09 00:07:29 +01:00
|
|
|
extern HRESULT TiffDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2011-03-29 21:56:30 +02:00
|
|
|
extern HRESULT TiffEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2010-08-24 09:43:54 +02:00
|
|
|
extern HRESULT IcnsEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2009-06-01 20:32:41 +02:00
|
|
|
|
2010-06-07 21:36:35 +02:00
|
|
|
extern HRESULT TgaDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv);
|
2010-09-16 20:40:55 +02:00
|
|
|
|
2010-04-27 18:12:34 +02:00
|
|
|
extern HRESULT FlipRotator_Create(IWICBitmapFlipRotator **fliprotator);
|
2009-07-03 00:09:47 +02:00
|
|
|
extern HRESULT PaletteImpl_Create(IWICPalette **palette);
|
2009-08-18 17:48:49 +02:00
|
|
|
extern HRESULT StreamImpl_Create(IWICStream **stream);
|
2009-07-03 00:09:47 +02:00
|
|
|
|
2009-07-01 22:48:56 +02:00
|
|
|
extern HRESULT copy_pixels(UINT bpp, const BYTE *srcbuffer,
|
|
|
|
UINT srcwidth, UINT srcheight, INT srcstride,
|
|
|
|
const WICRect *rc, UINT dststride, UINT dstbuffersize, BYTE *dstbuffer);
|
|
|
|
|
2011-01-10 22:23:17 +01:00
|
|
|
extern void reverse_bgr8(UINT bytesperpixel, LPBYTE bits, UINT width, UINT height, INT stride);
|
|
|
|
|
2009-08-11 23:10:12 +02:00
|
|
|
extern HRESULT CreatePropertyBag2(IPropertyBag2 **ppPropertyBag2);
|
|
|
|
|
2009-07-15 00:50:28 +02:00
|
|
|
extern HRESULT CreateComponentInfo(REFCLSID clsid, IWICComponentInfo **ppIInfo);
|
2009-07-29 02:08:42 +02:00
|
|
|
extern HRESULT CreateComponentEnumerator(DWORD componentTypes, DWORD options, IEnumUnknown **ppIEnumUnknown);
|
2009-07-15 00:50:28 +02:00
|
|
|
|
2011-01-10 22:36:14 +01:00
|
|
|
typedef struct BmpDecoder BmpDecoder;
|
|
|
|
|
|
|
|
extern HRESULT IcoDibDecoder_CreateInstance(BmpDecoder **ppDecoder);
|
|
|
|
extern void BmpDecoder_GetWICDecoder(BmpDecoder *This, IWICBitmapDecoder **ppDecoder);
|
|
|
|
extern void BmpDecoder_FindIconMask(BmpDecoder *This, ULONG *mask_offset, int *topdown);
|
2010-09-16 20:40:55 +02:00
|
|
|
|
2009-06-01 20:32:41 +02:00
|
|
|
#endif /* WINCODECS_PRIVATE_H */
|