ReactOS 0.4.15-dev-8102-g108db8f
proxy.c
Go to the documentation of this file.
1/*
2 * Misleadingly named convenience functions for accessing WIC.
3 *
4 * Copyright 2012 Vincent Povirk for CodeWeavers
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#include "config.h"
22
23#include <stdarg.h>
24
25#define COBJMACROS
26
27#include "windef.h"
28#include "winbase.h"
29#include "objbase.h"
30
31#include "wincodecs_private.h"
32
33#include "wine/debug.h"
34
36
38 ULONG cProperties, PROPBAG2 *ppropbag, VARIANT *pvarValue)
39{
40 return IPropertyBag2_Write(iface, cProperties, ppropbag, pvarValue);
41}
42
44 IWICBitmapSource *pISource, const WICRect *prc)
45{
46 return IWICBitmapClipper_Initialize(iface, pISource, prc);
47}
48
50 GUID *pguidContainerFormat)
51{
52 return IWICBitmapCodecInfo_GetContainerFormat(iface, pguidContainerFormat);
53}
54
56 UINT cchDeviceManufacturer, WCHAR *wzDeviceManufacturer, UINT *pcchActual)
57{
58 return IWICBitmapCodecInfo_GetDeviceManufacturer(iface, cchDeviceManufacturer, wzDeviceManufacturer, pcchActual);
59}
60
62 UINT cchDeviceModels, WCHAR *wzDeviceModels, UINT *pcchActual)
63{
64 return IWICBitmapCodecInfo_GetDeviceModels(iface, cchDeviceModels, wzDeviceModels, pcchActual);
65}
66
68 UINT cchMimeTypes, WCHAR *wzMimeTypes, UINT *pcchActual)
69{
70 return IWICBitmapCodecInfo_GetMimeTypes(iface, cchMimeTypes, wzMimeTypes, pcchActual);
71}
72
74 UINT cchFileExtensions, WCHAR *wzFileExtensions, UINT *pcchActual)
75{
76 return IWICBitmapCodecInfo_GetFileExtensions(iface, cchFileExtensions, wzFileExtensions, pcchActual);
77}
78
80 BOOL *pfSupportAnimation)
81{
82 return IWICBitmapCodecInfo_DoesSupportAnimation(iface, pfSupportAnimation);
83}
84
86 BOOL *pfSupportLossless)
87{
88 return IWICBitmapCodecInfo_DoesSupportLossless(iface, pfSupportLossless);
89}
90
92 BOOL *pfSupportMultiframe)
93{
94 return IWICBitmapCodecInfo_DoesSupportMultiframe(iface, pfSupportMultiframe);
95}
96
98 IWICBitmapDecoderInfo **ppIDecoderInfo)
99{
100 return IWICBitmapDecoder_GetDecoderInfo(iface, ppIDecoderInfo);
101}
102
104 IWICPalette *pIPalette)
105{
106 return IWICBitmapDecoder_CopyPalette(iface, pIPalette);
107}
108
110 IWICMetadataQueryReader **ppIMetadataQueryReader)
111{
112 return IWICBitmapDecoder_GetMetadataQueryReader(iface, ppIMetadataQueryReader);
113}
114
116 IWICBitmapSource **ppIBitmapSource)
117{
118 return IWICBitmapDecoder_GetPreview(iface, ppIBitmapSource);
119}
120
122 UINT cCount, IWICColorContext **ppIColorContexts, UINT *pcActualCount)
123{
124 return IWICBitmapDecoder_GetColorContexts(iface, cCount, ppIColorContexts, pcActualCount);
125}
126
128 IWICBitmapSource **ppIThumbnail)
129{
130 return IWICBitmapDecoder_GetThumbnail(iface, ppIThumbnail);
131}
132
134 UINT *pCount)
135{
136 return IWICBitmapDecoder_GetFrameCount(iface, pCount);
137}
138
140 UINT index, IWICBitmapFrameDecode **ppIBitmapFrame)
141{
142 return IWICBitmapDecoder_GetFrame(iface, index, ppIBitmapFrame);
143}
144
146 IStream *pIStream, WICBitmapEncoderCacheOption cacheOption)
147{
148 return IWICBitmapEncoder_Initialize(iface, pIStream, cacheOption);
149}
150
152 IWICBitmapEncoderInfo **ppIEncoderInfo)
153{
154 return IWICBitmapEncoder_GetEncoderInfo(iface, ppIEncoderInfo);
155}
156
158 IWICPalette *pIPalette)
159{
160 return IWICBitmapEncoder_SetPalette(iface, pIPalette);
161}
162
164 IWICBitmapSource *pIThumbnail)
165{
166 return IWICBitmapEncoder_SetThumbnail(iface, pIThumbnail);
167}
168
170 IWICBitmapFrameEncode **ppIFrameEncode, IPropertyBag2 **ppIEncoderOptions)
171{
172 return IWICBitmapEncoder_CreateNewFrame(iface, ppIFrameEncode, ppIEncoderOptions);
173}
174
176{
177 return IWICBitmapEncoder_Commit(iface);
178}
179
181 IWICMetadataQueryWriter **ppIMetadataQueryWriter)
182{
183 return IWICBitmapEncoder_GetMetadataQueryWriter(iface, ppIMetadataQueryWriter);
184}
185
188{
189 return IWICBitmapFlipRotator_Initialize(iface, pISource, options);
190}
191
193 IPropertyBag2 *pIEncoderOptions)
194{
195 return IWICBitmapFrameEncode_Initialize(iface, pIEncoderOptions);
196}
197
199 UINT uiWidth, UINT uiHeight)
200{
201 return IWICBitmapFrameEncode_SetSize(iface, uiWidth, uiHeight);
202}
203
205 double dpiX, double dpiY)
206{
207 return IWICBitmapFrameEncode_SetResolution(iface, dpiX, dpiY);
208}
209
211 UINT cCount, IWICColorContext **ppIColorContext)
212{
213 return IWICBitmapFrameEncode_SetColorContexts(iface, cCount, ppIColorContext);
214}
215
217 IWICBitmapSource *pIThumbnail)
218{
219 return IWICBitmapFrameEncode_SetThumbnail(iface, pIThumbnail);
220}
221
223 IWICBitmapSource *pIBitmapSource, WICRect *prc)
224{
225 if (prc && (prc->Width <= 0 || prc->Height <= 0))
226 prc = NULL;
227
228 return IWICBitmapFrameEncode_WriteSource(iface, pIBitmapSource, prc);
229}
230
232{
233 return IWICBitmapFrameEncode_Commit(iface);
234}
235
237 IWICMetadataQueryWriter **ppIMetadataQueryWriter)
238{
239 return IWICBitmapFrameEncode_GetMetadataQueryWriter(iface, ppIMetadataQueryWriter);
240}
241
243 UINT *pcbBufferSize, BYTE **ppbData)
244{
245 return IWICBitmapLock_GetDataPointer(iface, pcbBufferSize, ppbData);
246}
247
249 UINT *pcbStride)
250{
251 return IWICBitmapLock_GetStride(iface, pcbStride);
252}
253
255 IWICBitmapSource *pISource, UINT uiWidth, UINT uiHeight, WICBitmapInterpolationMode mode)
256{
257 return IWICBitmapScaler_Initialize(iface, pISource, uiWidth, uiHeight, mode);
258}
259
261 UINT *puiWidth, UINT *puiHeight)
262{
263 return IWICBitmapSource_GetSize(iface, puiWidth, puiHeight);
264}
265
267 WICPixelFormatGUID *pPixelFormat)
268{
269 return IWICBitmapSource_GetPixelFormat(iface, pPixelFormat);
270}
271
273 double *pDpiX, double *pDpiY)
274{
275 return IWICBitmapSource_GetResolution(iface, pDpiX, pDpiY);
276}
277
279 IWICPalette *pIPalette)
280{
281 return IWICBitmapSource_CopyPalette(iface, pIPalette);
282}
283
285 const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer)
286{
287 return IWICBitmapSource_CopyPixels(iface, prc, cbStride, cbBufferSize, pbBuffer);
288}
289
291 const WICRect *prcLock, DWORD flags, IWICBitmapLock **ppILock)
292{
293 return IWICBitmap_Lock(iface, prcLock, flags, ppILock);
294}
295
297 IWICPalette *pIPalette)
298{
299 return IWICBitmap_SetPalette(iface, pIPalette);
300}
301
303 double dpiX, double dpiY)
304{
305 return IWICBitmap_SetResolution(iface, dpiX, dpiY);
306}
307
309 const BYTE *pbBuffer, UINT cbBufferSize)
310{
311 return IWICColorContext_InitializeFromMemory(iface, pbBuffer, cbBufferSize);
312}
313
315 IWICMetadataReader *pIReader, const GUID *pguidVendor, IWICMetadataWriter **ppIWriter)
316{
317 return IWICComponentFactory_CreateMetadataWriterFromReader(iface, pIReader, pguidVendor, ppIWriter);
318}
319
321 IWICMetadataBlockWriter *pIBlockWriter, IWICMetadataQueryWriter **ppIQueryWriter)
322{
323 return IWICComponentFactory_CreateQueryWriterFromBlockWriter(iface, pIBlockWriter, ppIQueryWriter);
324}
325
327 CLSID *pclsid)
328{
329 return IWICComponentInfo_GetCLSID(iface, pclsid);
330}
331
333 UINT cchAuthor, WCHAR *wzAuthor, UINT *pcchActual)
334{
335 return IWICComponentInfo_GetAuthor(iface, cchAuthor, wzAuthor, pcchActual);
336}
337
339 UINT cchVersion, WCHAR *wzVersion, UINT *pcchActual)
340{
341 return IWICComponentInfo_GetVersion(iface, cchVersion, wzVersion, pcchActual);
342}
343
345 UINT cchSpecVersion, WCHAR *wzSpecVersion, UINT *pcchActual)
346{
347 return IWICComponentInfo_GetSpecVersion(iface, cchSpecVersion, wzSpecVersion, pcchActual);
348}
349
351 UINT cchFriendlyName, WCHAR *wzFriendlyName, UINT *pcchActual)
352{
353 return IWICComponentInfo_GetFriendlyName(iface, cchFriendlyName, wzFriendlyName, pcchActual);
354}
355
357{
358 return IWICFastMetadataEncoder_Commit(iface);
359}
360
362 IWICMetadataQueryWriter **ppIMetadataQueryWriter)
363{
364 return IWICFastMetadataEncoder_GetMetadataQueryWriter(iface, ppIMetadataQueryWriter);
365}
366
368 IWICMetadataQueryReader **ppIMetadataQueryReader)
369{
370 return IWICBitmapFrameDecode_GetMetadataQueryReader(iface, ppIMetadataQueryReader);
371}
372
374 UINT cCount, IWICColorContext **ppIColorContexts, UINT *pcActualCount)
375{
376 return IWICBitmapFrameDecode_GetColorContexts(iface, cCount, ppIColorContexts, pcActualCount);
377}
378
380 IWICBitmapSource **ppIThumbnail)
381{
382 return IWICBitmapFrameDecode_GetThumbnail(iface, ppIThumbnail);
383}
384
387 IWICPalette *pIPalette, double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate)
388{
389 return IWICFormatConverter_Initialize(iface, pISource, dstFormat, dither,
390 pIPalette, alphaThresholdPercent, paletteTranslate);
391}
392
394 IWICBitmapClipper **ppIBitmapClipper)
395{
396 return IWICImagingFactory_CreateBitmapClipper(pFactory, ppIBitmapClipper);
397}
398
400 IWICBitmapFlipRotator **ppIBitmapFlipRotator)
401{
402 return IWICImagingFactory_CreateBitmapFlipRotator(pFactory, ppIBitmapFlipRotator);
403}
404
406 HBITMAP hBitmap, HPALETTE hPalette, WICBitmapAlphaChannelOption options, IWICBitmap **ppIBitmap)
407{
408 return IWICImagingFactory_CreateBitmapFromHBITMAP(pFactory, hBitmap, hPalette, options, ppIBitmap);
409}
410
412 HICON hIcon, IWICBitmap **ppIBitmap)
413{
414 return IWICImagingFactory_CreateBitmapFromHICON(pFactory, hIcon, ppIBitmap);
415}
416
418 UINT uiWidth, UINT uiHeight, REFWICPixelFormatGUID pixelFormat, UINT cbStride,
419 UINT cbBufferSize, BYTE *pbBuffer, IWICBitmap **ppIBitmap)
420{
421 return IWICImagingFactory_CreateBitmapFromMemory(pFactory, uiWidth, uiHeight,
422 pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap);
423}
424
426 IWICBitmapSource *piBitmapSource, WICBitmapCreateCacheOption option, IWICBitmap **ppIBitmap)
427{
428 return IWICImagingFactory_CreateBitmapFromSource(pFactory, piBitmapSource, option, ppIBitmap);
429}
430
432 IWICBitmapScaler **ppIBitmapScaler)
433{
434 return IWICImagingFactory_CreateBitmapScaler(pFactory, ppIBitmapScaler);
435}
436
438 UINT uiWidth, UINT uiHeight, REFWICPixelFormatGUID pixelFormat,
440{
441 return IWICImagingFactory_CreateBitmap(pFactory, uiWidth, uiHeight,
442 pixelFormat, option, ppIBitmap);
443}
444
446 REFCLSID clsidComponent, IWICComponentInfo **ppIInfo)
447{
448 return IWICImagingFactory_CreateComponentInfo(pFactory, clsidComponent, ppIInfo);
449}
450
452 ULONG_PTR hFile, const GUID *pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder **ppIDecoder)
453{
454 return IWICImagingFactory_CreateDecoderFromFileHandle(pFactory, hFile, pguidVendor, metadataOptions, ppIDecoder);
455}
456
458 LPCWSTR wzFilename, const GUID *pguidVendor, DWORD dwDesiredAccess,
459 WICDecodeOptions metadataOptions, IWICBitmapDecoder **ppIDecoder)
460{
461 return IWICImagingFactory_CreateDecoderFromFilename(pFactory, wzFilename,
462 pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder);
463}
464
466 IStream *pIStream, const GUID *pguidVendor,
467 WICDecodeOptions metadataOptions, IWICBitmapDecoder **ppIDecoder)
468{
469 return IWICImagingFactory_CreateDecoderFromStream(pFactory, pIStream, pguidVendor, metadataOptions, ppIDecoder);
470}
471
473 REFGUID guidContainerFormat, const GUID *pguidVendor, IWICBitmapEncoder **ppIEncoder)
474{
475 return IWICImagingFactory_CreateEncoder(pFactory, guidContainerFormat, pguidVendor, ppIEncoder);
476}
477
479 IWICBitmapDecoder *pIDecoder, IWICFastMetadataEncoder **ppIFastEncoder)
480{
481 return IWICImagingFactory_CreateFastMetadataEncoderFromDecoder(pFactory, pIDecoder, ppIFastEncoder);
482}
483
485 IWICBitmapFrameDecode *pIFrameDecoder, IWICFastMetadataEncoder **ppIFastEncoder)
486{
487 return IWICImagingFactory_CreateFastMetadataEncoderFromFrameDecode(pFactory, pIFrameDecoder, ppIFastEncoder);
488}
489
491 IWICFormatConverter **ppIFormatConverter)
492{
493 return IWICImagingFactory_CreateFormatConverter(pFactory, ppIFormatConverter);
494}
495
497 IWICPalette **ppIPalette)
498{
499 return IWICImagingFactory_CreatePalette(pFactory, ppIPalette);
500}
501
503 IWICMetadataQueryReader *pIQueryReader, const GUID *pguidVendor,
504 IWICMetadataQueryWriter **ppIQueryWriter)
505{
506 return IWICImagingFactory_CreateQueryWriterFromReader(pFactory, pIQueryReader, pguidVendor, ppIQueryWriter);
507}
508
510 REFGUID guidMetadataFormat, const GUID *pguidVendor, IWICMetadataQueryWriter **ppIQueryWriter)
511{
512 return IWICImagingFactory_CreateQueryWriter(pFactory, guidMetadataFormat, pguidVendor, ppIQueryWriter);
513}
514
516 IWICStream **ppIWICStream)
517{
518 return IWICImagingFactory_CreateStream(pFactory, ppIWICStream);
519}
520
522 UINT *pcCount)
523{
524 return IWICMetadataBlockReader_GetCount(iface, pcCount);
525}
526
528 UINT nIndex, IWICMetadataReader **ppIMetadataReader)
529{
530 return IWICMetadataBlockReader_GetReaderByIndex(iface, nIndex, ppIMetadataReader);
531}
532
534 GUID *pguidContainerFormat)
535{
536 return IWICMetadataQueryReader_GetContainerFormat(iface, pguidContainerFormat);
537}
538
540 UINT cchMaxLength, WCHAR *wzNamespace, UINT *pcchActualLength)
541{
542 return IWICMetadataQueryReader_GetLocation(iface, cchMaxLength, wzNamespace, pcchActualLength);
543}
544
546 LPCWSTR wzName, PROPVARIANT *pvarValue)
547{
548 return IWICMetadataQueryReader_GetMetadataByName(iface, wzName, pvarValue);
549}
550
552 IEnumString **ppIEnumString)
553{
554 return IWICMetadataQueryReader_GetEnumerator(iface, ppIEnumString);
555}
556
558 LPCWSTR wzName, const PROPVARIANT *pvarValue)
559{
560 return IWICMetadataQueryWriter_SetMetadataByName(iface, wzName, pvarValue);
561}
562
564 LPCWSTR wzName)
565{
566 return IWICMetadataQueryWriter_RemoveMetadataByName(iface, wzName);
567}
568
570 WICBitmapPaletteType ePaletteType, BOOL fAddTransparentColor)
571{
572 return IWICPalette_InitializePredefined(iface, ePaletteType, fAddTransparentColor);
573}
574
576 WICColor *pColors, UINT colorCount)
577{
578 return IWICPalette_InitializeCustom(iface, pColors, colorCount);
579}
580
582 IWICBitmapSource *pISurface, UINT colorCount, BOOL fAddTransparentColor)
583{
584 return IWICPalette_InitializeFromBitmap(iface, pISurface, colorCount, fAddTransparentColor);
585}
586
588 IWICPalette *pIPalette)
589{
590 return IWICPalette_InitializeFromPalette(iface, pIPalette);
591}
592
594 WICBitmapPaletteType *pePaletteType)
595{
596 return IWICPalette_GetType(iface, pePaletteType);
597}
598
600 UINT *pcCount)
601{
602 return IWICPalette_GetColorCount(iface, pcCount);
603}
604
606 UINT colorCount, WICColor *pColors, UINT *pcActualColors)
607{
608 return IWICPalette_GetColors(iface, colorCount, pColors, pcActualColors);
609}
610
612 BOOL *pfHasAlpha)
613{
614 return IWICPalette_HasAlpha(iface, pfHasAlpha);
615}
616
618 IStream *pIStream)
619{
620 return IWICStream_InitializeFromIStream(iface, pIStream);
621}
622
624 BYTE *pbBuffer, DWORD cbBufferSize)
625{
626 return IWICStream_InitializeFromMemory(iface, pbBuffer, cbBufferSize);
627}
628
630{
631 return IWICPixelFormatInfo_GetBitsPerPixel(iface, bpp);
632}
633
635{
636 return IWICPixelFormatInfo_GetChannelCount(iface, count);
637}
638
640{
641 return IWICPixelFormatInfo_GetChannelMask(iface, channel, buffer_size, buffer, actual);
642}
643
645{
646 TRACE("%p, %p\n", iface, ppIWICColorContext);
647
648 return IWICImagingFactory_CreateColorContext(iface, ppIWICColorContext);
649}
650
652{
653 TRACE("%x, %p\n", SDKVersion, ppIImagingFactory);
654
655 return ImagingFactory_CreateInstance(&IID_IWICImagingFactory, (void**)ppIImagingFactory);
656}
657
659 IWICPalette *pIPalette, IWICBitmapFrameEncode *pIFrameEncode,
660 IWICBitmapSource **ppSourceOut)
661{
662 HRESULT hr;
663 WICPixelFormatGUID pixelformat, framepixelformat;
664
665 TRACE("%p,%p,%p,%p\n", pSourceIn, pIPalette, pIFrameEncode, ppSourceOut);
666
667 if (pIPalette) FIXME("ignoring palette\n");
668
669 if (!pSourceIn || !pIFrameEncode || !ppSourceOut)
670 return E_INVALIDARG;
671
672 *ppSourceOut = NULL;
673
674 hr = IWICBitmapSource_GetPixelFormat(pSourceIn, &pixelformat);
675
676 if (SUCCEEDED(hr))
677 {
678 framepixelformat = pixelformat;
679 hr = IWICBitmapFrameEncode_SetPixelFormat(pIFrameEncode, &framepixelformat);
680 }
681
682 if (SUCCEEDED(hr))
683 {
684 if (IsEqualGUID(&pixelformat, &framepixelformat))
685 {
686 *ppSourceOut = pSourceIn;
687 IWICBitmapSource_AddRef(pSourceIn);
688 }
689 else
690 {
691 hr = WICConvertBitmapSource(&framepixelformat, pSourceIn, ppSourceOut);
692 }
693 }
694
695 return hr;
696}
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
#define FIXME(fmt,...)
Definition: debug.h:114
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
static HBITMAP hBitmap
Definition: timezone.c:26
DWORD bpp
Definition: surface.c:185
pixelformat
Definition: converter.c:40
HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst)
Definition: info.c:2474
HRESULT WINAPI IWICImagingFactory_CreateDecoderFromStream_Proxy_W(IWICImagingFactory *pFactory, IStream *pIStream, const GUID *pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder **ppIDecoder)
Definition: proxy.c:465
HRESULT WINAPI IWICBitmapFrameEncode_SetThumbnail_Proxy_W(IWICBitmapFrameEncode *iface, IWICBitmapSource *pIThumbnail)
Definition: proxy.c:216
HRESULT WINAPI IWICComponentInfo_GetVersion_Proxy_W(IWICComponentInfo *iface, UINT cchVersion, WCHAR *wzVersion, UINT *pcchActual)
Definition: proxy.c:338
HRESULT WINAPI IWICComponentInfo_GetAuthor_Proxy_W(IWICComponentInfo *iface, UINT cchAuthor, WCHAR *wzAuthor, UINT *pcchActual)
Definition: proxy.c:332
HRESULT WINAPI IWICBitmapEncoder_GetEncoderInfo_Proxy_W(IWICBitmapEncoder *iface, IWICBitmapEncoderInfo **ppIEncoderInfo)
Definition: proxy.c:151
HRESULT WINAPI IWICImagingFactory_CreateFormatConverter_Proxy_W(IWICImagingFactory *pFactory, IWICFormatConverter **ppIFormatConverter)
Definition: proxy.c:490
HRESULT WINAPI IWICBitmapEncoder_GetMetadataQueryWriter_Proxy_W(IWICBitmapEncoder *iface, IWICMetadataQueryWriter **ppIMetadataQueryWriter)
Definition: proxy.c:180
HRESULT WINAPI IWICBitmapFrameDecode_GetMetadataQueryReader_Proxy_W(IWICBitmapFrameDecode *iface, IWICMetadataQueryReader **ppIMetadataQueryReader)
Definition: proxy.c:367
HRESULT WINAPI IWICMetadataQueryReader_GetLocation_Proxy_W(IWICMetadataQueryReader *iface, UINT cchMaxLength, WCHAR *wzNamespace, UINT *pcchActualLength)
Definition: proxy.c:539
HRESULT WINAPI IWICComponentInfo_GetFriendlyName_Proxy_W(IWICComponentInfo *iface, UINT cchFriendlyName, WCHAR *wzFriendlyName, UINT *pcchActual)
Definition: proxy.c:350
HRESULT WINAPI IWICBitmapClipper_Initialize_Proxy_W(IWICBitmapClipper *iface, IWICBitmapSource *pISource, const WICRect *prc)
Definition: proxy.c:43
HRESULT WINAPI IWICImagingFactory_CreateBitmapFromSource_Proxy_W(IWICImagingFactory *pFactory, IWICBitmapSource *piBitmapSource, WICBitmapCreateCacheOption option, IWICBitmap **ppIBitmap)
Definition: proxy.c:425
HRESULT WINAPI IWICBitmapSource_GetSize_Proxy_W(IWICBitmapSource *iface, UINT *puiWidth, UINT *puiHeight)
Definition: proxy.c:260
HRESULT WINAPI WICSetEncoderFormat_Proxy(IWICBitmapSource *pSourceIn, IWICPalette *pIPalette, IWICBitmapFrameEncode *pIFrameEncode, IWICBitmapSource **ppSourceOut)
Definition: proxy.c:658
HRESULT WINAPI IWICImagingFactory_CreateFastMetadataEncoderFromDecoder_Proxy_W(IWICImagingFactory *pFactory, IWICBitmapDecoder *pIDecoder, IWICFastMetadataEncoder **ppIFastEncoder)
Definition: proxy.c:478
HRESULT WINAPI IWICFastMetadataEncoder_GetMetadataQueryWriter_Proxy_W(IWICFastMetadataEncoder *iface, IWICMetadataQueryWriter **ppIMetadataQueryWriter)
Definition: proxy.c:361
HRESULT WINAPI IWICBitmapEncoder_CreateNewFrame_Proxy_W(IWICBitmapEncoder *iface, IWICBitmapFrameEncode **ppIFrameEncode, IPropertyBag2 **ppIEncoderOptions)
Definition: proxy.c:169
HRESULT WINAPI IWICPalette_HasAlpha_Proxy_W(IWICPalette *iface, BOOL *pfHasAlpha)
Definition: proxy.c:611
HRESULT WINAPI IWICImagingFactory_CreateQueryWriterFromReader_Proxy_W(IWICImagingFactory *pFactory, IWICMetadataQueryReader *pIQueryReader, const GUID *pguidVendor, IWICMetadataQueryWriter **ppIQueryWriter)
Definition: proxy.c:502
HRESULT WINAPI IWICBitmapFlipRotator_Initialize_Proxy_W(IWICBitmapFlipRotator *iface, IWICBitmapSource *pISource, WICBitmapTransformOptions options)
Definition: proxy.c:186
HRESULT WINAPI IWICPixelFormatInfo_GetChannelCount_Proxy_W(IWICPixelFormatInfo *iface, UINT *count)
Definition: proxy.c:634
HRESULT WINAPI IWICBitmapFrameDecode_GetColorContexts_Proxy_W(IWICBitmapFrameDecode *iface, UINT cCount, IWICColorContext **ppIColorContexts, UINT *pcActualCount)
Definition: proxy.c:373
HRESULT WINAPI IWICPalette_GetColors_Proxy_W(IWICPalette *iface, UINT colorCount, WICColor *pColors, UINT *pcActualColors)
Definition: proxy.c:605
HRESULT WINAPI IWICBitmapSource_CopyPalette_Proxy_W(IWICBitmapSource *iface, IWICPalette *pIPalette)
Definition: proxy.c:278
HRESULT WINAPI WICCreateColorContext_Proxy(IWICImagingFactory *iface, IWICColorContext **ppIWICColorContext)
Definition: proxy.c:644
HRESULT WINAPI IWICPixelFormatInfo_GetBitsPerPixel_Proxy_W(IWICPixelFormatInfo *iface, UINT *bpp)
Definition: proxy.c:629
HRESULT WINAPI IWICBitmapEncoder_SetPalette_Proxy_W(IWICBitmapEncoder *iface, IWICPalette *pIPalette)
Definition: proxy.c:157
HRESULT WINAPI IWICMetadataBlockReader_GetReaderByIndex_Proxy_W(IWICMetadataBlockReader *iface, UINT nIndex, IWICMetadataReader **ppIMetadataReader)
Definition: proxy.c:527
HRESULT WINAPI IWICImagingFactory_CreateBitmap_Proxy_W(IWICImagingFactory *pFactory, UINT uiWidth, UINT uiHeight, REFWICPixelFormatGUID pixelFormat, WICBitmapCreateCacheOption option, IWICBitmap **ppIBitmap)
Definition: proxy.c:437
HRESULT WINAPI IWICBitmapFrameEncode_WriteSource_Proxy_W(IWICBitmapFrameEncode *iface, IWICBitmapSource *pIBitmapSource, WICRect *prc)
Definition: proxy.c:222
HRESULT WINAPI IWICImagingFactory_CreateBitmapClipper_Proxy_W(IWICImagingFactory *pFactory, IWICBitmapClipper **ppIBitmapClipper)
Definition: proxy.c:393
HRESULT WINAPI IWICBitmapCodecInfo_GetContainerFormat_Proxy_W(IWICBitmapCodecInfo *iface, GUID *pguidContainerFormat)
Definition: proxy.c:49
HRESULT WINAPI IWICBitmapCodecInfo_DoesSupportLossless_Proxy_W(IWICBitmapCodecInfo *iface, BOOL *pfSupportLossless)
Definition: proxy.c:85
HRESULT WINAPI IWICStream_InitializeFromMemory_Proxy_W(IWICStream *iface, BYTE *pbBuffer, DWORD cbBufferSize)
Definition: proxy.c:623
HRESULT WINAPI IWICMetadataQueryReader_GetContainerFormat_Proxy_W(IWICMetadataQueryReader *iface, GUID *pguidContainerFormat)
Definition: proxy.c:533
HRESULT WINAPI IWICBitmapFrameDecode_GetThumbnail_Proxy_W(IWICBitmapFrameDecode *iface, IWICBitmapSource **ppIThumbnail)
Definition: proxy.c:379
HRESULT WINAPI IWICImagingFactory_CreateComponentInfo_Proxy_W(IWICImagingFactory *pFactory, REFCLSID clsidComponent, IWICComponentInfo **ppIInfo)
Definition: proxy.c:445
HRESULT WINAPI IWICBitmapDecoder_GetFrameCount_Proxy_W(IWICBitmapDecoder *iface, UINT *pCount)
Definition: proxy.c:133
HRESULT WINAPI IWICPalette_GetType_Proxy_W(IWICPalette *iface, WICBitmapPaletteType *pePaletteType)
Definition: proxy.c:593
HRESULT WINAPI IWICMetadataBlockReader_GetCount_Proxy_W(IWICMetadataBlockReader *iface, UINT *pcCount)
Definition: proxy.c:521
HRESULT WINAPI IWICImagingFactory_CreateFastMetadataEncoderFromFrameDecode_Proxy_W(IWICImagingFactory *pFactory, IWICBitmapFrameDecode *pIFrameDecoder, IWICFastMetadataEncoder **ppIFastEncoder)
Definition: proxy.c:484
HRESULT WINAPI IWICBitmapCodecInfo_GetDeviceManufacturer_Proxy_W(IWICBitmapCodecInfo *iface, UINT cchDeviceManufacturer, WCHAR *wzDeviceManufacturer, UINT *pcchActual)
Definition: proxy.c:55
HRESULT WINAPI IPropertyBag2_Write_Proxy(IPropertyBag2 *iface, ULONG cProperties, PROPBAG2 *ppropbag, VARIANT *pvarValue)
Definition: proxy.c:37
HRESULT WINAPI IWICBitmapDecoder_GetFrame_Proxy_W(IWICBitmapDecoder *iface, UINT index, IWICBitmapFrameDecode **ppIBitmapFrame)
Definition: proxy.c:139
HRESULT WINAPI IWICBitmapCodecInfo_DoesSupportAnimation_Proxy_W(IWICBitmapCodecInfo *iface, BOOL *pfSupportAnimation)
Definition: proxy.c:79
HRESULT WINAPI IWICImagingFactory_CreateBitmapFlipRotator_Proxy_W(IWICImagingFactory *pFactory, IWICBitmapFlipRotator **ppIBitmapFlipRotator)
Definition: proxy.c:399
HRESULT WINAPI IWICComponentFactory_CreateMetadataWriterFromReader_Proxy_W(IWICComponentFactory *iface, IWICMetadataReader *pIReader, const GUID *pguidVendor, IWICMetadataWriter **ppIWriter)
Definition: proxy.c:314
HRESULT WINAPI IWICMetadataQueryWriter_RemoveMetadataByName_Proxy_W(IWICMetadataQueryWriter *iface, LPCWSTR wzName)
Definition: proxy.c:563
HRESULT WINAPI IWICBitmap_SetPalette_Proxy_W(IWICBitmap *iface, IWICPalette *pIPalette)
Definition: proxy.c:296
HRESULT WINAPI WICCreateImagingFactory_Proxy(UINT SDKVersion, IWICImagingFactory **ppIImagingFactory)
Definition: proxy.c:651
HRESULT WINAPI IWICImagingFactory_CreateBitmapFromHBITMAP_Proxy_W(IWICImagingFactory *pFactory, HBITMAP hBitmap, HPALETTE hPalette, WICBitmapAlphaChannelOption options, IWICBitmap **ppIBitmap)
Definition: proxy.c:405
HRESULT WINAPI IWICPalette_GetColorCount_Proxy_W(IWICPalette *iface, UINT *pcCount)
Definition: proxy.c:599
HRESULT WINAPI IWICComponentInfo_GetCLSID_Proxy_W(IWICComponentInfo *iface, CLSID *pclsid)
Definition: proxy.c:326
HRESULT WINAPI IWICMetadataQueryReader_GetEnumerator_Proxy_W(IWICMetadataQueryReader *iface, IEnumString **ppIEnumString)
Definition: proxy.c:551
HRESULT WINAPI IWICPalette_InitializePredefined_Proxy_W(IWICPalette *iface, WICBitmapPaletteType ePaletteType, BOOL fAddTransparentColor)
Definition: proxy.c:569
HRESULT WINAPI IWICPalette_InitializeFromPalette_Proxy_W(IWICPalette *iface, IWICPalette *pIPalette)
Definition: proxy.c:587
HRESULT WINAPI IWICPalette_InitializeCustom_Proxy_W(IWICPalette *iface, WICColor *pColors, UINT colorCount)
Definition: proxy.c:575
HRESULT WINAPI IWICBitmapFrameEncode_SetColorContexts_Proxy_W(IWICBitmapFrameEncode *iface, UINT cCount, IWICColorContext **ppIColorContext)
Definition: proxy.c:210
HRESULT WINAPI IWICBitmapCodecInfo_GetMimeTypes_Proxy_W(IWICBitmapCodecInfo *iface, UINT cchMimeTypes, WCHAR *wzMimeTypes, UINT *pcchActual)
Definition: proxy.c:67
HRESULT WINAPI IWICBitmapFrameEncode_SetSize_Proxy_W(IWICBitmapFrameEncode *iface, UINT uiWidth, UINT uiHeight)
Definition: proxy.c:198
HRESULT WINAPI IWICBitmapSource_GetResolution_Proxy_W(IWICBitmapSource *iface, double *pDpiX, double *pDpiY)
Definition: proxy.c:272
HRESULT WINAPI IWICImagingFactory_CreateBitmapFromMemory_Proxy_W(IWICImagingFactory *pFactory, UINT uiWidth, UINT uiHeight, REFWICPixelFormatGUID pixelFormat, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer, IWICBitmap **ppIBitmap)
Definition: proxy.c:417
HRESULT WINAPI IWICBitmapDecoder_GetColorContexts_Proxy_W(IWICBitmapDecoder *iface, UINT cCount, IWICColorContext **ppIColorContexts, UINT *pcActualCount)
Definition: proxy.c:121
HRESULT WINAPI IWICPixelFormatInfo_GetChannelMask_Proxy_W(IWICPixelFormatInfo *iface, UINT channel, UINT buffer_size, BYTE *buffer, UINT *actual)
Definition: proxy.c:639
HRESULT WINAPI IWICBitmapFrameEncode_Initialize_Proxy_W(IWICBitmapFrameEncode *iface, IPropertyBag2 *pIEncoderOptions)
Definition: proxy.c:192
HRESULT WINAPI IWICImagingFactory_CreatePalette_Proxy_W(IWICImagingFactory *pFactory, IWICPalette **ppIPalette)
Definition: proxy.c:496
HRESULT WINAPI IWICBitmapScaler_Initialize_Proxy_W(IWICBitmapScaler *iface, IWICBitmapSource *pISource, UINT uiWidth, UINT uiHeight, WICBitmapInterpolationMode mode)
Definition: proxy.c:254
HRESULT WINAPI IWICBitmapEncoder_SetThumbnail_Proxy_W(IWICBitmapEncoder *iface, IWICBitmapSource *pIThumbnail)
Definition: proxy.c:163
HRESULT WINAPI IWICBitmapDecoder_GetThumbnail_Proxy_W(IWICBitmapDecoder *iface, IWICBitmapSource **ppIThumbnail)
Definition: proxy.c:127
HRESULT WINAPI IWICBitmapEncoder_Initialize_Proxy_W(IWICBitmapEncoder *iface, IStream *pIStream, WICBitmapEncoderCacheOption cacheOption)
Definition: proxy.c:145
HRESULT WINAPI IWICBitmapSource_GetPixelFormat_Proxy_W(IWICBitmapSource *iface, WICPixelFormatGUID *pPixelFormat)
Definition: proxy.c:266
HRESULT WINAPI IWICBitmapLock_GetStride_Proxy_W(IWICBitmapLock *iface, UINT *pcbStride)
Definition: proxy.c:248
HRESULT WINAPI IWICPalette_InitializeFromBitmap_Proxy_W(IWICPalette *iface, IWICBitmapSource *pISurface, UINT colorCount, BOOL fAddTransparentColor)
Definition: proxy.c:581
HRESULT WINAPI IWICBitmap_SetResolution_Proxy_W(IWICBitmap *iface, double dpiX, double dpiY)
Definition: proxy.c:302
HRESULT WINAPI IWICBitmapLock_GetDataPointer_Proxy_W(IWICBitmapLock *iface, UINT *pcbBufferSize, BYTE **ppbData)
Definition: proxy.c:242
HRESULT WINAPI IWICImagingFactory_CreateStream_Proxy_W(IWICImagingFactory *pFactory, IWICStream **ppIWICStream)
Definition: proxy.c:515
HRESULT WINAPI IWICComponentInfo_GetSpecVersion_Proxy_W(IWICComponentInfo *iface, UINT cchSpecVersion, WCHAR *wzSpecVersion, UINT *pcchActual)
Definition: proxy.c:344
HRESULT WINAPI IWICBitmapDecoder_GetPreview_Proxy_W(IWICBitmapDecoder *iface, IWICBitmapSource **ppIBitmapSource)
Definition: proxy.c:115
HRESULT WINAPI IWICComponentFactory_CreateQueryWriterFromBlockWriter_Proxy_W(IWICComponentFactory *iface, IWICMetadataBlockWriter *pIBlockWriter, IWICMetadataQueryWriter **ppIQueryWriter)
Definition: proxy.c:320
HRESULT WINAPI IWICImagingFactory_CreateEncoder_Proxy_W(IWICImagingFactory *pFactory, REFGUID guidContainerFormat, const GUID *pguidVendor, IWICBitmapEncoder **ppIEncoder)
Definition: proxy.c:472
HRESULT WINAPI IWICMetadataQueryReader_GetMetadataByName_Proxy_W(IWICMetadataQueryReader *iface, LPCWSTR wzName, PROPVARIANT *pvarValue)
Definition: proxy.c:545
HRESULT WINAPI IWICBitmapCodecInfo_DoesSupportMultiframe_Proxy_W(IWICBitmapCodecInfo *iface, BOOL *pfSupportMultiframe)
Definition: proxy.c:91
HRESULT WINAPI IWICMetadataQueryWriter_SetMetadataByName_Proxy_W(IWICMetadataQueryWriter *iface, LPCWSTR wzName, const PROPVARIANT *pvarValue)
Definition: proxy.c:557
HRESULT WINAPI IWICBitmapCodecInfo_GetFileExtensions_Proxy_W(IWICBitmapCodecInfo *iface, UINT cchFileExtensions, WCHAR *wzFileExtensions, UINT *pcchActual)
Definition: proxy.c:73
HRESULT WINAPI IWICBitmapFrameEncode_SetResolution_Proxy_W(IWICBitmapFrameEncode *iface, double dpiX, double dpiY)
Definition: proxy.c:204
HRESULT WINAPI IWICColorContext_InitializeFromMemory_Proxy_W(IWICColorContext *iface, const BYTE *pbBuffer, UINT cbBufferSize)
Definition: proxy.c:308
HRESULT WINAPI IWICBitmapDecoder_GetMetadataQueryReader_Proxy_W(IWICBitmapDecoder *iface, IWICMetadataQueryReader **ppIMetadataQueryReader)
Definition: proxy.c:109
HRESULT WINAPI IWICBitmap_Lock_Proxy_W(IWICBitmap *iface, const WICRect *prcLock, DWORD flags, IWICBitmapLock **ppILock)
Definition: proxy.c:290
HRESULT WINAPI IWICImagingFactory_CreateDecoderFromFilename_Proxy_W(IWICImagingFactory *pFactory, LPCWSTR wzFilename, const GUID *pguidVendor, DWORD dwDesiredAccess, WICDecodeOptions metadataOptions, IWICBitmapDecoder **ppIDecoder)
Definition: proxy.c:457
HRESULT WINAPI IWICFastMetadataEncoder_Commit_Proxy_W(IWICFastMetadataEncoder *iface)
Definition: proxy.c:356
HRESULT WINAPI IWICBitmapCodecInfo_GetDeviceModels_Proxy_W(IWICBitmapCodecInfo *iface, UINT cchDeviceModels, WCHAR *wzDeviceModels, UINT *pcchActual)
Definition: proxy.c:61
HRESULT WINAPI IWICImagingFactory_CreateBitmapFromHICON_Proxy_W(IWICImagingFactory *pFactory, HICON hIcon, IWICBitmap **ppIBitmap)
Definition: proxy.c:411
HRESULT WINAPI IWICImagingFactory_CreateDecoderFromFileHandle_Proxy_W(IWICImagingFactory *pFactory, ULONG_PTR hFile, const GUID *pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder **ppIDecoder)
Definition: proxy.c:451
HRESULT WINAPI IWICStream_InitializeFromIStream_Proxy_W(IWICStream *iface, IStream *pIStream)
Definition: proxy.c:617
HRESULT WINAPI IWICBitmapDecoder_CopyPalette_Proxy_W(IWICBitmapDecoder *iface, IWICPalette *pIPalette)
Definition: proxy.c:103
HRESULT WINAPI IWICBitmapFrameEncode_GetMetadataQueryWriter_Proxy_W(IWICBitmapFrameEncode *iface, IWICMetadataQueryWriter **ppIMetadataQueryWriter)
Definition: proxy.c:236
HRESULT WINAPI IWICFormatConverter_Initialize_Proxy_W(IWICFormatConverter *iface, IWICBitmapSource *pISource, REFWICPixelFormatGUID dstFormat, WICBitmapDitherType dither, IWICPalette *pIPalette, double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate)
Definition: proxy.c:385
HRESULT WINAPI IWICBitmapFrameEncode_Commit_Proxy_W(IWICBitmapFrameEncode *iface)
Definition: proxy.c:231
HRESULT WINAPI IWICBitmapSource_CopyPixels_Proxy_W(IWICBitmapSource *iface, const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer)
Definition: proxy.c:284
HRESULT WINAPI IWICImagingFactory_CreateBitmapScaler_Proxy_W(IWICImagingFactory *pFactory, IWICBitmapScaler **ppIBitmapScaler)
Definition: proxy.c:431
HRESULT WINAPI IWICBitmapEncoder_Commit_Proxy_W(IWICBitmapEncoder *iface)
Definition: proxy.c:175
HRESULT WINAPI IWICImagingFactory_CreateQueryWriter_Proxy_W(IWICImagingFactory *pFactory, REFGUID guidMetadataFormat, const GUID *pguidVendor, IWICMetadataQueryWriter **ppIQueryWriter)
Definition: proxy.c:509
HRESULT WINAPI IWICBitmapDecoder_GetDecoderInfo_Proxy_W(IWICBitmapDecoder *iface, IWICBitmapDecoderInfo **ppIDecoderInfo)
Definition: proxy.c:97
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLuint buffer
Definition: glext.h:5915
GLuint index
Definition: glext.h:6031
GLenum mode
Definition: glext.h:6217
GLbitfield flags
Definition: glext.h:7161
HRESULT ImagingFactory_CreateInstance(REFIID iid, void **ppv)
Definition: imgfactory.c:1470
#define SUCCEEDED(hr)
Definition: intsafe.h:50
static HBITMAP
Definition: button.c:44
static HICON
Definition: imagelist.c:84
HICON hIcon
Definition: msconfig.c:44
_In_ HANDLE hFile
Definition: mswsock.h:90
unsigned int UINT
Definition: ndis.h:50
_Out_ LPRECT prc
Definition: ntgdi.h:1658
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define REFCLSID
Definition: guiddef.h:117
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4
Definition: scsiwmi.h:51
Definition: getopt.h:109
static void buffer_size(GLcontext *ctx, GLuint *width, GLuint *height)
Definition: swimpl.c:888
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
WICBitmapEncoderCacheOption
Definition: wincodec.idl:69
WICBitmapTransformOptions
Definition: wincodec.idl:108
WICBitmapInterpolationMode
Definition: wincodec.idl:76
WICBitmapDitherType
Definition: wincodec.idl:55
WICDecodeOptions
Definition: wincodec.idl:27
WICBitmapCreateCacheOption
Definition: wincodec.idl:33
WICBitmapPaletteType
Definition: wincodec.idl:90
UINT32 WICColor
Definition: wincodec.idl:312
WICBitmapAlphaChannelOption
Definition: wincodec.idl:40
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193