ntdll: Also return name information for FileAllInformation.
[wine/multimedia.git] / include / wincodec.idl
blob8e8dfe604759b9ace010d3996b83ff7ab5f93d57
1 /*
2 * Copyright 2009 Vincent Povirk for CodeWeavers
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.
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.
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
19 import "wtypes.idl";
20 import "propidl.idl";
21 import "objidl.idl";
22 import "ocidl.idl";
24 #define CODEC_FORCE_DWORD 0x7fffffff
26 typedef enum WICDecodeOptions {
27 WICDecodeMetadataCacheOnDemand = 0x00000000,
28 WICDecodeMetadataCacheOnLoad = 0x00000001,
29 WICMETADATACACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
30 } WICDecodeOptions;
32 typedef enum WICBitmapCreateCacheOption {
33 WICBitmapNoCache = 0x00000000,
34 WICBitmapCacheOnDemand = 0x00000001,
35 WICBitmapCacheOnLoad = 0x00000002,
36 WICBITMAPCREATECACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
37 } WICBitmapCreateCacheOption;
39 typedef enum WICBitmapAlphaChannelOption {
40 WICBitmapUseAlpha = 0x00000000,
41 WICBitmapUsePremultipliedAlpha = 0x00000001,
42 WICBitmapIgnoreAlpha = 0x00000002,
43 WICBITMAPALPHACHANNELOPTIONS_FORCE_DWORD = CODEC_FORCE_DWORD
44 } WICBitmapAlphaChannelOption;
46 typedef enum WICBitmapDecoderCapabilities {
47 WICBitmapDecoderCapabilitySameEncoder = 0x00000001,
48 WICBitmapDecoderCapabilityCanDecodeAllImages = 0x00000002,
49 WICBitmapDecoderCapabilityCanDecodeSomeImages = 0x00000004,
50 WICBitmapDecoderCapabilityCanEnumerateMetadata = 0x00000008,
51 WICBitmapDecoderCapabilityCanDecodeThumbnail = 0x00000010,
52 } WICBitmapDecoderCapabilities;
54 typedef enum WICBitmapDitherType {
55 WICBitmapDitherTypeNone = 0x00000000,
56 WICBitmapDitherTypeSolid = 0x00000000,
57 WICBitmapDitherTypeOrdered4x4 = 0x00000001,
58 WICBitmapDitherTypeOrdered8x8 = 0x00000002,
59 WICBitmapDitherTypeOrdered16x16 = 0x00000003,
60 WICBitmapDitherTypeSpiral4x4 = 0x00000004,
61 WICBitmapDitherTypeSpiral8x8 = 0x00000005,
62 WICBitmapDitherTypeDualSpiral4x4 = 0x00000006,
63 WICBitmapDitherTypeDualSpiral8x8 = 0x00000007,
64 WICBitmapDitherTypeErrorDiffusion = 0x00000008,
65 WICBITMAPDITHERTYPE_FORCE_DWORD = CODEC_FORCE_DWORD
66 } WICBitmapDitherType;
68 typedef enum WICBitmapEncoderCacheOption {
69 WICBitmapEncoderCacheInMemory = 0x00000000,
70 WICBitmapEncoderCacheTempFile = 0x00000001,
71 WICBitmapEncoderNoCache = 0x00000002,
72 WICBITMAPENCODERCACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
73 } WICBitmapEncoderCacheOption;
75 typedef enum WICBitmapPaletteType {
76 WICBitmapPaletteTypeCustom = 0x00000000,
77 WICBitmapPaletteTypeMedianCut = 0x00000001,
78 WICBitmapPaletteTypeFixedBW = 0x00000002,
79 WICBitmapPaletteTypeFixedHalftone8 = 0x00000003,
80 WICBitmapPaletteTypeFixedHalftone27 = 0x00000004,
81 WICBitmapPaletteTypeFixedHalftone64 = 0x00000005,
82 WICBitmapPaletteTypeFixedHalftone125 = 0x00000006,
83 WICBitmapPaletteTypeFixedHalftone216 = 0x00000007,
84 WICBitmapPaletteTypeFixedWebPalette = WICBitmapPaletteTypeFixedHalftone216,
85 WICBitmapPaletteTypeFixedHalftone252 = 0x00000008,
86 WICBitmapPaletteTypeFixedHalftone256 = 0x00000009,
87 WICBitmapPaletteTypeFixedGray4 = 0x0000000A,
88 WICBitmapPaletteTypeFixedGray16 = 0x0000000B,
89 WICBitmapPaletteTypeFixedGray256 = 0x0000000C,
90 WICBITMAPPALETTETYPE_FORCE_DWORD = CODEC_FORCE_DWORD
91 } WICBitmapPaletteType;
93 typedef enum WICComponentType {
94 WICDecoder = 0x00000001,
95 WICEncoder = 0x00000002,
96 WICPixelFormatConverter = 0x00000004,
97 WICMetadataReader = 0x00000008,
98 WICMetadataWriter = 0x00000010,
99 WICPixelFormat = 0x00000020,
100 WICCOMPONENTTYPE_FORCE_DWORD = CODEC_FORCE_DWORD
101 } WICComponentType;
103 typedef enum WICComponentSigning {
104 WICComponentSigned = 0x00000001,
105 WICComponentUnsigned = 0x00000002,
106 WICComponentSafe = 0x00000004,
107 WICComponentDisabled = 0x80000000
108 } WICComponentSigning;
110 typedef enum WICComponentEnumerateOptions {
111 WICComponentEnumerateDefault = 0x00000000,
112 WICComponentEnumerateRefresh = 0x00000001,
113 WICComponentEnumerateBuiltInOnly = 0x20000000,
114 WICComponentEnumerateUnsigned = 0x40000000,
115 WICComponentEnumerateDisabled = 0x80000000
116 } WICComponentEnumerateOptions;
118 typedef GUID WICPixelFormatGUID;
119 typedef REFGUID REFWICPixelFormatGUID;
121 cpp_quote("DEFINE_GUID(GUID_WICPixelFormatDontCare, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x00);")
122 cpp_quote("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare")
124 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat1bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x01);")
125 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x02);")
126 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x03);")
127 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x04);")
129 cpp_quote("DEFINE_GUID(GUID_WICPixelFormatBlackWhite, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x05);")
130 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x06);")
131 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x07);")
132 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x08);")
133 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0b);")
135 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR555, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x09);")
136 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR565, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0a);")
137 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0c);")
138 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0e);")
139 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0f);")
140 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x10);")
142 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x15);")
143 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x16);")
145 typedef struct WICRect {
146 INT X;
147 INT Y;
148 INT Width;
149 INT Height;
150 } WICRect;
152 typedef struct WICBitmapPattern {
153 ULARGE_INTEGER Position;
154 ULONG Length;
155 BYTE *Pattern;
156 BYTE *Mask;
157 BOOL EndOfStream;
158 } WICBitmapPattern;
160 typedef UINT32 WICColor;
162 cpp_quote("#define WINCODEC_ERR_WRONGSTATE 0x88982f04")
163 cpp_quote("#define WINCODEC_ERR_NOTINITIALIZED 0x88982f0c")
164 cpp_quote("#define WINCODEC_ERR_CODECNOTHUMBNAIL 0x88982f44")
165 cpp_quote("#define WINCODEC_ERR_PALETTEUNAVAILABLE 0x88982f45")
166 cpp_quote("#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982f50")
167 cpp_quote("#define WINCODEC_ERR_FRAMEMISSING 0x88982f62")
168 cpp_quote("#define WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT 0x88982f80")
169 cpp_quote("#define WINCODEC_ERR_UNSUPPORTEDOPERATION 0x88982f81")
170 cpp_quote("#define WINCODEC_ERR_INSUFFICIENTBUFFER 0x88982f8c")
172 interface IWICBitmap;
173 interface IWICPalette;
174 interface IWICBitmapScaler;
175 interface IWICBitmapClipper;
176 interface IWICBitmapFlipRotator;
177 interface IWICColorContext;
178 interface IWICColorTransform;
179 interface IWICFastMetadataEncoder;
180 interface IWICMetadataQueryReader;
181 interface IWICMetadataQueryWriter;
184 object,
185 uuid(00000120-a8f2-4877-ba0a-fd2b6645fb94)
187 interface IWICBitmapSource : IUnknown
189 HRESULT GetSize(
190 [out] UINT *puiWidth,
191 [out] UINT *puiHeight);
193 HRESULT GetPixelFormat(
194 [out] WICPixelFormatGUID *pPixelFormat);
196 HRESULT GetResolution(
197 [out] double *pDpiX,
198 [out] double *pDpiY);
200 HRESULT CopyPalette(
201 [in] IWICPalette *pIPalette);
203 HRESULT CopyPixels(
204 [in] const WICRect *prc,
205 [in] UINT cbStride,
206 [in] UINT cbBufferSize,
207 [out, size_is(cbBufferSize)] BYTE *pbBuffer);
211 object,
212 uuid(00000040-a8f2-4877-ba0a-fd2b6645fb94)
214 interface IWICPalette : IUnknown
216 HRESULT InitializePredefined(
217 [in] WICBitmapPaletteType ePaletteType,
218 [in] BOOL fAddTransparentColor);
220 HRESULT InitializeCustom(
221 [in, size_is(colorCount)] WICColor *pColors,
222 [in] UINT colorCount);
224 HRESULT InitializeFromBitmap(
225 [in] IWICBitmapSource *pISurface,
226 [in] UINT colorCount,
227 [in] BOOL fAddTransparentColor);
229 HRESULT InitializeFromPalette(
230 [in] IWICPalette *pIPalette);
232 HRESULT GetType(
233 [out] WICBitmapPaletteType *pePaletteType);
235 HRESULT GetColorCount(
236 [out] UINT *pcCount);
238 HRESULT GetColors(
239 [in] UINT colorCount,
240 [out, size_is(colorCount)] WICColor *pColors,
241 [out] UINT *pcActualColors);
243 HRESULT IsBlackWhite(
244 [out] BOOL *pfIsBlackWhite);
246 HRESULT IsGrayscale(
247 [out] BOOL *pfIsGrayscale);
249 HRESULT HasAlpha(
250 [out] BOOL *pfHasAlpha);
254 object,
255 uuid(23bc3f0a-698b-4357-886b-f24d50671334)
257 interface IWICComponentInfo : IUnknown
259 HRESULT GetComponentType(
260 [out] WICComponentType *pType);
262 HRESULT GetCLSID(
263 [out] CLSID *pclsid);
265 HRESULT GetSigningStatus(
266 [out] DWORD *pStatus);
268 HRESULT GetAuthor(
269 [in] UINT cchAuthor,
270 [in, out, unique, size_is(cchAuthor)] WCHAR *wzAuthor,
271 [out] UINT *pcchActual);
273 HRESULT GetVendorGUID(
274 [out] GUID *pguidVendor);
276 HRESULT GetVersion(
277 [in] UINT cchVersion,
278 [in, out, unique, size_is(cchVersion)] WCHAR *wzVersion,
279 [out] UINT *pcchActual);
281 HRESULT GetSpecVersion(
282 [in] UINT cchSpecVersion,
283 [in, out, unique, size_is(cchSpecVersion)] WCHAR *wzSpecVersion,
284 [out] UINT *pcchActual);
286 HRESULT GetFriendlyName(
287 [in] UINT cchFriendlyName,
288 [in, out, unique, size_is(cchFriendlyName)] WCHAR *wzFriendlyName,
289 [out] UINT *pcchActual);
293 object,
294 uuid(3b16811b-6a43-4ec9-a813-3d930c13b940)
296 interface IWICBitmapFrameDecode : IWICBitmapSource
298 HRESULT GetMetadataQueryReader(
299 [out] IWICMetadataQueryReader **ppIMetadataQueryReader);
301 HRESULT GetColorContexts(
302 [in] UINT cCount,
303 [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts,
304 [out] UINT *pcActualCount);
306 HRESULT GetThumbnail(
307 [out] IWICBitmapSource **ppIThumbnail);
311 object,
312 uuid(e87a44c4-b76e-4c47-8b09-298eb12a2714)
314 interface IWICBitmapCodecInfo : IWICComponentInfo
316 HRESULT GetContainerFormat(
317 [out] GUID *pguidContainerFormat);
319 HRESULT GetPixelFormats(
320 [in] UINT cFormats,
321 [in, out, unique, size_is(cFormats)] GUID *pguidPixelFormats,
322 [out] UINT *pcActual);
324 HRESULT GetColorManagementVersion(
325 [in] UINT cchColorManagementVersion,
326 [in, out, unique, size_is(cchColorManagementVersion)] WCHAR *wzColorManagementVersion,
327 [out] UINT *pcchActual);
329 HRESULT GetDeviceManufacturer(
330 [in] UINT cchDeviceManufacturer,
331 [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer,
332 [out] UINT *pcchActual);
334 HRESULT GetDeviceModels(
335 [in] UINT cchDeviceModels,
336 [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels,
337 [out] UINT *pcchActual);
339 HRESULT GetMimeTypes(
340 [in] UINT cchMimeTypes,
341 [in, out, unique, size_is(cchMimeTypes)] WCHAR *wzMimeTypes,
342 [out] UINT *pcchActual);
344 HRESULT GetFileExtensions(
345 [in] UINT cchFileExtensions,
346 [in, out, unique, size_is(cchFileExtensions)] WCHAR *wzFileExtensions,
347 [out] UINT *pcchActual);
349 HRESULT DoesSupportAnimation(
350 [out] BOOL *pfSupportAnimation);
352 HRESULT DoesSupportChromaKey(
353 [out] BOOL *pfSupportChromaKey);
355 HRESULT DoesSupportLossless(
356 [out] BOOL *pfSupportLossless);
358 HRESULT DoesSupportMultiframe(
359 [out] BOOL *pfSupportMultiframe);
361 HRESULT MatchesMimeType(
362 [in] LPCWSTR wzMimeType,
363 [out] BOOL *pfMatches);
366 interface IWICBitmapDecoder;
369 object,
370 uuid(d8cd007f-d08f-4191-9bfc-236ea7f0e4b5)
372 interface IWICBitmapDecoderInfo : IWICBitmapCodecInfo
374 [local]
375 HRESULT GetPatterns(
376 [in] UINT cbSizePatterns,
377 [in, out, unique] WICBitmapPattern *pPatterns,
378 [in, out, unique] UINT *pcPatterns,
379 [in, out, unique] UINT *pcbPatternsActual);
381 HRESULT MatchesPattern(
382 [in] IStream *pIStream,
383 [out] BOOL *pfMatches);
385 HRESULT CreateInstance(
386 [out] IWICBitmapDecoder **ppIBitmapDecoder);
390 object,
391 uuid(9edde9e7-8dee-47ea-99df-e6faf2ed44bf)
393 interface IWICBitmapDecoder : IUnknown
395 HRESULT QueryCapability(
396 [in] IStream *pIStream,
397 [out] DWORD *pdwCapability);
399 HRESULT Initialize(
400 [in] IStream *pIStream,
401 [in] WICDecodeOptions cacheOptions);
403 HRESULT GetContainerFormat(
404 [out] GUID *pguidContainerFormat);
406 HRESULT GetDecoderInfo(
407 [out] IWICBitmapDecoderInfo **ppIDecoderInfo);
409 HRESULT CopyPalette(
410 [in] IWICPalette *pIPalette);
412 HRESULT GetMetadataQueryReader(
413 [out] IWICMetadataQueryReader **ppIMetadataQueryReader);
415 HRESULT GetPreview(
416 [out] IWICBitmapSource **ppIBitmapSource);
418 HRESULT GetColorContexts(
419 [in] UINT cCount,
420 [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts,
421 [out] UINT *pcActualCount);
423 HRESULT GetThumbnail(
424 [out] IWICBitmapSource **ppIThumbnail);
426 HRESULT GetFrameCount(
427 [out] UINT *pCount);
429 HRESULT GetFrame(
430 [in] UINT index,
431 [out] IWICBitmapFrameDecode **ppIBitmapFrame);
435 object,
436 uuid(00000105-a8f2-4877-ba0a-fd2b6645fb94)
438 interface IWICBitmapFrameEncode : IUnknown
440 HRESULT Initialize(
441 [in, unique] IPropertyBag2 *pIEncoderOptions);
443 HRESULT SetSize(
444 [in] UINT uiWidth,
445 [in] UINT uiHeight);
447 HRESULT SetResolution(
448 [in] double dpiX,
449 [in] double dpiY);
451 HRESULT SetPixelFormat(
452 [in, out] WICPixelFormatGUID *pPixelFormat);
454 HRESULT SetColorContexts(
455 [in] UINT cCount,
456 [in, size_is(cCount)] IWICColorContext **ppIColorContext);
458 HRESULT SetPalette(
459 [in] IWICPalette *pIPalette);
461 HRESULT SetThumbnail(
462 [in] IWICBitmapSource *pIThumbnail);
464 HRESULT WritePixels(
465 [in] UINT lineCount,
466 [in] UINT cbStride,
467 [in] UINT cbBufferSize,
468 [in, size_is(cbBufferSize)] BYTE *pbPixels);
470 HRESULT WriteSource(
471 [in] IWICBitmapSource *pIBitmapSource,
472 [in, unique] WICRect *prc);
474 HRESULT Commit();
476 HRESULT GetMetadataQueryWriter(
477 IWICMetadataQueryWriter **ppIMetadataQueryWriter);
480 interface IWICBitmapEncoder;
483 object,
484 uuid(94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb)
486 interface IWICBitmapEncoderInfo : IWICBitmapCodecInfo
488 HRESULT CreateInstance(
489 [out] IWICBitmapEncoder **ppIBitmapEncoder);
493 object,
494 uuid(00000103-a8f2-4877-ba0a-fd2b6645fb94)
496 interface IWICBitmapEncoder : IUnknown
498 HRESULT Initialize(
499 [in] IStream *pIStream,
500 [in] WICBitmapEncoderCacheOption cacheOption);
502 HRESULT GetContainerFormat(
503 [out] GUID *pguidContainerFormat);
505 HRESULT GetEncoderInfo(
506 [out] IWICBitmapEncoderInfo **ppIEncoderInfo);
508 HRESULT SetColorContexts(
509 [in] UINT cCount,
510 [in, size_is(cCount)] IWICColorContext **ppIColorContext);
512 HRESULT SetPalette(
513 [in] IWICPalette *pIPalette);
515 HRESULT SetThumbnail(
516 [in] IWICBitmapSource *pIThumbnail);
518 HRESULT SetPreview(
519 [in] IWICBitmapSource *pIPreview);
521 HRESULT CreateNewFrame(
522 [out] IWICBitmapFrameEncode **ppIFrameEncode,
523 [in, out, unique] IPropertyBag2 **ppIEncoderOptions);
525 HRESULT Commit();
527 HRESULT GetMetadataQueryWriter(
528 [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter);
532 object,
533 uuid(00000301-a8f2-4877-ba0a-fd2b6645fb94)
535 interface IWICFormatConverter : IWICBitmapSource
537 HRESULT Initialize(
538 [in] IWICBitmapSource *pISource,
539 [in] REFWICPixelFormatGUID dstFormat,
540 [in] WICBitmapDitherType dither,
541 [in] IWICPalette *pIPalette,
542 [in] double alphaThresholdPercent,
543 [in] WICBitmapPaletteType paletteTranslate);
545 HRESULT CanConvert(
546 [in] REFWICPixelFormatGUID srcPixelFormat,
547 [in] REFWICPixelFormatGUID dstPixelFormat,
548 [out] BOOL *pfCanConvert);
552 object,
553 uuid(9f34fb65-13f4-4f15-bc57-3726b5e53d9f)
555 interface IWICFormatConverterInfo : IWICComponentInfo
557 HRESULT GetPixelFormats(
558 [in] UINT cFormats,
559 [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs,
560 [out] UINT *pcActual);
562 HRESULT CreateInstance(
563 [out] IWICFormatConverter **ppIConverter);
567 object,
568 uuid(135ff860-22b7-4ddf-b0f6-218f4f299a43)
570 interface IWICStream : IStream
572 HRESULT InitializeFromIStream(
573 [in] IStream *pIStream);
575 HRESULT InitializeFromFilename(
576 [in] LPCWSTR wzFileName,
577 [in] DWORD dwAccessMode);
579 HRESULT InitializeFromMemory(
580 [in, size_is(cbBufferSize)] BYTE *pbBuffer,
581 [in] DWORD cbBufferSize);
583 HRESULT InitializeFromIStreamRegion(
584 [in] IStream *pIStream,
585 [in] ULARGE_INTEGER ulOffset,
586 [in] ULARGE_INTEGER ulMaxSize);
589 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);")
592 object,
593 uuid(ec5ec8a9-c395-4314-9c77-54d7a935ff70)
595 interface IWICImagingFactory : IUnknown
597 HRESULT CreateDecoderFromFilename(
598 [in] LPCWSTR wzFilename,
599 [in, unique] const GUID *pguidVendor,
600 [in] DWORD dwDesiredAccess,
601 [in] WICDecodeOptions metadataOptions,
602 [out, retval] IWICBitmapDecoder **ppIDecoder);
604 HRESULT CreateDecoderFromStream(
605 [in] IStream *pIStream,
606 [in, unique] const GUID *pguidVendor,
607 [in] WICDecodeOptions metadataOptions,
608 [out, retval] IWICBitmapDecoder **ppIDecoder);
610 HRESULT CreateDecoderFromFileHandle(
611 [in] ULONG_PTR hFile,
612 [in, unique] const GUID *pguidVendor,
613 [in] WICDecodeOptions metadataOptions,
614 [out, retval] IWICBitmapDecoder **ppIDecoder);
616 HRESULT CreateComponentInfo(
617 [in] REFCLSID clsidComponent,
618 [out] IWICComponentInfo **ppIInfo);
620 HRESULT CreateDecoder(
621 [in] REFGUID guidContainerFormat,
622 [in, unique] const GUID *pguidVendor,
623 [out, retval] IWICBitmapDecoder **ppIDecoder);
625 HRESULT CreateEncoder(
626 [in] REFGUID guidContainerFormat,
627 [in, unique] const GUID *pguidVendor,
628 [out, retval] IWICBitmapEncoder **ppIEncoder);
630 HRESULT CreatePalette(
631 [out] IWICPalette **ppIPalette);
633 HRESULT CreateFormatConverter(
634 [out] IWICFormatConverter **ppIFormatConverter);
636 HRESULT CreateBitmapScaler(
637 [out] IWICBitmapScaler **ppIBitmapScaler);
639 HRESULT CreateBitmapClipper(
640 [out] IWICBitmapClipper **ppIBitmapClipper);
642 HRESULT CreateBitmapFlipRotator(
643 [out] IWICBitmapFlipRotator **ppIBitmapFlipRotator);
645 HRESULT CreateStream(
646 [out] IWICStream **ppIWICStream);
648 HRESULT CreateColorContext(
649 [out] IWICColorContext **ppIWICColorContext);
651 HRESULT CreateColorTransformer(
652 [out] IWICColorTransform **ppIWICColorTransform);
654 HRESULT CreateBitmap(
655 [in] UINT uiWidth,
656 [in] UINT uiHeight,
657 [in] REFWICPixelFormatGUID pixelFormat,
658 [in] WICBitmapCreateCacheOption option,
659 [out] IWICBitmap **ppIBitmap);
661 HRESULT CreateBitmapFromSource(
662 [in] IWICBitmapSource *piBitmapSource,
663 [in] WICBitmapCreateCacheOption option,
664 [out] IWICBitmap **ppIBitmap);
666 HRESULT CreateBitmapFromSourceRect(
667 [in] IWICBitmapSource *piBitmapSource,
668 [in] UINT x,
669 [in] UINT y,
670 [in] UINT width,
671 [in] UINT height,
672 [out] IWICBitmap **ppIBitmap);
674 HRESULT CreateBitmapFromMemory(
675 [in] UINT uiWidth,
676 [in] UINT uiHeight,
677 [in] REFWICPixelFormatGUID pixelFormat,
678 [in] UINT cbStride,
679 [in] UINT cbBufferSize,
680 [in, size_is(cbBufferSize)] BYTE *pbBuffer,
681 [out] IWICBitmap **ppIBitmap);
683 HRESULT CreateBitmapFromHBITMAP(
684 [in] HBITMAP hBitmap,
685 [in, unique] HPALETTE hPalette,
686 [in] WICBitmapAlphaChannelOption options,
687 [out] IWICBitmap **ppIBitmap);
689 HRESULT CreateBitmapFromHICON(
690 [in] HICON hIcon,
691 [out] IWICBitmap **ppIBitmap);
693 HRESULT CreateComponentEnumerator(
694 [in] DWORD componentTypes,
695 [in] DWORD options,
696 [out] IEnumUnknown **ppIEnumUnknown);
698 HRESULT CreateFastMetadataEncoderFromDecoder(
699 [in] IWICBitmapDecoder *pIDecoder,
700 [out] IWICFastMetadataEncoder **ppIFastEncoder);
702 HRESULT CreateFastMetadataEncoderFromFrameDecode(
703 [in] IWICBitmapFrameDecode *pIFrameDecoder,
704 [out] IWICFastMetadataEncoder **ppIFastEncoder);
706 HRESULT CreateQueryWriter(
707 [in] REFGUID guidMetadataFormat,
708 [in, unique] const GUID *pguidVendor,
709 [out] IWICMetadataQueryWriter **ppIQueryWriter);
711 HRESULT CreateQueryWriterFromReader(
712 [in] IWICMetadataQueryReader *pIQueryReader,
713 [in, unique] const GUID *pguidVendor,
714 [out] IWICMetadataQueryWriter **ppIQueryWriter);
717 cpp_quote("HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst);")
719 cpp_quote("DEFINE_GUID(CLSID_WICBmpDecoder, 0x6b462062,0x7cbf,0x400d,0x9f,0xdb,0x81,0x3d,0xd1,0x0f,0x27,0x78);")
720 cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder, 0x389ea17b,0x5078,0x4cde,0xb6,0xef,0x25,0xc1,0x51,0x75,0xc7,0x51);")
721 cpp_quote("DEFINE_GUID(CLSID_WICIcoDecoder, 0xc61bfcdf,0x2e0f,0x4aad,0xa8,0xd7,0xe0,0x6b,0xaf,0xeb,0xcd,0xfe);")
722 cpp_quote("DEFINE_GUID(CLSID_WICJpegDecoder, 0x9456a480,0xe88b,0x43ea,0x9e,0x73,0x0b,0x2d,0x9b,0x71,0xb1,0xca);")
723 cpp_quote("DEFINE_GUID(CLSID_WICGifDecoder, 0x381dda3c,0x9ce9,0x4834,0xa2,0x3e,0x1f,0x98,0xf8,0xfc,0x52,0xbe);")
724 cpp_quote("DEFINE_GUID(CLSID_WICTiffDecoder, 0xb54e85d9,0xfe23,0x499f,0x8b,0x88,0x6a,0xce,0xa7,0x13,0x75,0x2b);")
725 cpp_quote("DEFINE_GUID(CLSID_WICWmpDecoder, 0xa26cec36,0x234c,0x4950,0xae,0x16,0xe3,0x4a,0xac,0xe7,0x1d,0x0d);")
727 cpp_quote("DEFINE_GUID(CLSID_WICBmpEncoder, 0x69be8bb4,0xd66d,0x47c8,0x86,0x5a,0xed,0x15,0x89,0x43,0x37,0x82);")
728 cpp_quote("DEFINE_GUID(CLSID_WICPngEncoder, 0x27949969,0x876a,0x41d7,0x94,0x47,0x56,0x8f,0x6a,0x35,0xa4,0xdc);")
729 cpp_quote("DEFINE_GUID(CLSID_WICJpegEncoder, 0x1a34f5c1,0x4a5a,0x46dc,0xb6,0x44,0x1f,0x45,0x67,0xe7,0xa6,0x76);")
730 cpp_quote("DEFINE_GUID(CLSID_WICGifEncoder, 0x114f5598,0x0b22,0x40a0,0x86,0xa1,0xc8,0x3e,0xa4,0x95,0xad,0xbd);")
731 cpp_quote("DEFINE_GUID(CLSID_WICTiffEncoder, 0x0131be10,0x2001,0x4c5f,0xa9,0xb0,0xcc,0x88,0xfa,0xb6,0x4c,0xe8);")
732 cpp_quote("DEFINE_GUID(CLSID_WICWmpEncoder, 0xac4ce3cb,0xe1c1,0x44cd,0x82,0x15,0x5a,0x16,0x65,0x50,0x9e,0xc2);")
734 cpp_quote("DEFINE_GUID(CLSID_WICDefaultFormatConverter, 0x1a3f11dc,0xb514,0x4b17,0x8c,0x5f,0x21,0x54,0x51,0x38,0x52,0xf1);")
736 cpp_quote("DEFINE_GUID(GUID_ContainerFormatBmp, 0x0af1d87e,0xfcfe,0x4188,0xbd,0xeb,0xa7,0x90,0x64,0x71,0xcb,0xe3);")
737 cpp_quote("DEFINE_GUID(GUID_ContainerFormatPng, 0x1b7cfaf4,0x713f,0x473c,0xbb,0xcd,0x61,0x37,0x42,0x5f,0xae,0xaf);")
738 cpp_quote("DEFINE_GUID(GUID_ContainerFormatIco, 0xa3a860c4,0x338f,0x4c17,0x91,0x9a,0xfb,0xa4,0xb5,0x62,0x8f,0x21);")
739 cpp_quote("DEFINE_GUID(GUID_ContainerFormatJpeg, 0x19e4a5aa,0x5662,0x4fc5,0xa0,0xc0,0x17,0x58,0x02,0x8e,0x10,0x57);")
740 cpp_quote("DEFINE_GUID(GUID_ContainerFormatTiff, 0x163bcc30,0xe2e9,0x4f0b,0x96,0x1d,0xa3,0xe9,0xfd,0xb7,0x88,0xa3);")
741 cpp_quote("DEFINE_GUID(GUID_ContainerFormatGif, 0x1f8a5601,0x7d4d,0x4cbd,0x9c,0x82,0x1b,0xc8,0xd4,0xee,0xb9,0xa5);")
742 cpp_quote("DEFINE_GUID(GUID_ContainerFormatWmp, 0x57a37caa,0x367a,0x4540,0x91,0x6b,0xf1,0x83,0xc5,0x09,0x3a,0x4b);")
744 cpp_quote("DEFINE_GUID(GUID_VendorMicrosoft, 0xf0e749ca,0xedef,0x4589,0xa7,0x3a,0xee,0x0e,0x62,0x6a,0x2a,0x2b);")
746 cpp_quote("DEFINE_GUID(CATID_WICBitmapDecoders, 0x7ed96837,0x96f0,0x4812,0xb2,0x11,0xf1,0x3c,0x24,0x11,0x7e,0xd3);")
747 cpp_quote("DEFINE_GUID(CATID_WICBitmapEncoders, 0xac757296,0x3522,0x4e11,0x98,0x62,0xc1,0x7b,0xe5,0xa1,0x76,0x7e);")
748 cpp_quote("DEFINE_GUID(CATID_WICFormatConverters, 0x7835eae8,0xbf14,0x49d1,0x93,0xce,0x53,0x3a,0x40,0x7b,0x22,0x48);")