ReactOS  0.4.14-dev-554-g2f8d847
wincodec.idl
Go to the documentation of this file.
1 /*
2  * Copyright 2009 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  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 import "wtypes.idl";
20 import "propidl.idl";
21 import "ocidl.idl";
22 
23 cpp_quote("#define WINCODEC_SDK_VERSION 0x0236")
24 
25 #define CODEC_FORCE_DWORD 0x7fffffff
26 
27 typedef enum WICDecodeOptions {
32 
34  WICBitmapNoCache = 0x00000000,
35  WICBitmapCacheOnDemand = 0x00000001,
36  WICBitmapCacheOnLoad = 0x00000002,
39 
41  WICBitmapUseAlpha = 0x00000000,
43  WICBitmapIgnoreAlpha = 0x00000002,
46 
54 
55 typedef enum WICBitmapDitherType {
68 
75 
83 
84 typedef enum WICBitmapLockFlags {
85  WICBitmapLockRead = 0x00000001,
86  WICBitmapLockWrite = 0x00000002,
89 
90 typedef enum WICBitmapPaletteType {
107 
117 
118 typedef enum WICColorContextType {
123 
124 typedef enum WICComponentType {
125  WICDecoder = 0x00000001,
126  WICEncoder = 0x00000002,
128  WICMetadataReader = 0x00000008,
129  WICMetadataWriter = 0x00000010,
130  WICPixelFormat = 0x00000020,
133 
134 typedef enum WICComponentSigning {
135  WICComponentSigned = 0x00000001,
136  WICComponentUnsigned = 0x00000002,
137  WICComponentSafe = 0x00000004,
138  WICComponentDisabled = 0x80000000
140 
148 
156 
166 
172  WICTiffCompressionLZW = 0x00000004,
173  WICTiffCompressionRLE = 0x00000005,
174  WICTiffCompressionZIP = 0x00000006,
178 
179 typedef enum WICPngFilterOption {
189 
190 typedef enum WICSectionAccessLevel {
195 
198 
199 cpp_quote("DEFINE_GUID(GUID_WICPixelFormatDontCare, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x00);")
200 cpp_quote("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare")
201 
202 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat1bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x01);")
203 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x02);")
204 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x03);")
205 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x04);")
206 
207 cpp_quote("DEFINE_GUID(GUID_WICPixelFormatBlackWhite, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x05);")
208 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x06);")
209 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x07);")
210 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x08);")
211 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0b);")
212 
213 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR555, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x09);")
214 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR565, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0a);")
215 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGRA5551, 0x05ec7c2b,0xf1e6,0x4961,0xad,0x46,0xe1,0xcc,0x81,0x0a,0x87,0xd2);")
216 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0c);")
217 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0d);")
218 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0e);")
219 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0f);")
220 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x10);")
221 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGB, 0xd98c6b95,0x3efe,0x47d6,0xbb,0x25,0xeb,0x17,0x48,0xab,0x0c,0xf1);")
222 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGBA, 0xf5c7ad2d,0x6a8d,0x43dd,0xa7,0xa8,0xa2,0x99,0x35,0x26,0x1a,0xe9);")
223 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPRGBA, 0x3cc4a650,0xa527,0x4d37,0xa9,0x16,0x31,0x42,0xc7,0xeb,0xed,0xba);")
224 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppGrayFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x11);")
225 
226 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x15);")
227 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x16);")
228 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppPRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x17);")
229 
230 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppRGBAFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x19);")
231 
232 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1c);")
233 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1f);")
234 
235 typedef struct WICRect {
240 } WICRect;
241 
242 typedef struct WICBitmapPattern {
249 
250 typedef UINT32 WICColor;
251 
252 interface IWICPalette;
253 
254 [
255  object,
256  uuid(3c613a02-34b2-44ea-9a7c-45aea9c6fd6d)
257 ]
259 {
261  [in] LPCWSTR wzFilename);
262 
264  [in, size_is(cbBufferSize)] const BYTE *pbBuffer,
265  [in] UINT cbBufferSize);
266 
268  [in] UINT value);
269 
271  [out] WICColorContextType *pType);
272 
274  [in] UINT cbBuffer,
275  [in, out, unique, size_is(cbBuffer)] BYTE *pbBuffer,
276  [out] UINT *pcbActual);
277 
279  [out] UINT *pValue);
280 }
281 
282 [
283  object,
284  uuid(00000120-a8f2-4877-ba0a-fd2b6645fb94)
285 ]
287 {
289  [out] UINT *puiWidth,
290  [out] UINT *puiHeight);
291 
293  [out] WICPixelFormatGUID *pPixelFormat);
294 
296  [out] double *pDpiX,
297  [out] double *pDpiY);
298 
300  [in] IWICPalette *pIPalette);
301 
303  [in] const WICRect *prc,
304  [in] UINT cbStride,
305  [in] UINT cbBufferSize,
306  [out, size_is(cbBufferSize)] BYTE *pbBuffer);
307 }
308 
309 [
310  object,
311  uuid(00000123-a8f2-4877-ba0a-fd2b6645fb94)
312 ]
314 {
316  [out] UINT *pWidth,
317  [out] UINT *pHeight);
318 
320  [out] UINT *pcbStride);
321 
323  [out] UINT *pcbBufferSize,
324  [out, size_is(,*pcbBufferSize)] BYTE **ppbData);
325 
327  [out] WICPixelFormatGUID *pPixelFormat);
328 }
329 
330 [
331  object,
332  uuid(5009834f-2d6a-41ce-9e1b-17c5aff7a782)
333 ]
335 {
337  [in] IWICBitmapSource *pISource,
339 }
340 
341 [
342  object,
343  uuid(00000121-a8f2-4877-ba0a-fd2b6645fb94)
344 ]
346 {
347  HRESULT Lock(
348  [in] const WICRect *prcLock,
349  [in] DWORD flags,
350  [out] IWICBitmapLock **ppILock);
351 
353  [in] IWICPalette *pIPalette);
354 
356  [in] double dpiX,
357  [in] double dpiY);
358 }
359 
360 [
361  object,
362  uuid(00000040-a8f2-4877-ba0a-fd2b6645fb94)
363 ]
365 {
367  [in] WICBitmapPaletteType ePaletteType,
368  [in] BOOL fAddTransparentColor);
369 
371  [in, size_is(colorCount)] WICColor *pColors,
372  [in] UINT colorCount);
373 
375  [in] IWICBitmapSource *pISurface,
376  [in] UINT colorCount,
377  [in] BOOL fAddTransparentColor);
378 
380  [in] IWICPalette *pIPalette);
381 
383  [out] WICBitmapPaletteType *pePaletteType);
384 
386  [out] UINT *pcCount);
387 
389  [in] UINT colorCount,
390  [out, size_is(colorCount)] WICColor *pColors,
391  [out] UINT *pcActualColors);
392 
394  [out] BOOL *pfIsBlackWhite);
395 
397  [out] BOOL *pfIsGrayscale);
398 
400  [out] BOOL *pfHasAlpha);
401 }
402 
403 [
404  object,
405  uuid(23bc3f0a-698b-4357-886b-f24d50671334)
406 ]
408 {
410  [out] WICComponentType *pType);
411 
413  [out] CLSID *pclsid);
414 
416  [out] DWORD *pStatus);
417 
419  [in] UINT cchAuthor,
420  [in, out, unique, size_is(cchAuthor)] WCHAR *wzAuthor,
421  [out] UINT *pcchActual);
422 
424  [out] GUID *pguidVendor);
425 
427  [in] UINT cchVersion,
428  [in, out, unique, size_is(cchVersion)] WCHAR *wzVersion,
429  [out] UINT *pcchActual);
430 
432  [in] UINT cchSpecVersion,
433  [in, out, unique, size_is(cchSpecVersion)] WCHAR *wzSpecVersion,
434  [out] UINT *pcchActual);
435 
437  [in] UINT cchFriendlyName,
438  [in, out, unique, size_is(cchFriendlyName)] WCHAR *wzFriendlyName,
439  [out] UINT *pcchActual);
440 }
441 
442 [
443  object,
444  uuid(30989668-e1c9-4597-b395-458eedb808df)
445 ]
447 {
449  [out] GUID *pguidContainerFormat);
450 
452  [in] UINT cchMaxLength,
453  [in, out, unique, size_is(cchMaxLength)] WCHAR *wzNamespace,
454  [out] UINT *pcchActualLength);
455 
457  [in] LPCWSTR wzName,
458  [in, out, unique] PROPVARIANT *pvarValue);
459 
461  [out] IEnumString **ppIEnumString);
462 }
463 
464 [
465  object,
466  uuid(a721791a-0def-4d06-bd91-2118bf1db10b)
467 ]
469 {
471  [in] LPCWSTR wzName,
472  [in] const PROPVARIANT *pvarValue);
473 
475  [in] LPCWSTR wzName);
476 }
477 
478 [
479  object,
480  uuid(3b16811b-6a43-4ec9-a813-3d930c13b940)
481 ]
483 {
485  [out] IWICMetadataQueryReader **ppIMetadataQueryReader);
486 
488  [in] UINT cCount,
489  [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts,
490  [out] UINT *pcActualCount);
491 
493  [out] IWICBitmapSource **ppIThumbnail);
494 }
495 
496 [
497  object,
498  uuid(e8eda601-3d48-431a-ab44-69059be88bbe)
499 ]
501 {
503  [out] GUID* pFormat);
504 
506  [out] IWICColorContext **ppIColorContext);
507 
509  [out] UINT *puiBitsPerPixel);
510 
512  [out] UINT *puiChannelCount);
513 
515  [in] UINT uiChannelIndex,
516  [in] UINT cbMaskBuffer,
517  [in, out, unique, size_is(cbMaskBuffer)] BYTE *pbMaskBuffer,
518  [out] UINT *pcbActual);
519 }
520 
521 [
522  object,
523  uuid(a9db33a2-af5f-43c7-b679-74f5984b5aa4)
524 ]
526 {
528  [out] BOOL *pfSupportsTransparency);
529 
531  [out] WICPixelFormatNumericRepresentation *pNumericRepresentation);
532 }
533 
534 [
535  object,
536  uuid(e87a44c4-b76e-4c47-8b09-298eb12a2714)
537 ]
539 {
541  [out] GUID *pguidContainerFormat);
542 
544  [in] UINT cFormats,
545  [in, out, unique, size_is(cFormats)] GUID *pguidPixelFormats,
546  [out] UINT *pcActual);
547 
549  [in] UINT cchColorManagementVersion,
550  [in, out, unique, size_is(cchColorManagementVersion)] WCHAR *wzColorManagementVersion,
551  [out] UINT *pcchActual);
552 
554  [in] UINT cchDeviceManufacturer,
555  [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer,
556  [out] UINT *pcchActual);
557 
559  [in] UINT cchDeviceModels,
560  [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels,
561  [out] UINT *pcchActual);
562 
564  [in] UINT cchMimeTypes,
565  [in, out, unique, size_is(cchMimeTypes)] WCHAR *wzMimeTypes,
566  [out] UINT *pcchActual);
567 
569  [in] UINT cchFileExtensions,
570  [in, out, unique, size_is(cchFileExtensions)] WCHAR *wzFileExtensions,
571  [out] UINT *pcchActual);
572 
574  [out] BOOL *pfSupportAnimation);
575 
577  [out] BOOL *pfSupportChromaKey);
578 
580  [out] BOOL *pfSupportLossless);
581 
583  [out] BOOL *pfSupportMultiframe);
584 
586  [in] LPCWSTR wzMimeType,
587  [out] BOOL *pfMatches);
588 }
589 
590 interface IWICBitmapDecoder;
591 
592 [
593  object,
594  uuid(d8cd007f-d08f-4191-9bfc-236ea7f0e4b5)
595 ]
597 {
598  [local]
600  [in] UINT cbSizePatterns,
601  [in, out, unique] WICBitmapPattern *pPatterns,
602  [in, out, unique] UINT *pcPatterns,
603  [in, out, unique] UINT *pcbPatternsActual);
604 
606  [in] IStream *pIStream,
607  [out] BOOL *pfMatches);
608 
610  [out] IWICBitmapDecoder **ppIBitmapDecoder);
611 }
612 
613 [
614  object,
615  uuid(9edde9e7-8dee-47ea-99df-e6faf2ed44bf)
616 ]
618 {
620  [in] IStream *pIStream,
621  [out] DWORD *pdwCapability);
622 
624  [in] IStream *pIStream,
625  [in] WICDecodeOptions cacheOptions);
626 
628  [out] GUID *pguidContainerFormat);
629 
631  [out] IWICBitmapDecoderInfo **ppIDecoderInfo);
632 
634  [in] IWICPalette *pIPalette);
635 
637  [out] IWICMetadataQueryReader **ppIMetadataQueryReader);
638 
640  [out] IWICBitmapSource **ppIBitmapSource);
641 
643  [in] UINT cCount,
644  [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts,
645  [out] UINT *pcActualCount);
646 
648  [out] IWICBitmapSource **ppIThumbnail);
649 
651  [out] UINT *pCount);
652 
654  [in] UINT index,
655  [out] IWICBitmapFrameDecode **ppIBitmapFrame);
656 }
657 
658 [
659  object,
660  uuid(00000105-a8f2-4877-ba0a-fd2b6645fb94)
661 ]
663 {
665  [in, unique] IPropertyBag2 *pIEncoderOptions);
666 
668  [in] UINT uiWidth,
669  [in] UINT uiHeight);
670 
672  [in] double dpiX,
673  [in] double dpiY);
674 
676  [in, out] WICPixelFormatGUID *pPixelFormat);
677 
679  [in] UINT cCount,
680  [in, size_is(cCount)] IWICColorContext **ppIColorContext);
681 
683  [in] IWICPalette *pIPalette);
684 
686  [in] IWICBitmapSource *pIThumbnail);
687 
689  [in] UINT lineCount,
690  [in] UINT cbStride,
691  [in] UINT cbBufferSize,
692  [in, size_is(cbBufferSize)] BYTE *pbPixels);
693 
695  [in] IWICBitmapSource *pIBitmapSource,
696  [in, unique] WICRect *prc);
697 
698  HRESULT Commit();
699 
701  IWICMetadataQueryWriter **ppIMetadataQueryWriter);
702 }
703 
704 interface IWICBitmapEncoder;
705 
706 [
707  object,
708  uuid(94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb)
709 ]
711 {
713  [out] IWICBitmapEncoder **ppIBitmapEncoder);
714 }
715 
716 [
717  object,
718  uuid(00000103-a8f2-4877-ba0a-fd2b6645fb94)
719 ]
721 {
723  [in] IStream *pIStream,
724  [in] WICBitmapEncoderCacheOption cacheOption);
725 
727  [out] GUID *pguidContainerFormat);
728 
730  [out] IWICBitmapEncoderInfo **ppIEncoderInfo);
731 
733  [in] UINT cCount,
734  [in, size_is(cCount)] IWICColorContext **ppIColorContext);
735 
737  [in] IWICPalette *pIPalette);
738 
740  [in] IWICBitmapSource *pIThumbnail);
741 
743  [in] IWICBitmapSource *pIPreview);
744 
746  [out] IWICBitmapFrameEncode **ppIFrameEncode,
747  [in, out, unique] IPropertyBag2 **ppIEncoderOptions);
748 
749  HRESULT Commit();
750 
752  [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter);
753 }
754 
755 [
756  object,
757  uuid(00000301-a8f2-4877-ba0a-fd2b6645fb94)
758 ]
760 {
762  [in] IWICBitmapSource *pISource,
763  [in] REFWICPixelFormatGUID dstFormat,
764  [in] WICBitmapDitherType dither,
765  [in] IWICPalette *pIPalette,
766  [in] double alphaThresholdPercent,
767  [in] WICBitmapPaletteType paletteTranslate);
768 
770  [in] REFWICPixelFormatGUID srcPixelFormat,
771  [in] REFWICPixelFormatGUID dstPixelFormat,
772  [out] BOOL *pfCanConvert);
773 }
774 
775 [
776  object,
777  uuid(9f34fb65-13f4-4f15-bc57-3726b5e53d9f)
778 ]
780 {
782  [in] UINT cFormats,
783  [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs,
784  [out] UINT *pcActual);
785 
787  [out] IWICFormatConverter **ppIConverter);
788 }
789 
790 [
791  object,
792  uuid(135ff860-22b7-4ddf-b0f6-218f4f299a43)
793 ]
794 interface IWICStream : IStream
795 {
797  [in] IStream *pIStream);
798 
800  [in] LPCWSTR wzFileName,
801  [in] DWORD dwAccessMode);
802 
804  [in, size_is(cbBufferSize)] BYTE *pbBuffer,
805  [in] DWORD cbBufferSize);
806 
808  [in] IStream *pIStream,
809  [in] ULARGE_INTEGER ulOffset,
810  [in] ULARGE_INTEGER ulMaxSize);
811 }
812 
813 [
814  object,
815  uuid(00000302-a8f2-4877-ba0a-fd2b6645fb94)
816 ]
818 {
820  [in] IWICBitmapSource *pISource,
821  [in] UINT uiWidth,
822  [in] UINT uiHeight,
824 }
825 
826 [
827  object,
828  uuid(e4fbcf03-223d-4e81-9333-d635556dd1b5)
829 ]
831 {
833  [in] IWICBitmapSource *pISource,
834  [in] const WICRect *prc);
835 }
836 
837 [
838  object,
839  uuid(b66f034f-d0e2-40ab-b436-6de39e321a94)
840 ]
842 {
844  [in] IWICBitmapSource *pIBitmapSource,
845  [in] IWICColorContext *pIContextSource,
846  [in] IWICColorContext *pIContextDest,
847  [in] REFWICPixelFormatGUID pixelFmtDest);
848 }
849 
850 [
851  object,
852  uuid(b84e2c09-78c9-4ac4-8bd3-524ae1663a2f)
853 ]
855 {
856  HRESULT Commit();
857 
859  [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter);
860 }
861 
862 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);")
863 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory1, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);")
864 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory2, 0x317d06e8,0x5f24,0x433d,0xbd,0xf7,0x79,0xce,0x68,0xd8,0xab,0xc2);")
865 
866 [
867  object,
868  uuid(ec5ec8a9-c395-4314-9c77-54d7a935ff70)
869 ]
871 {
872  HRESULT CreateDecoderFromFilename(
873  [in] LPCWSTR wzFilename,
874  [in, unique] const GUID *pguidVendor,
875  [in] DWORD dwDesiredAccess,
876  [in] WICDecodeOptions metadataOptions,
877  [out, retval] IWICBitmapDecoder **ppIDecoder);
878 
879  HRESULT CreateDecoderFromStream(
880  [in] IStream *pIStream,
881  [in, unique] const GUID *pguidVendor,
882  [in] WICDecodeOptions metadataOptions,
883  [out, retval] IWICBitmapDecoder **ppIDecoder);
884 
885  HRESULT CreateDecoderFromFileHandle(
886  [in] ULONG_PTR hFile,
887  [in, unique] const GUID *pguidVendor,
888  [in] WICDecodeOptions metadataOptions,
889  [out, retval] IWICBitmapDecoder **ppIDecoder);
890 
892  [in] REFCLSID clsidComponent,
893  [out] IWICComponentInfo **ppIInfo);
894 
895  HRESULT CreateDecoder(
896  [in] REFGUID guidContainerFormat,
897  [in, unique] const GUID *pguidVendor,
898  [out, retval] IWICBitmapDecoder **ppIDecoder);
899 
900  HRESULT CreateEncoder(
901  [in] REFGUID guidContainerFormat,
902  [in, unique] const GUID *pguidVendor,
903  [out, retval] IWICBitmapEncoder **ppIEncoder);
904 
906  [out] IWICPalette **ppIPalette);
907 
908  HRESULT CreateFormatConverter(
909  [out] IWICFormatConverter **ppIFormatConverter);
910 
911  HRESULT CreateBitmapScaler(
912  [out] IWICBitmapScaler **ppIBitmapScaler);
913 
914  HRESULT CreateBitmapClipper(
915  [out] IWICBitmapClipper **ppIBitmapClipper);
916 
917  HRESULT CreateBitmapFlipRotator(
918  [out] IWICBitmapFlipRotator **ppIBitmapFlipRotator);
919 
920  HRESULT CreateStream(
921  [out] IWICStream **ppIWICStream);
922 
923  HRESULT CreateColorContext(
924  [out] IWICColorContext **ppIWICColorContext);
925 
926  HRESULT CreateColorTransformer(
927  [out] IWICColorTransform **ppIWICColorTransform);
928 
930  [in] UINT uiWidth,
931  [in] UINT uiHeight,
932  [in] REFWICPixelFormatGUID pixelFormat,
934  [out] IWICBitmap **ppIBitmap);
935 
936  HRESULT CreateBitmapFromSource(
937  [in] IWICBitmapSource *piBitmapSource,
939  [out] IWICBitmap **ppIBitmap);
940 
941  HRESULT CreateBitmapFromSourceRect(
942  [in] IWICBitmapSource *piBitmapSource,
943  [in] UINT x,
944  [in] UINT y,
945  [in] UINT width,
946  [in] UINT height,
947  [out] IWICBitmap **ppIBitmap);
948 
949  HRESULT CreateBitmapFromMemory(
950  [in] UINT uiWidth,
951  [in] UINT uiHeight,
952  [in] REFWICPixelFormatGUID pixelFormat,
953  [in] UINT cbStride,
954  [in] UINT cbBufferSize,
955  [in, size_is(cbBufferSize)] BYTE *pbBuffer,
956  [out] IWICBitmap **ppIBitmap);
957 
958  HRESULT CreateBitmapFromHBITMAP(
959  [in] HBITMAP hBitmap,
960  [in, unique] HPALETTE hPalette,
962  [out] IWICBitmap **ppIBitmap);
963 
964  HRESULT CreateBitmapFromHICON(
965  [in] HICON hIcon,
966  [out] IWICBitmap **ppIBitmap);
967 
969  [in] DWORD componentTypes,
970  [in] DWORD options,
971  [out] IEnumUnknown **ppIEnumUnknown);
972 
973  HRESULT CreateFastMetadataEncoderFromDecoder(
974  [in] IWICBitmapDecoder *pIDecoder,
975  [out] IWICFastMetadataEncoder **ppIFastEncoder);
976 
977  HRESULT CreateFastMetadataEncoderFromFrameDecode(
978  [in] IWICBitmapFrameDecode *pIFrameDecoder,
979  [out] IWICFastMetadataEncoder **ppIFastEncoder);
980 
981  HRESULT CreateQueryWriter(
982  [in] REFGUID guidMetadataFormat,
983  [in, unique] const GUID *pguidVendor,
984  [out] IWICMetadataQueryWriter **ppIQueryWriter);
985 
986  HRESULT CreateQueryWriterFromReader(
987  [in] IWICMetadataQueryReader *pIQueryReader,
988  [in, unique] const GUID *pguidVendor,
989  [out] IWICMetadataQueryWriter **ppIQueryWriter);
990 }
991 
992 [
993  object,
994  uuid(7b816b45-1996-4476-b132-de9e247c8af0),
995  local
996 ]
998 {
999 }
1000 
1001 [
1002  local,
1003  object,
1004  uuid(dc2bb46d-3f07-481e-8625-220c4aedbb33)
1005 ]
1007 {
1008  HRESULT Next(
1009  [in] ULONG celt,
1010  [in, out, unique, size_is(celt)] PROPVARIANT *rgeltSchema,
1011  [in, out, size_is(celt)] PROPVARIANT *rgeltId,
1012  [in, out, optional, size_is(celt)] PROPVARIANT *rgeltValue,
1013  [out, optional] ULONG *pceltFetched);
1014 
1015  HRESULT Skip(
1016  [in] ULONG celt);
1017 
1018  HRESULT Reset();
1019 
1020  HRESULT Clone(
1021  [out] IWICEnumMetadataItem **ppIEnumMetadataItem);
1022 }
1023 
1024 cpp_quote("HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst);")
1027 
1031 
1032 cpp_quote("DEFINE_GUID(CLSID_WICBmpDecoder, 0x6b462062,0x7cbf,0x400d,0x9f,0xdb,0x81,0x3d,0xd1,0x0f,0x27,0x78);")
1033 cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder, 0x389ea17b,0x5078,0x4cde,0xb6,0xef,0x25,0xc1,0x51,0x75,0xc7,0x51);")
1034 cpp_quote("DEFINE_GUID(CLSID_WICIcoDecoder, 0xc61bfcdf,0x2e0f,0x4aad,0xa8,0xd7,0xe0,0x6b,0xaf,0xeb,0xcd,0xfe);")
1035 cpp_quote("DEFINE_GUID(CLSID_WICJpegDecoder, 0x9456a480,0xe88b,0x43ea,0x9e,0x73,0x0b,0x2d,0x9b,0x71,0xb1,0xca);")
1036 cpp_quote("DEFINE_GUID(CLSID_WICGifDecoder, 0x381dda3c,0x9ce9,0x4834,0xa2,0x3e,0x1f,0x98,0xf8,0xfc,0x52,0xbe);")
1037 cpp_quote("DEFINE_GUID(CLSID_WICTiffDecoder, 0xb54e85d9,0xfe23,0x499f,0x8b,0x88,0x6a,0xce,0xa7,0x13,0x75,0x2b);")
1038 cpp_quote("DEFINE_GUID(CLSID_WICWmpDecoder, 0xa26cec36,0x234c,0x4950,0xae,0x16,0xe3,0x4a,0xac,0xe7,0x1d,0x0d);")
1039 
1040 cpp_quote("DEFINE_GUID(CLSID_WICBmpEncoder, 0x69be8bb4,0xd66d,0x47c8,0x86,0x5a,0xed,0x15,0x89,0x43,0x37,0x82);")
1041 cpp_quote("DEFINE_GUID(CLSID_WICPngEncoder, 0x27949969,0x876a,0x41d7,0x94,0x47,0x56,0x8f,0x6a,0x35,0xa4,0xdc);")
1042 cpp_quote("DEFINE_GUID(CLSID_WICJpegEncoder, 0x1a34f5c1,0x4a5a,0x46dc,0xb6,0x44,0x1f,0x45,0x67,0xe7,0xa6,0x76);")
1043 cpp_quote("DEFINE_GUID(CLSID_WICGifEncoder, 0x114f5598,0x0b22,0x40a0,0x86,0xa1,0xc8,0x3e,0xa4,0x95,0xad,0xbd);")
1044 cpp_quote("DEFINE_GUID(CLSID_WICTiffEncoder, 0x0131be10,0x2001,0x4c5f,0xa9,0xb0,0xcc,0x88,0xfa,0xb6,0x4c,0xe8);")
1045 cpp_quote("DEFINE_GUID(CLSID_WICWmpEncoder, 0xac4ce3cb,0xe1c1,0x44cd,0x82,0x15,0x5a,0x16,0x65,0x50,0x9e,0xc2);")
1046 
1047 cpp_quote("DEFINE_GUID(CLSID_WICDefaultFormatConverter, 0x1a3f11dc,0xb514,0x4b17,0x8c,0x5f,0x21,0x54,0x51,0x38,0x52,0xf1);")
1048 
1049 cpp_quote("DEFINE_GUID(GUID_ContainerFormatBmp, 0x0af1d87e,0xfcfe,0x4188,0xbd,0xeb,0xa7,0x90,0x64,0x71,0xcb,0xe3);")
1050 cpp_quote("DEFINE_GUID(GUID_ContainerFormatPng, 0x1b7cfaf4,0x713f,0x473c,0xbb,0xcd,0x61,0x37,0x42,0x5f,0xae,0xaf);")
1051 cpp_quote("DEFINE_GUID(GUID_ContainerFormatIco, 0xa3a860c4,0x338f,0x4c17,0x91,0x9a,0xfb,0xa4,0xb5,0x62,0x8f,0x21);")
1052 cpp_quote("DEFINE_GUID(GUID_ContainerFormatJpeg, 0x19e4a5aa,0x5662,0x4fc5,0xa0,0xc0,0x17,0x58,0x02,0x8e,0x10,0x57);")
1053 cpp_quote("DEFINE_GUID(GUID_ContainerFormatTiff, 0x163bcc30,0xe2e9,0x4f0b,0x96,0x1d,0xa3,0xe9,0xfd,0xb7,0x88,0xa3);")
1054 cpp_quote("DEFINE_GUID(GUID_ContainerFormatGif, 0x1f8a5601,0x7d4d,0x4cbd,0x9c,0x82,0x1b,0xc8,0xd4,0xee,0xb9,0xa5);")
1055 cpp_quote("DEFINE_GUID(GUID_ContainerFormatWmp, 0x57a37caa,0x367a,0x4540,0x91,0x6b,0xf1,0x83,0xc5,0x09,0x3a,0x4b);")
1056 
1057 cpp_quote("DEFINE_GUID(GUID_VendorMicrosoft, 0xf0e749ca,0xedef,0x4589,0xa7,0x3a,0xee,0x0e,0x62,0x6a,0x2a,0x2b);")
1058 
1059 cpp_quote("DEFINE_GUID(CLSID_WICImagingCategories, 0xfae3d380,0xfea4,0x4623,0x8c,0x75,0xc6,0xb6,0x11,0x10,0xb6,0x81);")
1060 cpp_quote("DEFINE_GUID(CATID_WICBitmapDecoders, 0x7ed96837,0x96f0,0x4812,0xb2,0x11,0xf1,0x3c,0x24,0x11,0x7e,0xd3);")
1061 cpp_quote("DEFINE_GUID(CATID_WICBitmapEncoders, 0xac757296,0x3522,0x4e11,0x98,0x62,0xc1,0x7b,0xe5,0xa1,0x76,0x7e);")
1062 cpp_quote("DEFINE_GUID(CATID_WICFormatConverters, 0x7835eae8,0xbf14,0x49d1,0x93,0xce,0x53,0x3a,0x40,0x7b,0x22,0x48);")
1063 cpp_quote("DEFINE_GUID(CATID_WICMetadataReader, 0x05af94d8,0x7174,0x4cd2,0xbe,0x4a,0x41,0x24,0xb8,0x0e,0xe4,0xb8);")
1064 cpp_quote("DEFINE_GUID(CATID_WICPixelFormats, 0x2b46e70f,0xcda7,0x473e,0x89,0xf6,0xdc,0x96,0x30,0xa2,0x39,0x0b);")
WICTiffCompressionOption
Definition: wincodec.idl:167
HRESULT HasAlpha([out] BOOL *pfHasAlpha)
#define CODEC_FORCE_DWORD
Definition: wincodec.idl:25
HRESULT GetType([out] WICColorContextType *pType)
WICBitmapLockFlags
Definition: wincodec.idl:84
const uint16_t * PCWSTR
Definition: typedefs.h:55
GLint GLint GLsizei width
Definition: gl.h:1546
HRESULT SetSize([in] UINT uiWidth, [in] UINT uiHeight)
static HICON
Definition: imagelist.c:84
HRESULT SetThumbnail([in] IWICBitmapSource *pIThumbnail)
ULARGE_INTEGER Position
Definition: wincodec.idl:243
HRESULT GetChannelCount([out] UINT *puiChannelCount)
HRESULT GetThumbnail([out] IWICBitmapSource **ppIThumbnail)
WICBitmapDecoderCapabilities
Definition: wincodec.idl:47
HRESULT InitializeFromMemory([in, size_is(cbBufferSize)] const BYTE *pbBuffer, [in] UINT cbBufferSize)
HRESULT GetBitsPerPixel([out] UINT *puiBitsPerPixel)
HRESULT Clone([out] IWICEnumMetadataItem **ppIEnumMetadataItem)
HRESULT GetColors([in] UINT colorCount, [out, size_is(colorCount)] WICColor *pColors, [out] UINT *pcActualColors)
HRESULT CreateNewFrame([out] IWICBitmapFrameEncode **ppIFrameEncode, [in, out, unique] IPropertyBag2 **ppIEncoderOptions)
HRESULT GetStride([out] UINT *pcbStride)
HRESULT InitializeFromExifColorSpace([in] UINT value)
Definition: scsiwmi.h:51
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WICBitmapTransformOptions
Definition: wincodec.idl:108
HRESULT SetResolution([in] double dpiX, [in] double dpiY)
HRESULT GetColorManagementVersion([in] UINT cchColorManagementVersion, [in, out, unique, size_is(cchColorManagementVersion)] WCHAR *wzColorManagementVersion, [out] UINT *pcchActual)
HRESULT Initialize([in] IWICBitmapSource *pISource, [in] UINT uiWidth, [in] UINT uiHeight, [in] WICBitmapInterpolationMode mode)
HRESULT CreateInstance([out] IWICFormatConverter **ppIConverter)
HRESULT SupportsTransparency([out] BOOL *pfSupportsTransparency)
HRESULT Next([in] ULONG celt, [in, out, unique, size_is(celt)] PROPVARIANT *rgeltSchema, [in, out, size_is(celt)] PROPVARIANT *rgeltId, [in, out, optional, size_is(celt)] PROPVARIANT *rgeltValue, [out, optional] ULONG *pceltFetched)
HRESULT InitializeFromIStreamRegion([in] IStream *pIStream, [in] ULARGE_INTEGER ulOffset, [in] ULARGE_INTEGER ulMaxSize)
#define REFCLSID
Definition: guiddef.h:117
HRESULT Initialize([in] IStream *pIStream, [in] WICDecodeOptions cacheOptions)
DEFINE_GUID(GUID_WICPixelFormatDontCare, 0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00)
HRESULT GetAuthor([in] UINT cchAuthor, [in, out, unique, size_is(cchAuthor)] WCHAR *wzAuthor, [out] UINT *pcchActual)
GLintptr offset
Definition: glext.h:5920
HRESULT GetFrameCount([out] UINT *pCount)
HRESULT GetSigningStatus([out] DWORD *pStatus)
HRESULT Initialize([in] IWICBitmapSource *pISource, [in] const WICRect *prc)
HRESULT SetColorContexts([in] UINT cCount, [in, size_is(cCount)] IWICColorContext **ppIColorContext)
HRESULT GetMetadataQueryWriter([out] IWICMetadataQueryWriter **ppIMetadataQueryWriter)
HRESULT GetContainerFormat([out] GUID *pguidContainerFormat)
GUID WICPixelFormatGUID
Definition: wincodec.idl:196
HRESULT SetPreview([in] IWICBitmapSource *pIPreview)
HRESULT GetComponentType([out] WICComponentType *pType)
HRESULT GetColorContext([out] IWICColorContext **ppIColorContext)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HRESULT GetVendorGUID([out] GUID *pguidVendor)
HRESULT RemoveMetadataByName([in] LPCWSTR wzName)
HRESULT GetPixelFormats([in] UINT cFormats, [in, out, unique, size_is(cFormats)] GUID *pguidPixelFormats, [out] UINT *pcActual)
HRESULT DoesSupportMultiframe([out] BOOL *pfSupportMultiframe)
Definition: parser.c:55
WICSectionAccessLevel
Definition: wincodec.idl:190
WICBitmapEncoderCacheOption
Definition: wincodec.idl:69
HRESULT GetContainerFormat([out] GUID *pguidContainerFormat)
HRESULT GetColorContexts([in] UINT cCount, [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts, [out] UINT *pcActualCount)
HRESULT GetContainerFormat([out] GUID *pguidContainerFormat)
HRESULT CopyPalette([in] IWICPalette *pIPalette)
HRESULT DoesSupportAnimation([out] BOOL *pfSupportAnimation)
int32_t INT
Definition: typedefs.h:56
HRESULT SetPalette([in] IWICPalette *pIPalette)
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
HRESULT GetDecoderInfo([out] IWICBitmapDecoderInfo **ppIDecoderInfo)
WICBitmapCreateCacheOption
Definition: wincodec.idl:33
HRESULT WINAPI WICMapGuidToShortName(REFGUID, UINT, WCHAR *, UINT *)
HRESULT WriteSource([in] IWICBitmapSource *pIBitmapSource, [in, unique] WICRect *prc)
uint32_t ULONG_PTR
Definition: typedefs.h:63
HRESULT GetFileExtensions([in] UINT cchFileExtensions, [in, out, unique, size_is(cchFileExtensions)] WCHAR *wzFileExtensions, [out] UINT *pcchActual)
WICColorContextType
Definition: wincodec.idl:118
HRESULT WINAPI WICMapSchemaToName(REFGUID, LPWSTR, UINT, WCHAR *, UINT *)
HRESULT CreateComponentEnumerator(DWORD componentTypes, DWORD options, IEnumUnknown **ppIEnumUnknown)
Definition: info.c:2380
HRESULT GetExifColorSpace([out] UINT *pValue)
HRESULT CanConvert([in] REFWICPixelFormatGUID srcPixelFormat, [in] REFWICPixelFormatGUID dstPixelFormat, [out] BOOL *pfCanConvert)
WICComponentSigning
Definition: wincodec.idl:134
unsigned int UINT32
unsigned int BOOL
Definition: ntddk_ex.h:94
struct WICRect WICRect
#define e
Definition: ke_i.h:82
HRESULT GetProfileBytes([in] UINT cbBuffer, [in, out, unique, size_is(cbBuffer)] BYTE *pbBuffer, [out] UINT *pcbActual)
HRESULT GetResolution([out] double *pDpiX, [out] double *pDpiY)
HRESULT GetColorContexts([in] UINT cCount, [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts, [out] UINT *pcActualCount)
HRESULT GetPixelFormats([in] UINT cFormats, [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs, [out] UINT *pcActual)
HRESULT GetColorCount([out] UINT *pcCount)
Definition: getopt.h:108
REFGUID REFWICPixelFormatGUID
Definition: wincodec.idl:197
HRESULT GetPatterns([in] UINT cbSizePatterns, [in, out, unique] WICBitmapPattern *pPatterns, [in, out, unique] UINT *pcPatterns, [in, out, unique] UINT *pcbPatternsActual)
UCHAR ab[sizeof("Hello World!") -1]
Definition: fdi.c:106
GLuint index
Definition: glext.h:6031
HRESULT WINAPI WICMapShortNameToGuid(PCWSTR, GUID *)
HRESULT Initialize([in] IStream *pIStream, [in] WICBitmapEncoderCacheOption cacheOption)
HRESULT SetPalette([in] IWICPalette *pIPalette)
HRESULT InitializeFromFilename([in] LPCWSTR wzFileName, [in] DWORD dwAccessMode)
INT Height
Definition: wincodec.idl:239
HRESULT GetDeviceModels([in] UINT cchDeviceModels, [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels, [out] UINT *pcchActual)
Definition: msg.h:41
HRESULT GetPixelFormat([out] WICPixelFormatGUID *pPixelFormat)
HRESULT CreateComponentInfo(REFCLSID clsid, IWICComponentInfo **ppIInfo)
Definition: info.c:2075
HRESULT GetSize([out] UINT *puiWidth, [out] UINT *puiHeight)
Definition: uimain.c:88
HRESULT GetDeviceManufacturer([in] UINT cchDeviceManufacturer, [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer, [out] UINT *pcchActual)
GLfloat f
Definition: glext.h:7540
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLsizei stride
Definition: glext.h:5848
HRESULT WritePixels([in] UINT lineCount, [in] UINT cbStride, [in] UINT cbBufferSize, [in, size_is(cbBufferSize)] BYTE *pbPixels)
HRESULT InitializeFromFilename([in] LPCWSTR wzFilename)
#define d
Definition: ke_i.h:81
HRESULT Initialize([in, unique] IPropertyBag2 *pIEncoderOptions)
HRESULT GetChannelMask([in] UINT uiChannelIndex, [in] UINT cbMaskBuffer, [in, out, unique, size_is(cbMaskBuffer)] BYTE *pbMaskBuffer, [out] UINT *pcbActual)
WICBitmapPaletteType
Definition: wincodec.idl:90
HRESULT Skip([in] ULONG celt)
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
HRESULT GetFriendlyName([in] UINT cchFriendlyName, [in, out, unique, size_is(cchFriendlyName)] WCHAR *wzFriendlyName, [out] UINT *pcchActual)
WICPngFilterOption
Definition: wincodec.idl:179
HRESULT SetResolution([in] double dpiX, [in] double dpiY)
#define WINAPI
Definition: msvc.h:8
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT SetMetadataByName([in] LPCWSTR wzName, [in] const PROPVARIANT *pvarValue)
WICComponentType
Definition: wincodec.idl:124
GLbitfield flags
Definition: glext.h:7161
HRESULT InitializeFromBitmap([in] IWICBitmapSource *pISurface, [in] UINT colorCount, [in] BOOL fAddTransparentColor)
HRESULT InitializeFromMemory([in, size_is(cbBufferSize)] BYTE *pbBuffer, [in] DWORD cbBufferSize)
HRESULT GetDataPointer([out] UINT *pcbBufferSize, [out, size_is(, *pcbBufferSize)] BYTE **ppbData)
HRESULT InitializeFromIStream([in] IStream *pIStream)
HRESULT WINAPI WICCreateBitmapFromSection(UINT width, UINT height, REFWICPixelFormatGUID format, HANDLE section, UINT stride, UINT offset, IWICBitmap **bitmap)
Definition: imgfactory.c:1541
WICPixelFormatNumericRepresentation
Definition: wincodec.idl:157
HRESULT QueryCapability([in] IStream *pIStream, [out] DWORD *pdwCapability)
HRESULT Initialize([in] IWICBitmapSource *pISource, [in] REFWICPixelFormatGUID dstFormat, [in] WICBitmapDitherType dither, [in] IWICPalette *pIPalette, [in] double alphaThresholdPercent, [in] WICBitmapPaletteType paletteTranslate)
HRESULT GetEncoderInfo([out] IWICBitmapEncoderInfo **ppIEncoderInfo)
WICBitmapInterpolationMode
Definition: wincodec.idl:76
HRESULT GetFormatGUID([out] GUID *pFormat)
HRESULT InitializeCustom([in, size_is(colorCount)] WICColor *pColors, [in] UINT colorCount)
unsigned char BYTE
Definition: mem.h:68
HRESULT IsBlackWhite([out] BOOL *pfIsBlackWhite)
HRESULT GetSpecVersion([in] UINT cchSpecVersion, [in, out, unique, size_is(cchSpecVersion)] WCHAR *wzSpecVersion, [out] UINT *pcchActual)
#define f4(x, y, z)
Definition: sha1.c:33
HRESULT GetEnumerator([out] IEnumString **ppIEnumString)
HRESULT MatchesPattern([in] IStream *pIStream, [out] BOOL *pfMatches)
GLenum mode
Definition: glext.h:6217
_In_ HANDLE hFile
Definition: mswsock.h:90
#define interface
Definition: basetyps.h:61
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
WICComponentEnumerateOptions
Definition: wincodec.idl:141
HRESULT WINAPI WICCreateBitmapFromSectionEx(UINT width, UINT height, REFWICPixelFormatGUID format, HANDLE section, UINT stride, UINT offset, WICSectionAccessLevel access, IWICBitmap **bitmap)
Definition: imgfactory.c:1492
#define local
Definition: zutil.h:30
HRESULT GetMetadataByName([in] LPCWSTR wzName, [in, out, unique] PROPVARIANT *pvarValue)
WICDecodeOptions
Definition: wincodec.idl:27
HRESULT CopyPixels([in] const WICRect *prc, [in] UINT cbStride, [in] UINT cbBufferSize, [out, size_is(cbBufferSize)] BYTE *pbBuffer)
HRESULT DoesSupportChromaKey([out] BOOL *pfSupportChromaKey)
HRESULT GetPixelFormat([out] WICPixelFormatGUID *pPixelFormat)
HRESULT InitializePredefined([in] WICBitmapPaletteType ePaletteType, [in] BOOL fAddTransparentColor)
HRESULT GetType([out] WICBitmapPaletteType *pePaletteType)
HRESULT MatchesMimeType([in] LPCWSTR wzMimeType, [out] BOOL *pfMatches)
GLuint in
Definition: glext.h:9616
HRESULT GetThumbnail([out] IWICBitmapSource **ppIThumbnail)
GLuint GLint GLboolean GLint GLenum access
Definition: glext.h:7866
HICON hIcon
Definition: msconfig.c:44
HRESULT CreateInstance([out] IWICBitmapDecoder **ppIBitmapDecoder)
HRESULT Lock([in] const WICRect *prcLock, [in] DWORD flags, [out] IWICBitmapLock **ppILock)
HRESULT DoesSupportLossless([out] BOOL *pfSupportLossless)
HRESULT GetNumericRepresentation([out] WICPixelFormatNumericRepresentation *pNumericRepresentation)
unsigned int UINT
Definition: ndis.h:50
HRESULT SetPalette([in] IWICPalette *pIPalette)
HRESULT GetMetadataQueryReader([out] IWICMetadataQueryReader **ppIMetadataQueryReader)
HRESULT GetPreview([out] IWICBitmapSource **ppIBitmapSource)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
HRESULT InitializeFromPalette([in] IWICPalette *pIPalette)
INT Width
Definition: wincodec.idl:238
HRESULT GetLocation([in] UINT cchMaxLength, [in, out, unique, size_is(cchMaxLength)] WCHAR *wzNamespace, [out] UINT *pcchActualLength)
HRESULT CopyPalette([in] IWICPalette *pIPalette)
Definition: msctf.idl:510
unsigned int ULONG
Definition: retypes.h:1
HRESULT GetMetadataQueryWriter(IWICMetadataQueryWriter **ppIMetadataQueryWriter)
WICBitmapDitherType
Definition: wincodec.idl:55
static CRYPT_DATA_BLOB b2[]
Definition: msg.c:582
static HBITMAP
Definition: button.c:44
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
WCHAR * LPWSTR
Definition: xmlstorage.h:184
HRESULT SetThumbnail([in] IWICBitmapSource *pIThumbnail)
WICJpegYCrCbSubsamplingOption
Definition: wincodec.idl:149
WICBitmapAlphaChannelOption
Definition: wincodec.idl:40
HRESULT GetMimeTypes([in] UINT cchMimeTypes, [in, out, unique, size_is(cchMimeTypes)] WCHAR *wzMimeTypes, [out] UINT *pcchActual)
HRESULT GetCLSID([out] CLSID *pclsid)
_Out_ LPRECT prc
Definition: ntgdi.h:1658
HRESULT SetPixelFormat([in, out] WICPixelFormatGUID *pPixelFormat)
HRESULT IsGrayscale([out] BOOL *pfIsGrayscale)
HRESULT Initialize([in] IWICBitmapSource *pISource, [in] WICBitmapTransformOptions options)
HRESULT GetSize([out] UINT *pWidth, [out] UINT *pHeight)
UINT32 WICColor
Definition: wincodec.idl:250
static HBITMAP hBitmap
Definition: timezone.c:35
HRESULT GetContainerFormat([out] GUID *pguidContainerFormat)
void * object
Definition: jmemsys.h:48
HRESULT GetMetadataQueryWriter([out] IWICMetadataQueryWriter **ppIMetadataQueryWriter)
HRESULT SetColorContexts([in] UINT cCount, [in, size_is(cCount)] IWICColorContext **ppIColorContext)
HRESULT GetVersion([in] UINT cchVersion, [in, out, unique, size_is(cchVersion)] WCHAR *wzVersion, [out] UINT *pcchActual)
HRESULT Initialize([in] IWICBitmapSource *pIBitmapSource, [in] IWICColorContext *pIContextSource, [in] IWICColorContext *pIContextDest, [in] REFWICPixelFormatGUID pixelFmtDest)
HRESULT GetMetadataQueryReader([out] IWICMetadataQueryReader **ppIMetadataQueryReader)
struct WICBitmapPattern WICBitmapPattern
HRESULT CreateInstance([out] IWICBitmapEncoder **ppIBitmapEncoder)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HRESULT GetFrame([in] UINT index, [out] IWICBitmapFrameDecode **ppIBitmapFrame)