krnl386: Avoid using the selector functions from libwine.
[wine/zf.git] / include / wincodec.idl
blobb26e05539404c08640ca88e5c4f83b76637a55fa
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 "ocidl.idl";
23 cpp_quote ("#include \"dcommon.h\"")
25 cpp_quote("#define WINCODEC_SDK_VERSION 0x0236")
27 #define CODEC_FORCE_DWORD 0x7fffffff
29 typedef enum WICDecodeOptions {
30 WICDecodeMetadataCacheOnDemand = 0x00000000,
31 WICDecodeMetadataCacheOnLoad = 0x00000001,
32 WICMETADATACACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
33 } WICDecodeOptions;
35 typedef enum WICBitmapCreateCacheOption {
36 WICBitmapNoCache = 0x00000000,
37 WICBitmapCacheOnDemand = 0x00000001,
38 WICBitmapCacheOnLoad = 0x00000002,
39 WICBITMAPCREATECACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
40 } WICBitmapCreateCacheOption;
42 typedef enum WICBitmapAlphaChannelOption {
43 WICBitmapUseAlpha = 0x00000000,
44 WICBitmapUsePremultipliedAlpha = 0x00000001,
45 WICBitmapIgnoreAlpha = 0x00000002,
46 WICBITMAPALPHACHANNELOPTIONS_FORCE_DWORD = CODEC_FORCE_DWORD
47 } WICBitmapAlphaChannelOption;
49 typedef enum WICBitmapDecoderCapabilities {
50 WICBitmapDecoderCapabilitySameEncoder = 0x00000001,
51 WICBitmapDecoderCapabilityCanDecodeAllImages = 0x00000002,
52 WICBitmapDecoderCapabilityCanDecodeSomeImages = 0x00000004,
53 WICBitmapDecoderCapabilityCanEnumerateMetadata = 0x00000008,
54 WICBitmapDecoderCapabilityCanDecodeThumbnail = 0x00000010,
55 } WICBitmapDecoderCapabilities;
57 typedef enum WICBitmapDitherType {
58 WICBitmapDitherTypeNone = 0x00000000,
59 WICBitmapDitherTypeSolid = 0x00000000,
60 WICBitmapDitherTypeOrdered4x4 = 0x00000001,
61 WICBitmapDitherTypeOrdered8x8 = 0x00000002,
62 WICBitmapDitherTypeOrdered16x16 = 0x00000003,
63 WICBitmapDitherTypeSpiral4x4 = 0x00000004,
64 WICBitmapDitherTypeSpiral8x8 = 0x00000005,
65 WICBitmapDitherTypeDualSpiral4x4 = 0x00000006,
66 WICBitmapDitherTypeDualSpiral8x8 = 0x00000007,
67 WICBitmapDitherTypeErrorDiffusion = 0x00000008,
68 WICBITMAPDITHERTYPE_FORCE_DWORD = CODEC_FORCE_DWORD
69 } WICBitmapDitherType;
71 typedef enum WICBitmapEncoderCacheOption {
72 WICBitmapEncoderCacheInMemory = 0x00000000,
73 WICBitmapEncoderCacheTempFile = 0x00000001,
74 WICBitmapEncoderNoCache = 0x00000002,
75 WICBITMAPENCODERCACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
76 } WICBitmapEncoderCacheOption;
78 typedef enum WICBitmapInterpolationMode {
79 WICBitmapInterpolationModeNearestNeighbor = 0x00000000,
80 WICBitmapInterpolationModeLinear = 0x00000001,
81 WICBitmapInterpolationModeCubic = 0x00000002,
82 WICBitmapInterpolationModeFant = 0x00000003,
83 WICBITMAPINTERPOLATIONMODE_FORCE_DWORD = CODEC_FORCE_DWORD
84 } WICBitmapInterpolationMode;
86 typedef enum WICBitmapLockFlags {
87 WICBitmapLockRead = 0x00000001,
88 WICBitmapLockWrite = 0x00000002,
89 WICBITMAPLOCKFLAGS_FORCE_DWORD = CODEC_FORCE_DWORD
90 } WICBitmapLockFlags;
92 typedef enum WICBitmapPaletteType {
93 WICBitmapPaletteTypeCustom = 0x00000000,
94 WICBitmapPaletteTypeMedianCut = 0x00000001,
95 WICBitmapPaletteTypeFixedBW = 0x00000002,
96 WICBitmapPaletteTypeFixedHalftone8 = 0x00000003,
97 WICBitmapPaletteTypeFixedHalftone27 = 0x00000004,
98 WICBitmapPaletteTypeFixedHalftone64 = 0x00000005,
99 WICBitmapPaletteTypeFixedHalftone125 = 0x00000006,
100 WICBitmapPaletteTypeFixedHalftone216 = 0x00000007,
101 WICBitmapPaletteTypeFixedWebPalette = WICBitmapPaletteTypeFixedHalftone216,
102 WICBitmapPaletteTypeFixedHalftone252 = 0x00000008,
103 WICBitmapPaletteTypeFixedHalftone256 = 0x00000009,
104 WICBitmapPaletteTypeFixedGray4 = 0x0000000A,
105 WICBitmapPaletteTypeFixedGray16 = 0x0000000B,
106 WICBitmapPaletteTypeFixedGray256 = 0x0000000C,
107 WICBITMAPPALETTETYPE_FORCE_DWORD = CODEC_FORCE_DWORD
108 } WICBitmapPaletteType;
110 typedef enum WICBitmapTransformOptions {
111 WICBitmapTransformRotate0 = 0x00000000,
112 WICBitmapTransformRotate90 = 0x00000001,
113 WICBitmapTransformRotate180 = 0x00000002,
114 WICBitmapTransformRotate270 = 0x00000003,
115 WICBitmapTransformFlipHorizontal = 0x00000008,
116 WICBitmapTransformFlipVertical = 0x00000010,
117 WICBITMAPTRANSFORMOPTIONS_FORCE_DWORD = CODEC_FORCE_DWORD
118 } WICBitmapTransformOptions;
120 typedef enum WICColorContextType {
121 WICColorContextUninitialized = 0x00000000,
122 WICColorContextProfile = 0x00000001,
123 WICColorContextExifColorSpace = 0x00000002
124 } WICColorContextType;
126 typedef enum WICComponentType {
127 WICDecoder = 0x00000001,
128 WICEncoder = 0x00000002,
129 WICPixelFormatConverter = 0x00000004,
130 WICMetadataReader = 0x00000008,
131 WICMetadataWriter = 0x00000010,
132 WICPixelFormat = 0x00000020,
133 WICCOMPONENTTYPE_FORCE_DWORD = CODEC_FORCE_DWORD
134 } WICComponentType;
136 typedef enum WICComponentSigning {
137 WICComponentSigned = 0x00000001,
138 WICComponentUnsigned = 0x00000002,
139 WICComponentSafe = 0x00000004,
140 WICComponentDisabled = 0x80000000
141 } WICComponentSigning;
143 typedef enum WICComponentEnumerateOptions {
144 WICComponentEnumerateDefault = 0x00000000,
145 WICComponentEnumerateRefresh = 0x00000001,
146 WICComponentEnumerateBuiltInOnly = 0x20000000,
147 WICComponentEnumerateUnsigned = 0x40000000,
148 WICComponentEnumerateDisabled = 0x80000000
149 } WICComponentEnumerateOptions;
151 typedef enum WICJpegYCrCbSubsamplingOption {
152 WICJpegYCrCbSubsamplingDefault = 0x00000000,
153 WICJpegYCrCbSubsampling420 = 0x00000001,
154 WICJpegYCrCbSubsampling422 = 0x00000002,
155 WICJpegYCrCbSubsampling444 = 0x00000003,
156 WICJpegYCrCbSubsampling440 = 0x00000004
157 } WICJpegYCrCbSubsamplingOption;
159 typedef enum WICPixelFormatNumericRepresentation {
160 WICPixelFormatNumericRepresentationUnspecified = 0x00000000,
161 WICPixelFormatNumericRepresentationIndexed = 0x00000001,
162 WICPixelFormatNumericRepresentationUnsignedInteger = 0x00000002,
163 WICPixelFormatNumericRepresentationSignedInteger = 0x00000003,
164 WICPixelFormatNumericRepresentationFixed = 0x00000004,
165 WICPixelFormatNumericRepresentationFloat = 0x00000005,
166 WICPIXELFORMATNUMERICREPRESENTATION_FORCE_DWORD = CODEC_FORCE_DWORD
167 } WICPixelFormatNumericRepresentation;
169 typedef enum WICTiffCompressionOption {
170 WICTiffCompressionDontCare = 0x00000000,
171 WICTiffCompressionNone = 0x00000001,
172 WICTiffCompressionCCITT3 = 0x00000002,
173 WICTiffCompressionCCITT4 = 0x00000003,
174 WICTiffCompressionLZW = 0x00000004,
175 WICTiffCompressionRLE = 0x00000005,
176 WICTiffCompressionZIP = 0x00000006,
177 WICTiffCompressionLZWHDifferencing = 0x00000007,
178 WICTIFFCOMPRESSIONOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
179 } WICTiffCompressionOption;
181 typedef enum WICPngFilterOption {
182 WICPngFilterUnspecified = 0,
183 WICPngFilterNone = 1,
184 WICPngFilterSub = 2,
185 WICPngFilterUp = 3,
186 WICPngFilterAverage = 4,
187 WICPngFilterPaeth = 5,
188 WICPngFilterAdaptive = 6,
189 WICPNFFILTEROPTION_FORCE_DWORD = CODEC_FORCE_DWORD
190 } WICPngFilterOption;
192 typedef enum WICSectionAccessLevel {
193 WICSectionAccessLevelRead = 0x00000001,
194 WICSectionAccessLevelReadWrite = 0x00000003,
195 WICSectionAccessLevel_FORCE_DWORD = CODEC_FORCE_DWORD
196 } WICSectionAccessLevel;
198 typedef GUID WICPixelFormatGUID;
199 typedef REFGUID REFWICPixelFormatGUID;
201 cpp_quote("DEFINE_GUID(GUID_WICPixelFormatDontCare, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x00);")
202 cpp_quote("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare")
204 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat1bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x01);")
205 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x02);")
206 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x03);")
207 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x04);")
209 cpp_quote("DEFINE_GUID(GUID_WICPixelFormatBlackWhite, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x05);")
210 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x06);")
211 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x07);")
212 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x08);")
213 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0b);")
215 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppAlpha, 0xe6cd0116,0xeeba,0x4161,0xaa,0x85,0x27,0xdd,0x9f,0xb3,0xa8,0x95);")
217 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR555, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x09);")
218 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR565, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0a);")
219 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGRA5551, 0x05ec7c2b,0xf1e6,0x4961,0xad,0x46,0xe1,0xcc,0x81,0x0a,0x87,0xd2);")
220 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0c);")
221 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0d);")
222 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0e);")
223 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0f);")
224 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x10);")
225 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGB, 0xd98c6b95,0x3efe,0x47d6,0xbb,0x25,0xeb,0x17,0x48,0xab,0x0c,0xf1);")
226 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGBA, 0xf5c7ad2d,0x6a8d,0x43dd,0xa7,0xa8,0xa2,0x99,0x35,0x26,0x1a,0xe9);")
227 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPRGBA, 0x3cc4a650,0xa527,0x4d37,0xa9,0x16,0x31,0x42,0xc7,0xeb,0xed,0xba);")
228 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppGrayFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x11);")
230 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x15);")
231 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppBGR, 0xe605a384,0xb468,0x46ce,0xbb,0x2e,0x36,0xf1,0x80,0xe6,0x43,0x13);")
232 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGB, 0xa1182111,0x186d,0x4d42,0xbc,0x6a,0x9c,0x83,0x03,0xa8,0xdf,0xf9);")
233 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x16);")
234 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppBGRA, 0x1562ff7c,0xd352,0x46f9,0x97,0x9e,0x42,0x97,0x6b,0x79,0x22,0x46);")
235 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppPRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x17);")
236 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppPBGRA, 0x8c518e8e,0xa4ec,0x468b,0xae,0x70,0xc9,0xa3,0x5a,0x9c,0x55,0x30);")
238 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGrayFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x13);")
239 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGR101010, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x14);")
240 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGBFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x12);")
241 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppBGRFixedPoint, 0x49ca140e,0xcab6,0x493b,0x9d,0xdf,0x60,0x18,0x7c,0x37,0x53,0x2a);")
242 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat96bppRGBFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x18);")
243 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat96bppRGBFloat, 0xe3fed78f,0xe8db,0x4acf,0x84,0xc1,0xe9,0x7f,0x61,0x36,0xb3,0x27);")
244 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppRGBAFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x19);")
245 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppPRGBAFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1a);")
246 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppRGBFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1b);")
248 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1c);")
250 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBAFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1d);")
251 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppBGRAFixedPoint, 0x356de33c,0x54d2,0x4a23,0xbb,0x4,0x9b,0x7b,0xf9,0xb1,0xd4,0x2d);")
252 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x40);")
253 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppRGBAFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1e);")
254 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppRGBFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x41);")
256 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBAHalf, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x3a);")
257 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppPRGBAHalf, 0x58ad26c2,0xc623,0x4d9d,0xb3,0x20,0x38,0x7e,0x49,0xf8,0xc4,0x42);")
258 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBHalf, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x42);")
259 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGBHalf, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x3b);")
261 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGBE, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x3d);")
263 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGrayHalf, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x3e);")
264 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppGrayFixedPoint, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x3f);")
266 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGBA1010102, 0x25238d72,0xfcf9,0x4522,0xb5,0x14,0x55,0x78,0xe5,0xad,0x55,0xe0);")
267 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGBA1010102XR, 0x00de6b9a,0xc101,0x434b,0xb5,0x02,0xd0,0x16,0x5e,0xe1,0x12,0x2c);")
269 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppR10G10B10A2, 0x604e1bb5,0x8a3c,0x4b65,0xb1,0x1c,0xbc,0x0b,0x8d,0xd7,0x5b,0x7f);")
271 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppR10G10B10A2HDR10, 0x9c215c5d,0x1acc,0x4f0e,0xa4,0xbc,0x70,0xfb,0x3a,0xe8,0xfd,0x28);")
273 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1f);")
275 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bpp3Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x20);")
276 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bpp4Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x21);")
277 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat40bpp5Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x22);")
278 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bpp6Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x23);")
279 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat56bpp7Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x24);")
280 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bpp8Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x25);")
282 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bpp3Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x26);")
283 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bpp4Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x27);")
284 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat80bpp5Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x28);")
285 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat96bpp6Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x29);")
286 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat112bpp7Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x2a);")
287 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bpp8Channels, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x2b);")
289 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat40bppCMYKAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x2c);")
290 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat80bppCMYKAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x2d);")
292 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bpp3ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x2e);")
293 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat40bpp4ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x2f);")
294 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bpp5ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x30);")
295 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat56bpp6ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x31);")
296 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bpp7ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x32);")
297 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat72bpp8ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x33);")
299 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bpp3ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x34);")
300 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat80bpp4ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x35);")
301 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat96bpp5ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x36);")
302 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat112bpp6ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x37);")
303 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bpp7ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x38);")
304 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat144bpp8ChannelsAlpha, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x39);")
306 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppY, 0x91b4db54,0x2df9,0x42f0,0xb4,0x49,0x29,0x09,0xbb,0x3d,0xf8,0x8e);")
307 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppCb, 0x1339f224,0x6bfe,0x4c3e,0x93,0x02,0xe4,0xf3,0xa6,0xd0,0xca,0x2a);")
308 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppCr, 0xb8145053,0x2116,0x49f0,0x88,0x35,0xed,0x84,0x4b,0x20,0x5c,0x51);")
309 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppCbCr, 0xff95ba6e,0x11e0,0x4263,0xbb,0x45,0x01,0x72,0x1f,0x34,0x60,0xa4);")
311 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppYQuantizedDctCoefficients, 0xa355f433,0x48e8,0x4a42,0x84,0xd8,0xe2,0xaa,0x26,0xca,0x80,0xa4);")
312 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppCbQuantizedDctCoefficients, 0xd2c4ff61,0x56a5,0x49c2,0x8b,0x5c,0x4c,0x19,0x25,0x96,0x48,0x37);")
313 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppCrQuantizedDctCoefficients, 0x2fe354f0,0x1680,0x42d8,0x92,0x31,0xe7,0x3c,0x05,0x65,0xbf,0xc1);")
315 cpp_quote("#if 0")
316 typedef DWORD *D2D1_PIXEL_FORMAT;
317 cpp_quote ("#endif")
319 typedef struct WICRect {
320 INT X;
321 INT Y;
322 INT Width;
323 INT Height;
324 } WICRect;
326 typedef struct WICBitmapPattern {
327 ULARGE_INTEGER Position;
328 ULONG Length;
329 BYTE *Pattern;
330 BYTE *Mask;
331 BOOL EndOfStream;
332 } WICBitmapPattern;
334 typedef struct WICImageParameters
336 D2D1_PIXEL_FORMAT PixelFormat;
337 FLOAT DpiX;
338 FLOAT DpiY;
339 FLOAT Top;
340 FLOAT Left;
341 UINT32 PixelWidth;
342 UINT32 PixelHeight;
343 } WICImageParameters;
345 typedef UINT32 WICColor;
347 interface ID2D1Device;
348 interface ID2D1Image;
349 interface IWICPalette;
352 object,
353 uuid(3c613a02-34b2-44ea-9a7c-45aea9c6fd6d)
355 interface IWICColorContext : IUnknown
357 HRESULT InitializeFromFilename(
358 [in] LPCWSTR wzFilename);
360 HRESULT InitializeFromMemory(
361 [in, size_is(cbBufferSize)] const BYTE *pbBuffer,
362 [in] UINT cbBufferSize);
364 HRESULT InitializeFromExifColorSpace(
365 [in] UINT value);
367 HRESULT GetType(
368 [out] WICColorContextType *pType);
370 HRESULT GetProfileBytes(
371 [in] UINT cbBuffer,
372 [in, out, unique, size_is(cbBuffer)] BYTE *pbBuffer,
373 [out] UINT *pcbActual);
375 HRESULT GetExifColorSpace(
376 [out] UINT *pValue);
380 object,
381 uuid(00000120-a8f2-4877-ba0a-fd2b6645fb94)
383 interface IWICBitmapSource : IUnknown
385 HRESULT GetSize(
386 [out] UINT *puiWidth,
387 [out] UINT *puiHeight);
389 HRESULT GetPixelFormat(
390 [out] WICPixelFormatGUID *pPixelFormat);
392 HRESULT GetResolution(
393 [out] double *pDpiX,
394 [out] double *pDpiY);
396 HRESULT CopyPalette(
397 [in] IWICPalette *pIPalette);
399 HRESULT CopyPixels(
400 [in] const WICRect *prc,
401 [in] UINT cbStride,
402 [in] UINT cbBufferSize,
403 [out, size_is(cbBufferSize)] BYTE *pbBuffer);
407 object,
408 uuid(00000123-a8f2-4877-ba0a-fd2b6645fb94)
410 interface IWICBitmapLock : IUnknown
412 HRESULT GetSize(
413 [out] UINT *pWidth,
414 [out] UINT *pHeight);
416 HRESULT GetStride(
417 [out] UINT *pcbStride);
419 HRESULT GetDataPointer(
420 [out] UINT *pcbBufferSize,
421 [out, size_is(,*pcbBufferSize)] BYTE **ppbData);
423 HRESULT GetPixelFormat(
424 [out] WICPixelFormatGUID *pPixelFormat);
428 object,
429 uuid(5009834f-2d6a-41ce-9e1b-17c5aff7a782)
431 interface IWICBitmapFlipRotator : IWICBitmapSource
433 HRESULT Initialize(
434 [in] IWICBitmapSource *pISource,
435 [in] WICBitmapTransformOptions options);
439 object,
440 uuid(00000121-a8f2-4877-ba0a-fd2b6645fb94)
442 interface IWICBitmap : IWICBitmapSource
444 HRESULT Lock(
445 [in] const WICRect *prcLock,
446 [in] DWORD flags,
447 [out] IWICBitmapLock **ppILock);
449 HRESULT SetPalette(
450 [in] IWICPalette *pIPalette);
452 HRESULT SetResolution(
453 [in] double dpiX,
454 [in] double dpiY);
458 object,
459 uuid(00000040-a8f2-4877-ba0a-fd2b6645fb94)
461 interface IWICPalette : IUnknown
463 HRESULT InitializePredefined(
464 [in] WICBitmapPaletteType ePaletteType,
465 [in] BOOL fAddTransparentColor);
467 HRESULT InitializeCustom(
468 [in, size_is(colorCount)] WICColor *pColors,
469 [in] UINT colorCount);
471 HRESULT InitializeFromBitmap(
472 [in] IWICBitmapSource *pISurface,
473 [in] UINT colorCount,
474 [in] BOOL fAddTransparentColor);
476 HRESULT InitializeFromPalette(
477 [in] IWICPalette *pIPalette);
479 HRESULT GetType(
480 [out] WICBitmapPaletteType *pePaletteType);
482 HRESULT GetColorCount(
483 [out] UINT *pcCount);
485 HRESULT GetColors(
486 [in] UINT colorCount,
487 [out, size_is(colorCount)] WICColor *pColors,
488 [out] UINT *pcActualColors);
490 HRESULT IsBlackWhite(
491 [out] BOOL *pfIsBlackWhite);
493 HRESULT IsGrayscale(
494 [out] BOOL *pfIsGrayscale);
496 HRESULT HasAlpha(
497 [out] BOOL *pfHasAlpha);
501 object,
502 uuid(23bc3f0a-698b-4357-886b-f24d50671334)
504 interface IWICComponentInfo : IUnknown
506 HRESULT GetComponentType(
507 [out] WICComponentType *pType);
509 HRESULT GetCLSID(
510 [out] CLSID *pclsid);
512 HRESULT GetSigningStatus(
513 [out] DWORD *pStatus);
515 HRESULT GetAuthor(
516 [in] UINT cchAuthor,
517 [in, out, unique, size_is(cchAuthor)] WCHAR *wzAuthor,
518 [out] UINT *pcchActual);
520 HRESULT GetVendorGUID(
521 [out] GUID *pguidVendor);
523 HRESULT GetVersion(
524 [in] UINT cchVersion,
525 [in, out, unique, size_is(cchVersion)] WCHAR *wzVersion,
526 [out] UINT *pcchActual);
528 HRESULT GetSpecVersion(
529 [in] UINT cchSpecVersion,
530 [in, out, unique, size_is(cchSpecVersion)] WCHAR *wzSpecVersion,
531 [out] UINT *pcchActual);
533 HRESULT GetFriendlyName(
534 [in] UINT cchFriendlyName,
535 [in, out, unique, size_is(cchFriendlyName)] WCHAR *wzFriendlyName,
536 [out] UINT *pcchActual);
540 object,
541 uuid(30989668-e1c9-4597-b395-458eedb808df)
543 interface IWICMetadataQueryReader : IUnknown
545 HRESULT GetContainerFormat(
546 [out] GUID *pguidContainerFormat);
548 HRESULT GetLocation(
549 [in] UINT cchMaxLength,
550 [in, out, unique, size_is(cchMaxLength)] WCHAR *wzNamespace,
551 [out] UINT *pcchActualLength);
553 HRESULT GetMetadataByName(
554 [in] LPCWSTR wzName,
555 [in, out, unique] PROPVARIANT *pvarValue);
557 HRESULT GetEnumerator(
558 [out] IEnumString **ppIEnumString);
562 object,
563 uuid(a721791a-0def-4d06-bd91-2118bf1db10b)
565 interface IWICMetadataQueryWriter : IWICMetadataQueryReader
567 HRESULT SetMetadataByName(
568 [in] LPCWSTR wzName,
569 [in] const PROPVARIANT *pvarValue);
571 HRESULT RemoveMetadataByName(
572 [in] LPCWSTR wzName);
576 object,
577 uuid(3b16811b-6a43-4ec9-a813-3d930c13b940)
579 interface IWICBitmapFrameDecode : IWICBitmapSource
581 HRESULT GetMetadataQueryReader(
582 [out] IWICMetadataQueryReader **ppIMetadataQueryReader);
584 HRESULT GetColorContexts(
585 [in] UINT cCount,
586 [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts,
587 [out] UINT *pcActualCount);
589 HRESULT GetThumbnail(
590 [out] IWICBitmapSource **ppIThumbnail);
594 object,
595 uuid(e8eda601-3d48-431a-ab44-69059be88bbe)
597 interface IWICPixelFormatInfo : IWICComponentInfo
599 HRESULT GetFormatGUID(
600 [out] GUID* pFormat);
602 HRESULT GetColorContext(
603 [out] IWICColorContext **ppIColorContext);
605 HRESULT GetBitsPerPixel(
606 [out] UINT *puiBitsPerPixel);
608 HRESULT GetChannelCount(
609 [out] UINT *puiChannelCount);
611 HRESULT GetChannelMask(
612 [in] UINT uiChannelIndex,
613 [in] UINT cbMaskBuffer,
614 [in, out, unique, size_is(cbMaskBuffer)] BYTE *pbMaskBuffer,
615 [out] UINT *pcbActual);
619 object,
620 uuid(a9db33a2-af5f-43c7-b679-74f5984b5aa4)
622 interface IWICPixelFormatInfo2 : IWICPixelFormatInfo
624 HRESULT SupportsTransparency(
625 [out] BOOL *pfSupportsTransparency);
627 HRESULT GetNumericRepresentation(
628 [out] WICPixelFormatNumericRepresentation *pNumericRepresentation);
632 object,
633 uuid(e87a44c4-b76e-4c47-8b09-298eb12a2714)
635 interface IWICBitmapCodecInfo : IWICComponentInfo
637 HRESULT GetContainerFormat(
638 [out] GUID *pguidContainerFormat);
640 HRESULT GetPixelFormats(
641 [in] UINT cFormats,
642 [in, out, unique, size_is(cFormats)] GUID *pguidPixelFormats,
643 [out] UINT *pcActual);
645 HRESULT GetColorManagementVersion(
646 [in] UINT cchColorManagementVersion,
647 [in, out, unique, size_is(cchColorManagementVersion)] WCHAR *wzColorManagementVersion,
648 [out] UINT *pcchActual);
650 HRESULT GetDeviceManufacturer(
651 [in] UINT cchDeviceManufacturer,
652 [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer,
653 [out] UINT *pcchActual);
655 HRESULT GetDeviceModels(
656 [in] UINT cchDeviceModels,
657 [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels,
658 [out] UINT *pcchActual);
660 HRESULT GetMimeTypes(
661 [in] UINT cchMimeTypes,
662 [in, out, unique, size_is(cchMimeTypes)] WCHAR *wzMimeTypes,
663 [out] UINT *pcchActual);
665 HRESULT GetFileExtensions(
666 [in] UINT cchFileExtensions,
667 [in, out, unique, size_is(cchFileExtensions)] WCHAR *wzFileExtensions,
668 [out] UINT *pcchActual);
670 HRESULT DoesSupportAnimation(
671 [out] BOOL *pfSupportAnimation);
673 HRESULT DoesSupportChromaKey(
674 [out] BOOL *pfSupportChromaKey);
676 HRESULT DoesSupportLossless(
677 [out] BOOL *pfSupportLossless);
679 HRESULT DoesSupportMultiframe(
680 [out] BOOL *pfSupportMultiframe);
682 HRESULT MatchesMimeType(
683 [in] LPCWSTR wzMimeType,
684 [out] BOOL *pfMatches);
687 interface IWICBitmapDecoder;
690 object,
691 uuid(d8cd007f-d08f-4191-9bfc-236ea7f0e4b5)
693 interface IWICBitmapDecoderInfo : IWICBitmapCodecInfo
695 [local]
696 HRESULT GetPatterns(
697 [in] UINT cbSizePatterns,
698 [in, out, unique] WICBitmapPattern *pPatterns,
699 [in, out, unique] UINT *pcPatterns,
700 [in, out, unique] UINT *pcbPatternsActual);
702 HRESULT MatchesPattern(
703 [in] IStream *pIStream,
704 [out] BOOL *pfMatches);
706 HRESULT CreateInstance(
707 [out] IWICBitmapDecoder **ppIBitmapDecoder);
711 object,
712 uuid(9edde9e7-8dee-47ea-99df-e6faf2ed44bf)
714 interface IWICBitmapDecoder : IUnknown
716 HRESULT QueryCapability(
717 [in] IStream *pIStream,
718 [out] DWORD *pdwCapability);
720 HRESULT Initialize(
721 [in] IStream *pIStream,
722 [in] WICDecodeOptions cacheOptions);
724 HRESULT GetContainerFormat(
725 [out] GUID *pguidContainerFormat);
727 HRESULT GetDecoderInfo(
728 [out] IWICBitmapDecoderInfo **ppIDecoderInfo);
730 HRESULT CopyPalette(
731 [in] IWICPalette *pIPalette);
733 HRESULT GetMetadataQueryReader(
734 [out] IWICMetadataQueryReader **ppIMetadataQueryReader);
736 HRESULT GetPreview(
737 [out] IWICBitmapSource **ppIBitmapSource);
739 HRESULT GetColorContexts(
740 [in] UINT cCount,
741 [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts,
742 [out] UINT *pcActualCount);
744 HRESULT GetThumbnail(
745 [out] IWICBitmapSource **ppIThumbnail);
747 HRESULT GetFrameCount(
748 [out] UINT *pCount);
750 HRESULT GetFrame(
751 [in] UINT index,
752 [out] IWICBitmapFrameDecode **ppIBitmapFrame);
756 object,
757 uuid(00000105-a8f2-4877-ba0a-fd2b6645fb94)
759 interface IWICBitmapFrameEncode : IUnknown
761 HRESULT Initialize(
762 [in, unique] IPropertyBag2 *pIEncoderOptions);
764 HRESULT SetSize(
765 [in] UINT uiWidth,
766 [in] UINT uiHeight);
768 HRESULT SetResolution(
769 [in] double dpiX,
770 [in] double dpiY);
772 HRESULT SetPixelFormat(
773 [in, out] WICPixelFormatGUID *pPixelFormat);
775 HRESULT SetColorContexts(
776 [in] UINT cCount,
777 [in, size_is(cCount)] IWICColorContext **ppIColorContext);
779 HRESULT SetPalette(
780 [in] IWICPalette *pIPalette);
782 HRESULT SetThumbnail(
783 [in] IWICBitmapSource *pIThumbnail);
785 HRESULT WritePixels(
786 [in] UINT lineCount,
787 [in] UINT cbStride,
788 [in] UINT cbBufferSize,
789 [in, size_is(cbBufferSize)] BYTE *pbPixels);
791 HRESULT WriteSource(
792 [in] IWICBitmapSource *pIBitmapSource,
793 [in, unique] WICRect *prc);
795 HRESULT Commit();
797 HRESULT GetMetadataQueryWriter(
798 IWICMetadataQueryWriter **ppIMetadataQueryWriter);
801 interface IWICBitmapEncoder;
804 object,
805 uuid(94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb)
807 interface IWICBitmapEncoderInfo : IWICBitmapCodecInfo
809 HRESULT CreateInstance(
810 [out] IWICBitmapEncoder **ppIBitmapEncoder);
814 object,
815 uuid(00000103-a8f2-4877-ba0a-fd2b6645fb94)
817 interface IWICBitmapEncoder : IUnknown
819 HRESULT Initialize(
820 [in] IStream *pIStream,
821 [in] WICBitmapEncoderCacheOption cacheOption);
823 HRESULT GetContainerFormat(
824 [out] GUID *pguidContainerFormat);
826 HRESULT GetEncoderInfo(
827 [out] IWICBitmapEncoderInfo **ppIEncoderInfo);
829 HRESULT SetColorContexts(
830 [in] UINT cCount,
831 [in, size_is(cCount)] IWICColorContext **ppIColorContext);
833 HRESULT SetPalette(
834 [in] IWICPalette *pIPalette);
836 HRESULT SetThumbnail(
837 [in] IWICBitmapSource *pIThumbnail);
839 HRESULT SetPreview(
840 [in] IWICBitmapSource *pIPreview);
842 HRESULT CreateNewFrame(
843 [out] IWICBitmapFrameEncode **ppIFrameEncode,
844 [in, out, unique] IPropertyBag2 **ppIEncoderOptions);
846 HRESULT Commit();
848 HRESULT GetMetadataQueryWriter(
849 [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter);
853 object,
854 uuid(00000301-a8f2-4877-ba0a-fd2b6645fb94)
856 interface IWICFormatConverter : IWICBitmapSource
858 HRESULT Initialize(
859 [in] IWICBitmapSource *pISource,
860 [in] REFWICPixelFormatGUID dstFormat,
861 [in] WICBitmapDitherType dither,
862 [in] IWICPalette *pIPalette,
863 [in] double alphaThresholdPercent,
864 [in] WICBitmapPaletteType paletteTranslate);
866 HRESULT CanConvert(
867 [in] REFWICPixelFormatGUID srcPixelFormat,
868 [in] REFWICPixelFormatGUID dstPixelFormat,
869 [out] BOOL *pfCanConvert);
873 object,
874 uuid(9f34fb65-13f4-4f15-bc57-3726b5e53d9f)
876 interface IWICFormatConverterInfo : IWICComponentInfo
878 HRESULT GetPixelFormats(
879 [in] UINT cFormats,
880 [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs,
881 [out] UINT *pcActual);
883 HRESULT CreateInstance(
884 [out] IWICFormatConverter **ppIConverter);
888 object,
889 uuid(135ff860-22b7-4ddf-b0f6-218f4f299a43)
891 interface IWICStream : IStream
893 HRESULT InitializeFromIStream(
894 [in] IStream *pIStream);
896 HRESULT InitializeFromFilename(
897 [in] LPCWSTR wzFileName,
898 [in] DWORD dwAccessMode);
900 HRESULT InitializeFromMemory(
901 [in, size_is(cbBufferSize)] BYTE *pbBuffer,
902 [in] DWORD cbBufferSize);
904 HRESULT InitializeFromIStreamRegion(
905 [in] IStream *pIStream,
906 [in] ULARGE_INTEGER ulOffset,
907 [in] ULARGE_INTEGER ulMaxSize);
911 object,
912 uuid(00000302-a8f2-4877-ba0a-fd2b6645fb94)
914 interface IWICBitmapScaler : IWICBitmapSource
916 HRESULT Initialize(
917 [in] IWICBitmapSource *pISource,
918 [in] UINT uiWidth,
919 [in] UINT uiHeight,
920 [in] WICBitmapInterpolationMode mode);
924 object,
925 uuid(e4fbcf03-223d-4e81-9333-d635556dd1b5)
927 interface IWICBitmapClipper : IWICBitmapSource
929 HRESULT Initialize(
930 [in] IWICBitmapSource *pISource,
931 [in] const WICRect *prc);
935 object,
936 uuid(b66f034f-d0e2-40ab-b436-6de39e321a94)
938 interface IWICColorTransform : IWICBitmapSource
940 HRESULT Initialize(
941 [in] IWICBitmapSource *pIBitmapSource,
942 [in] IWICColorContext *pIContextSource,
943 [in] IWICColorContext *pIContextDest,
944 [in] REFWICPixelFormatGUID pixelFmtDest);
948 object,
949 uuid(b84e2c09-78c9-4ac4-8bd3-524ae1663a2f)
951 interface IWICFastMetadataEncoder : IUnknown
953 HRESULT Commit();
955 HRESULT GetMetadataQueryWriter(
956 [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter);
960 object,
961 uuid(04c75bf8-3ce1-473b-acc5-3cc4f5e94999),
962 local
964 interface IWICImageEncoder : IUnknown
966 HRESULT WriteFrame(
967 [in] ID2D1Image *image,
968 [in] IWICBitmapFrameEncode *encode,
969 [in, unique] const WICImageParameters *parameters);
971 HRESULT WriteFrameThumbnail(
972 [in] ID2D1Image *image,
973 [in] IWICBitmapFrameEncode *encode,
974 [in, unique] const WICImageParameters *parameters);
976 HRESULT WriteThumbnail(
977 [in] ID2D1Image *image,
978 [in] IWICBitmapEncoder *encoder,
979 [in, unique] const WICImageParameters *parameters);
982 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);")
983 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory1, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);")
984 cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory2, 0x317d06e8,0x5f24,0x433d,0xbd,0xf7,0x79,0xce,0x68,0xd8,0xab,0xc2);")
987 object,
988 uuid(ec5ec8a9-c395-4314-9c77-54d7a935ff70)
990 interface IWICImagingFactory : IUnknown
992 HRESULT CreateDecoderFromFilename(
993 [in] LPCWSTR wzFilename,
994 [in, unique] const GUID *pguidVendor,
995 [in] DWORD dwDesiredAccess,
996 [in] WICDecodeOptions metadataOptions,
997 [out, retval] IWICBitmapDecoder **ppIDecoder);
999 HRESULT CreateDecoderFromStream(
1000 [in] IStream *pIStream,
1001 [in, unique] const GUID *pguidVendor,
1002 [in] WICDecodeOptions metadataOptions,
1003 [out, retval] IWICBitmapDecoder **ppIDecoder);
1005 HRESULT CreateDecoderFromFileHandle(
1006 [in] ULONG_PTR hFile,
1007 [in, unique] const GUID *pguidVendor,
1008 [in] WICDecodeOptions metadataOptions,
1009 [out, retval] IWICBitmapDecoder **ppIDecoder);
1011 HRESULT CreateComponentInfo(
1012 [in] REFCLSID clsidComponent,
1013 [out] IWICComponentInfo **ppIInfo);
1015 HRESULT CreateDecoder(
1016 [in] REFGUID guidContainerFormat,
1017 [in, unique] const GUID *pguidVendor,
1018 [out, retval] IWICBitmapDecoder **ppIDecoder);
1020 HRESULT CreateEncoder(
1021 [in] REFGUID guidContainerFormat,
1022 [in, unique] const GUID *pguidVendor,
1023 [out, retval] IWICBitmapEncoder **ppIEncoder);
1025 HRESULT CreatePalette(
1026 [out] IWICPalette **ppIPalette);
1028 HRESULT CreateFormatConverter(
1029 [out] IWICFormatConverter **ppIFormatConverter);
1031 HRESULT CreateBitmapScaler(
1032 [out] IWICBitmapScaler **ppIBitmapScaler);
1034 HRESULT CreateBitmapClipper(
1035 [out] IWICBitmapClipper **ppIBitmapClipper);
1037 HRESULT CreateBitmapFlipRotator(
1038 [out] IWICBitmapFlipRotator **ppIBitmapFlipRotator);
1040 HRESULT CreateStream(
1041 [out] IWICStream **ppIWICStream);
1043 HRESULT CreateColorContext(
1044 [out] IWICColorContext **ppIWICColorContext);
1046 HRESULT CreateColorTransformer(
1047 [out] IWICColorTransform **ppIWICColorTransform);
1049 HRESULT CreateBitmap(
1050 [in] UINT uiWidth,
1051 [in] UINT uiHeight,
1052 [in] REFWICPixelFormatGUID pixelFormat,
1053 [in] WICBitmapCreateCacheOption option,
1054 [out] IWICBitmap **ppIBitmap);
1056 HRESULT CreateBitmapFromSource(
1057 [in] IWICBitmapSource *piBitmapSource,
1058 [in] WICBitmapCreateCacheOption option,
1059 [out] IWICBitmap **ppIBitmap);
1061 HRESULT CreateBitmapFromSourceRect(
1062 [in] IWICBitmapSource *piBitmapSource,
1063 [in] UINT x,
1064 [in] UINT y,
1065 [in] UINT width,
1066 [in] UINT height,
1067 [out] IWICBitmap **ppIBitmap);
1069 HRESULT CreateBitmapFromMemory(
1070 [in] UINT uiWidth,
1071 [in] UINT uiHeight,
1072 [in] REFWICPixelFormatGUID pixelFormat,
1073 [in] UINT cbStride,
1074 [in] UINT cbBufferSize,
1075 [in, size_is(cbBufferSize)] BYTE *pbBuffer,
1076 [out] IWICBitmap **ppIBitmap);
1078 HRESULT CreateBitmapFromHBITMAP(
1079 [in] HBITMAP hBitmap,
1080 [in, unique] HPALETTE hPalette,
1081 [in] WICBitmapAlphaChannelOption options,
1082 [out] IWICBitmap **ppIBitmap);
1084 HRESULT CreateBitmapFromHICON(
1085 [in] HICON hIcon,
1086 [out] IWICBitmap **ppIBitmap);
1088 HRESULT CreateComponentEnumerator(
1089 [in] DWORD componentTypes,
1090 [in] DWORD options,
1091 [out] IEnumUnknown **ppIEnumUnknown);
1093 HRESULT CreateFastMetadataEncoderFromDecoder(
1094 [in] IWICBitmapDecoder *pIDecoder,
1095 [out] IWICFastMetadataEncoder **ppIFastEncoder);
1097 HRESULT CreateFastMetadataEncoderFromFrameDecode(
1098 [in] IWICBitmapFrameDecode *pIFrameDecoder,
1099 [out] IWICFastMetadataEncoder **ppIFastEncoder);
1101 HRESULT CreateQueryWriter(
1102 [in] REFGUID guidMetadataFormat,
1103 [in, unique] const GUID *pguidVendor,
1104 [out] IWICMetadataQueryWriter **ppIQueryWriter);
1106 HRESULT CreateQueryWriterFromReader(
1107 [in] IWICMetadataQueryReader *pIQueryReader,
1108 [in, unique] const GUID *pguidVendor,
1109 [out] IWICMetadataQueryWriter **ppIQueryWriter);
1113 object,
1114 uuid(7b816b45-1996-4476-b132-de9e247c8af0),
1115 local
1117 interface IWICImagingFactory2 : IWICImagingFactory
1119 HRESULT CreateImageEncoder(
1120 [in] ID2D1Device *device,
1121 [out] IWICImageEncoder **encoder);
1125 local,
1126 object,
1127 uuid(dc2bb46d-3f07-481e-8625-220c4aedbb33)
1129 interface IWICEnumMetadataItem : IUnknown
1131 HRESULT Next(
1132 [in] ULONG celt,
1133 [in, out, unique, size_is(celt)] PROPVARIANT *rgeltSchema,
1134 [in, out, size_is(celt)] PROPVARIANT *rgeltId,
1135 [in, out, optional, size_is(celt)] PROPVARIANT *rgeltValue,
1136 [out, optional] ULONG *pceltFetched);
1138 HRESULT Skip(
1139 [in] ULONG celt);
1141 HRESULT Reset();
1143 HRESULT Clone(
1144 [out] IWICEnumMetadataItem **ppIEnumMetadataItem);
1147 cpp_quote("HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst);")
1148 cpp_quote("HRESULT WINAPI WICCreateBitmapFromSection(UINT width, UINT height, REFWICPixelFormatGUID format, HANDLE section, UINT stride, UINT offset, IWICBitmap **bitmap);")
1149 cpp_quote("HRESULT WINAPI WICCreateBitmapFromSectionEx(UINT width, UINT height, REFWICPixelFormatGUID format, HANDLE section, UINT stride, UINT offset, WICSectionAccessLevel access, IWICBitmap **bitmap);")
1151 cpp_quote("HRESULT WINAPI WICMapGuidToShortName(REFGUID,UINT,WCHAR *,UINT *);")
1152 cpp_quote("HRESULT WINAPI WICMapShortNameToGuid(PCWSTR,GUID *);")
1153 cpp_quote("HRESULT WINAPI WICMapSchemaToName(REFGUID,LPWSTR,UINT,WCHAR *,UINT *);")
1155 cpp_quote("DEFINE_GUID(CLSID_WICBmpDecoder, 0x6b462062,0x7cbf,0x400d,0x9f,0xdb,0x81,0x3d,0xd1,0x0f,0x27,0x78);")
1156 cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder, 0x389ea17b,0x5078,0x4cde,0xb6,0xef,0x25,0xc1,0x51,0x75,0xc7,0x51);")
1157 cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder1, 0x389ea17b,0x5078,0x4cde,0xb6,0xef,0x25,0xc1,0x51,0x75,0xc7,0x51);")
1158 cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder2, 0xe018945b,0xaa86,0x4008,0x9b,0xd4,0x67,0x77,0xa1,0xe4,0x0c,0x11);")
1159 cpp_quote("DEFINE_GUID(CLSID_WICIcoDecoder, 0xc61bfcdf,0x2e0f,0x4aad,0xa8,0xd7,0xe0,0x6b,0xaf,0xeb,0xcd,0xfe);")
1160 cpp_quote("DEFINE_GUID(CLSID_WICJpegDecoder, 0x9456a480,0xe88b,0x43ea,0x9e,0x73,0x0b,0x2d,0x9b,0x71,0xb1,0xca);")
1161 cpp_quote("DEFINE_GUID(CLSID_WICGifDecoder, 0x381dda3c,0x9ce9,0x4834,0xa2,0x3e,0x1f,0x98,0xf8,0xfc,0x52,0xbe);")
1162 cpp_quote("DEFINE_GUID(CLSID_WICTiffDecoder, 0xb54e85d9,0xfe23,0x499f,0x8b,0x88,0x6a,0xce,0xa7,0x13,0x75,0x2b);")
1163 cpp_quote("DEFINE_GUID(CLSID_WICWmpDecoder, 0xa26cec36,0x234c,0x4950,0xae,0x16,0xe3,0x4a,0xac,0xe7,0x1d,0x0d);")
1164 cpp_quote("DEFINE_GUID(CLSID_WICDdsDecoder, 0x9053699f,0xa341,0x429d,0x9e,0x90,0xee,0x43,0x7c,0xf8,0x0c,0x73);")
1166 cpp_quote("DEFINE_GUID(CLSID_WICBmpEncoder, 0x69be8bb4,0xd66d,0x47c8,0x86,0x5a,0xed,0x15,0x89,0x43,0x37,0x82);")
1167 cpp_quote("DEFINE_GUID(CLSID_WICPngEncoder, 0x27949969,0x876a,0x41d7,0x94,0x47,0x56,0x8f,0x6a,0x35,0xa4,0xdc);")
1168 cpp_quote("DEFINE_GUID(CLSID_WICJpegEncoder, 0x1a34f5c1,0x4a5a,0x46dc,0xb6,0x44,0x1f,0x45,0x67,0xe7,0xa6,0x76);")
1169 cpp_quote("DEFINE_GUID(CLSID_WICGifEncoder, 0x114f5598,0x0b22,0x40a0,0x86,0xa1,0xc8,0x3e,0xa4,0x95,0xad,0xbd);")
1170 cpp_quote("DEFINE_GUID(CLSID_WICTiffEncoder, 0x0131be10,0x2001,0x4c5f,0xa9,0xb0,0xcc,0x88,0xfa,0xb6,0x4c,0xe8);")
1171 cpp_quote("DEFINE_GUID(CLSID_WICWmpEncoder, 0xac4ce3cb,0xe1c1,0x44cd,0x82,0x15,0x5a,0x16,0x65,0x50,0x9e,0xc2);")
1172 cpp_quote("DEFINE_GUID(CLSID_WICDdsEncoder, 0xa61dde94,0x66ce,0x4ac1,0x88,0x1b,0x71,0x68,0x05,0x88,0x89,0x5e);")
1173 cpp_quote("DEFINE_GUID(CLSID_WICAdngDecoder, 0x981d9411,0x909e,0x42a7,0x8f,0x5d,0xa7,0x47,0xff,0x05,0x2e,0xdb);")
1175 cpp_quote("DEFINE_GUID(CLSID_WICJpegQualcommPhoneEncoder, 0x68ed5c62,0xf534,0x4979,0xb2,0xb3,0x68,0x6a,0x12,0xb2,0xb3,0x4c);")
1177 cpp_quote("DEFINE_GUID(CLSID_WICHeifDecoder, 0xe9a4a80a,0x44fe,0x4de4,0x89,0x71,0x71,0x50,0xb1,0x0a,0x51,0x99);")
1178 cpp_quote("DEFINE_GUID(CLSID_WICHeifEncoder, 0x0dbecec1,0x9eb3,0x4860,0x9c,0x6f,0xdd,0xbe,0x86,0x63,0x45,0x75);")
1180 cpp_quote("DEFINE_GUID(CLSID_WICWebpDecoder, 0x7693e886,0x51c9,0x4070,0x84,0x19,0x9f,0x70,0x73,0x8e,0xc8,0xfa);")
1181 cpp_quote("DEFINE_GUID(CLSID_WICRAWDecoder, 0x41945702,0x8302,0x44a6,0x94,0x45,0xac,0x98,0xe8,0xaf,0xa0,0x86);")
1183 cpp_quote("DEFINE_GUID(CLSID_WICDefaultFormatConverter, 0x1a3f11dc,0xb514,0x4b17,0x8c,0x5f,0x21,0x54,0x51,0x38,0x52,0xf1);")
1184 cpp_quote("DEFINE_GUID(CLSID_WICFormatConverterHighColor, 0xac75d454,0x9f37,0x48f8,0xb9,0x72,0x4e,0x19,0xbc,0x85,0x60,0x11);")
1185 cpp_quote("DEFINE_GUID(CLSID_WICFormatConverterNChannel, 0xc17cabb2,0xd4a3,0x47d7,0xa5,0x57,0x33,0x9b,0x2e,0xfb,0xd4,0xf1);")
1186 cpp_quote("DEFINE_GUID(CLSID_WICFormatConverterWMPhoto, 0x9cb5172b,0xd600,0x46ba,0xab,0x77,0x77,0xbb,0x7e,0x3a,0x00,0xd9);")
1187 cpp_quote("DEFINE_GUID(CLSID_WICPlanarFormatConverter, 0x184132b8,0x32f8,0x4784,0x91,0x31,0xdd,0x72,0x24,0xb2,0x34,0x38);")
1189 cpp_quote("DEFINE_GUID(GUID_ContainerFormatBmp, 0x0af1d87e,0xfcfe,0x4188,0xbd,0xeb,0xa7,0x90,0x64,0x71,0xcb,0xe3);")
1190 cpp_quote("DEFINE_GUID(GUID_ContainerFormatPng, 0x1b7cfaf4,0x713f,0x473c,0xbb,0xcd,0x61,0x37,0x42,0x5f,0xae,0xaf);")
1191 cpp_quote("DEFINE_GUID(GUID_ContainerFormatIco, 0xa3a860c4,0x338f,0x4c17,0x91,0x9a,0xfb,0xa4,0xb5,0x62,0x8f,0x21);")
1192 cpp_quote("DEFINE_GUID(GUID_ContainerFormatJpeg, 0x19e4a5aa,0x5662,0x4fc5,0xa0,0xc0,0x17,0x58,0x02,0x8e,0x10,0x57);")
1193 cpp_quote("DEFINE_GUID(GUID_ContainerFormatTiff, 0x163bcc30,0xe2e9,0x4f0b,0x96,0x1d,0xa3,0xe9,0xfd,0xb7,0x88,0xa3);")
1194 cpp_quote("DEFINE_GUID(GUID_ContainerFormatGif, 0x1f8a5601,0x7d4d,0x4cbd,0x9c,0x82,0x1b,0xc8,0xd4,0xee,0xb9,0xa5);")
1195 cpp_quote("DEFINE_GUID(GUID_ContainerFormatWmp, 0x57a37caa,0x367a,0x4540,0x91,0x6b,0xf1,0x83,0xc5,0x09,0x3a,0x4b);")
1196 cpp_quote("DEFINE_GUID(GUID_ContainerFormatDds, 0x9967cb95,0x2e85,0x4ac8,0x8c,0xa2,0x83,0xd7,0xcc,0xd4,0x25,0xc9);")
1197 cpp_quote("DEFINE_GUID(GUID_ContainerFormatAdng, 0xf3ff6d0d,0x38c0,0x41c4,0xb1,0xfe,0x1f,0x38,0x24,0xf1,0x7b,0x84);")
1198 cpp_quote("DEFINE_GUID(GUID_ContainerFormatHeif, 0xe1e62521,0x6787,0x405b,0xa3,0x39,0x50,0x07,0x15,0xb5,0x76,0x3f);")
1199 cpp_quote("DEFINE_GUID(GUID_ContainerFormatWebp, 0xe094b0e2,0x67f2,0x45b3,0xb0,0xea,0x11,0x53,0x37,0xca,0x7c,0xf3);")
1200 cpp_quote("DEFINE_GUID(GUID_ContainerFormatRaw, 0xfe99ce60,0xf19c,0x433c,0xa3,0xae,0x00,0xac,0xef,0xa9,0xca,0x21);")
1202 cpp_quote("DEFINE_GUID(GUID_VendorMicrosoft, 0xf0e749ca,0xedef,0x4589,0xa7,0x3a,0xee,0x0e,0x62,0x6a,0x2a,0x2b);")
1203 cpp_quote("DEFINE_GUID(GUID_VendorMicrosoftBuiltIn, 0x257a30fd,0x6b6,0x462b,0xae,0xa4,0x63,0xf7,0xb,0x86,0xe5,0x33);")
1205 cpp_quote("DEFINE_GUID(CLSID_WICImagingCategories, 0xfae3d380,0xfea4,0x4623,0x8c,0x75,0xc6,0xb6,0x11,0x10,0xb6,0x81);")
1206 cpp_quote("DEFINE_GUID(CATID_WICBitmapDecoders, 0x7ed96837,0x96f0,0x4812,0xb2,0x11,0xf1,0x3c,0x24,0x11,0x7e,0xd3);")
1207 cpp_quote("DEFINE_GUID(CATID_WICBitmapEncoders, 0xac757296,0x3522,0x4e11,0x98,0x62,0xc1,0x7b,0xe5,0xa1,0x76,0x7e);")
1208 cpp_quote("DEFINE_GUID(CATID_WICFormatConverters, 0x7835eae8,0xbf14,0x49d1,0x93,0xce,0x53,0x3a,0x40,0x7b,0x22,0x48);")
1209 cpp_quote("DEFINE_GUID(CATID_WICMetadataReader, 0x05af94d8,0x7174,0x4cd2,0xbe,0x4a,0x41,0x24,0xb8,0x0e,0xe4,0xb8);")
1210 cpp_quote("DEFINE_GUID(CATID_WICMetadataWriter, 0xabe3b9a4,0x257d,0x4b97,0xbd,0x1a,0x29,0x4a,0xf4,0x96,0x22,0x2e);")
1211 cpp_quote("DEFINE_GUID(CATID_WICPixelFormats, 0x2b46e70f,0xcda7,0x473e,0x89,0xf6,0xdc,0x96,0x30,0xa2,0x39,0x0b);")