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 19import "wtypes.idl"; 20import "propidl.idl"; 21import "ocidl.idl"; 22 23cpp_quote("#define WINCODEC_SDK_VERSION 0x0236") 24 25#define CODEC_FORCE_DWORD 0x7fffffff 26 27typedef enum WICDecodeOptions { 28 WICDecodeMetadataCacheOnDemand = 0x00000000, 29 WICDecodeMetadataCacheOnLoad = 0x00000001, 30 WICMETADATACACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD 31} WICDecodeOptions; 32 33typedef enum WICBitmapCreateCacheOption { 34 WICBitmapNoCache = 0x00000000, 35 WICBitmapCacheOnDemand = 0x00000001, 36 WICBitmapCacheOnLoad = 0x00000002, 37 WICBITMAPCREATECACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD 38} WICBitmapCreateCacheOption; 39 40typedef enum WICBitmapAlphaChannelOption { 41 WICBitmapUseAlpha = 0x00000000, 42 WICBitmapUsePremultipliedAlpha = 0x00000001, 43 WICBitmapIgnoreAlpha = 0x00000002, 44 WICBITMAPALPHACHANNELOPTIONS_FORCE_DWORD = CODEC_FORCE_DWORD 45} WICBitmapAlphaChannelOption; 46 47typedef enum WICBitmapDecoderCapabilities { 48 WICBitmapDecoderCapabilitySameEncoder = 0x00000001, 49 WICBitmapDecoderCapabilityCanDecodeAllImages = 0x00000002, 50 WICBitmapDecoderCapabilityCanDecodeSomeImages = 0x00000004, 51 WICBitmapDecoderCapabilityCanEnumerateMetadata = 0x00000008, 52 WICBitmapDecoderCapabilityCanDecodeThumbnail = 0x00000010, 53} WICBitmapDecoderCapabilities; 54 55typedef enum WICBitmapDitherType { 56 WICBitmapDitherTypeNone = 0x00000000, 57 WICBitmapDitherTypeSolid = 0x00000000, 58 WICBitmapDitherTypeOrdered4x4 = 0x00000001, 59 WICBitmapDitherTypeOrdered8x8 = 0x00000002, 60 WICBitmapDitherTypeOrdered16x16 = 0x00000003, 61 WICBitmapDitherTypeSpiral4x4 = 0x00000004, 62 WICBitmapDitherTypeSpiral8x8 = 0x00000005, 63 WICBitmapDitherTypeDualSpiral4x4 = 0x00000006, 64 WICBitmapDitherTypeDualSpiral8x8 = 0x00000007, 65 WICBitmapDitherTypeErrorDiffusion = 0x00000008, 66 WICBITMAPDITHERTYPE_FORCE_DWORD = CODEC_FORCE_DWORD 67} WICBitmapDitherType; 68 69typedef enum WICBitmapEncoderCacheOption { 70 WICBitmapEncoderCacheInMemory = 0x00000000, 71 WICBitmapEncoderCacheTempFile = 0x00000001, 72 WICBitmapEncoderNoCache = 0x00000002, 73 WICBITMAPENCODERCACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD 74} WICBitmapEncoderCacheOption; 75 76typedef enum WICBitmapInterpolationMode { 77 WICBitmapInterpolationModeNearestNeighbor = 0x00000000, 78 WICBitmapInterpolationModeLinear = 0x00000001, 79 WICBitmapInterpolationModeCubic = 0x00000002, 80 WICBitmapInterpolationModeFant = 0x00000003, 81 WICBITMAPINTERPOLATIONMODE_FORCE_DWORD = CODEC_FORCE_DWORD 82} WICBitmapInterpolationMode; 83 84typedef enum WICBitmapLockFlags { 85 WICBitmapLockRead = 0x00000001, 86 WICBitmapLockWrite = 0x00000002, 87 WICBITMAPLOCKFLAGS_FORCE_DWORD = CODEC_FORCE_DWORD 88} WICBitmapLockFlags; 89 90typedef enum WICBitmapPaletteType { 91 WICBitmapPaletteTypeCustom = 0x00000000, 92 WICBitmapPaletteTypeMedianCut = 0x00000001, 93 WICBitmapPaletteTypeFixedBW = 0x00000002, 94 WICBitmapPaletteTypeFixedHalftone8 = 0x00000003, 95 WICBitmapPaletteTypeFixedHalftone27 = 0x00000004, 96 WICBitmapPaletteTypeFixedHalftone64 = 0x00000005, 97 WICBitmapPaletteTypeFixedHalftone125 = 0x00000006, 98 WICBitmapPaletteTypeFixedHalftone216 = 0x00000007, 99 WICBitmapPaletteTypeFixedWebPalette = WICBitmapPaletteTypeFixedHalftone216, 100 WICBitmapPaletteTypeFixedHalftone252 = 0x00000008, 101 WICBitmapPaletteTypeFixedHalftone256 = 0x00000009, 102 WICBitmapPaletteTypeFixedGray4 = 0x0000000A, 103 WICBitmapPaletteTypeFixedGray16 = 0x0000000B, 104 WICBitmapPaletteTypeFixedGray256 = 0x0000000C, 105 WICBITMAPPALETTETYPE_FORCE_DWORD = CODEC_FORCE_DWORD 106} WICBitmapPaletteType; 107 108typedef enum WICBitmapTransformOptions { 109 WICBitmapTransformRotate0 = 0x00000000, 110 WICBitmapTransformRotate90 = 0x00000001, 111 WICBitmapTransformRotate180 = 0x00000002, 112 WICBitmapTransformRotate270 = 0x00000003, 113 WICBitmapTransformFlipHorizontal = 0x00000008, 114 WICBitmapTransformFlipVertical = 0x00000010, 115 WICBITMAPTRANSFORMOPTIONS_FORCE_DWORD = CODEC_FORCE_DWORD 116} WICBitmapTransformOptions; 117 118typedef enum WICColorContextType { 119 WICColorContextUninitialized = 0x00000000, 120 WICColorContextProfile = 0x00000001, 121 WICColorContextExifColorSpace = 0x00000002 122} WICColorContextType; 123 124typedef enum WICComponentType { 125 WICDecoder = 0x00000001, 126 WICEncoder = 0x00000002, 127 WICPixelFormatConverter = 0x00000004, 128 WICMetadataReader = 0x00000008, 129 WICMetadataWriter = 0x00000010, 130 WICPixelFormat = 0x00000020, 131 WICCOMPONENTTYPE_FORCE_DWORD = CODEC_FORCE_DWORD 132} WICComponentType; 133 134typedef enum WICComponentSigning { 135 WICComponentSigned = 0x00000001, 136 WICComponentUnsigned = 0x00000002, 137 WICComponentSafe = 0x00000004, 138 WICComponentDisabled = 0x80000000 139} WICComponentSigning; 140 141typedef enum WICComponentEnumerateOptions { 142 WICComponentEnumerateDefault = 0x00000000, 143 WICComponentEnumerateRefresh = 0x00000001, 144 WICComponentEnumerateBuiltInOnly = 0x20000000, 145 WICComponentEnumerateUnsigned = 0x40000000, 146 WICComponentEnumerateDisabled = 0x80000000 147} WICComponentEnumerateOptions; 148 149typedef enum WICJpegYCrCbSubsamplingOption { 150 WICJpegYCrCbSubsamplingDefault = 0x00000000, 151 WICJpegYCrCbSubsampling420 = 0x00000001, 152 WICJpegYCrCbSubsampling422 = 0x00000002, 153 WICJpegYCrCbSubsampling444 = 0x00000003, 154 WICJpegYCrCbSubsampling440 = 0x00000004 155} WICJpegYCrCbSubsamplingOption; 156 157typedef enum WICPixelFormatNumericRepresentation { 158 WICPixelFormatNumericRepresentationUnspecified = 0x00000000, 159 WICPixelFormatNumericRepresentationIndexed = 0x00000001, 160 WICPixelFormatNumericRepresentationUnsignedInteger = 0x00000002, 161 WICPixelFormatNumericRepresentationSignedInteger = 0x00000003, 162 WICPixelFormatNumericRepresentationFixed = 0x00000004, 163 WICPixelFormatNumericRepresentationFloat = 0x00000005, 164 WICPIXELFORMATNUMERICREPRESENTATION_FORCE_DWORD = CODEC_FORCE_DWORD 165} WICPixelFormatNumericRepresentation; 166 167typedef enum WICTiffCompressionOption { 168 WICTiffCompressionDontCare = 0x00000000, 169 WICTiffCompressionNone = 0x00000001, 170 WICTiffCompressionCCITT3 = 0x00000002, 171 WICTiffCompressionCCITT4 = 0x00000003, 172 WICTiffCompressionLZW = 0x00000004, 173 WICTiffCompressionRLE = 0x00000005, 174 WICTiffCompressionZIP = 0x00000006, 175 WICTiffCompressionLZWHDifferencing = 0x00000007, 176 WICTIFFCOMPRESSIONOPTION_FORCE_DWORD = CODEC_FORCE_DWORD 177} WICTiffCompressionOption; 178 179typedef enum WICPngFilterOption { 180 WICPngFilterUnspecified = 0, 181 WICPngFilterNone = 1, 182 WICPngFilterSub = 2, 183 WICPngFilterUp = 3, 184 WICPngFilterAverage = 4, 185 WICPngFilterPaeth = 5, 186 WICPngFilterAdaptive = 6, 187 WICPNFFILTEROPTION_FORCE_DWORD = CODEC_FORCE_DWORD 188} WICPngFilterOption; 189 190typedef enum WICSectionAccessLevel { 191 WICSectionAccessLevelRead = 0x00000001, 192 WICSectionAccessLevelReadWrite = 0x00000003, 193 WICSectionAccessLevel_FORCE_DWORD = CODEC_FORCE_DWORD 194} WICSectionAccessLevel; 195 196typedef GUID WICPixelFormatGUID; 197typedef REFGUID REFWICPixelFormatGUID; 198 199cpp_quote("DEFINE_GUID(GUID_WICPixelFormatDontCare, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x00);") 200cpp_quote("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare") 201 202cpp_quote("DEFINE_GUID(GUID_WICPixelFormat1bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x01);") 203cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x02);") 204cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x03);") 205cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x04);") 206 207cpp_quote("DEFINE_GUID(GUID_WICPixelFormatBlackWhite, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x05);") 208cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x06);") 209cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x07);") 210cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x08);") 211cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0b);") 212 213cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR555, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x09);") 214cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR565, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0a);") 215cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGRA5551, 0x05ec7c2b,0xf1e6,0x4961,0xad,0x46,0xe1,0xcc,0x81,0x0a,0x87,0xd2);") 216cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0c);") 217cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0d);") 218cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0e);") 219cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0f);") 220cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x10);") 221cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGB, 0xd98c6b95,0x3efe,0x47d6,0xbb,0x25,0xeb,0x17,0x48,0xab,0x0c,0xf1);") 222cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppRGBA, 0xf5c7ad2d,0x6a8d,0x43dd,0xa7,0xa8,0xa2,0x99,0x35,0x26,0x1a,0xe9);") 223cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPRGBA, 0x3cc4a650,0xa527,0x4d37,0xa9,0x16,0x31,0x42,0xc7,0xeb,0xed,0xba);") 224cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppGrayFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x11);") 225 226cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x15);") 227cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x16);") 228cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppPRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x17);") 229 230cpp_quote("DEFINE_GUID(GUID_WICPixelFormat128bppRGBAFloat, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x19);") 231 232cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1c);") 233cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1f);") 234 235typedef struct WICRect { 236 INT X; 237 INT Y; 238 INT Width; 239 INT Height; 240} WICRect; 241 242typedef struct WICBitmapPattern { 243 ULARGE_INTEGER Position; 244 ULONG Length; 245 BYTE *Pattern; 246 BYTE *Mask; 247 BOOL EndOfStream; 248} WICBitmapPattern; 249 250typedef UINT32 WICColor; 251 252interface IWICPalette; 253 254[ 255 object, 256 uuid(3c613a02-34b2-44ea-9a7c-45aea9c6fd6d) 257] 258interface IWICColorContext : IUnknown 259{ 260 HRESULT InitializeFromFilename( 261 [in] LPCWSTR wzFilename); 262 263 HRESULT InitializeFromMemory( 264 [in, size_is(cbBufferSize)] const BYTE *pbBuffer, 265 [in] UINT cbBufferSize); 266 267 HRESULT InitializeFromExifColorSpace( 268 [in] UINT value); 269 270 HRESULT GetType( 271 [out] WICColorContextType *pType); 272 273 HRESULT GetProfileBytes( 274 [in] UINT cbBuffer, 275 [in, out, unique, size_is(cbBuffer)] BYTE *pbBuffer, 276 [out] UINT *pcbActual); 277 278 HRESULT GetExifColorSpace( 279 [out] UINT *pValue); 280} 281 282[ 283 object, 284 uuid(00000120-a8f2-4877-ba0a-fd2b6645fb94) 285] 286interface IWICBitmapSource : IUnknown 287{ 288 HRESULT GetSize( 289 [out] UINT *puiWidth, 290 [out] UINT *puiHeight); 291 292 HRESULT GetPixelFormat( 293 [out] WICPixelFormatGUID *pPixelFormat); 294 295 HRESULT GetResolution( 296 [out] double *pDpiX, 297 [out] double *pDpiY); 298 299 HRESULT CopyPalette( 300 [in] IWICPalette *pIPalette); 301 302 HRESULT CopyPixels( 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] 313interface IWICBitmapLock : IUnknown 314{ 315 HRESULT GetSize( 316 [out] UINT *pWidth, 317 [out] UINT *pHeight); 318 319 HRESULT GetStride( 320 [out] UINT *pcbStride); 321 322 HRESULT GetDataPointer( 323 [out] UINT *pcbBufferSize, 324 [out, size_is(,*pcbBufferSize)] BYTE **ppbData); 325 326 HRESULT GetPixelFormat( 327 [out] WICPixelFormatGUID *pPixelFormat); 328} 329 330[ 331 object, 332 uuid(5009834f-2d6a-41ce-9e1b-17c5aff7a782) 333] 334interface IWICBitmapFlipRotator : IWICBitmapSource 335{ 336 HRESULT Initialize( 337 [in] IWICBitmapSource *pISource, 338 [in] WICBitmapTransformOptions options); 339} 340 341[ 342 object, 343 uuid(00000121-a8f2-4877-ba0a-fd2b6645fb94) 344] 345interface IWICBitmap : IWICBitmapSource 346{ 347 HRESULT Lock( 348 [in] const WICRect *prcLock, 349 [in] DWORD flags, 350 [out] IWICBitmapLock **ppILock); 351 352 HRESULT SetPalette( 353 [in] IWICPalette *pIPalette); 354 355 HRESULT SetResolution( 356 [in] double dpiX, 357 [in] double dpiY); 358} 359 360[ 361 object, 362 uuid(00000040-a8f2-4877-ba0a-fd2b6645fb94) 363] 364interface IWICPalette : IUnknown 365{ 366 HRESULT InitializePredefined( 367 [in] WICBitmapPaletteType ePaletteType, 368 [in] BOOL fAddTransparentColor); 369 370 HRESULT InitializeCustom( 371 [in, size_is(colorCount)] WICColor *pColors, 372 [in] UINT colorCount); 373 374 HRESULT InitializeFromBitmap( 375 [in] IWICBitmapSource *pISurface, 376 [in] UINT colorCount, 377 [in] BOOL fAddTransparentColor); 378 379 HRESULT InitializeFromPalette( 380 [in] IWICPalette *pIPalette); 381 382 HRESULT GetType( 383 [out] WICBitmapPaletteType *pePaletteType); 384 385 HRESULT GetColorCount( 386 [out] UINT *pcCount); 387 388 HRESULT GetColors( 389 [in] UINT colorCount, 390 [out, size_is(colorCount)] WICColor *pColors, 391 [out] UINT *pcActualColors); 392 393 HRESULT IsBlackWhite( 394 [out] BOOL *pfIsBlackWhite); 395 396 HRESULT IsGrayscale( 397 [out] BOOL *pfIsGrayscale); 398 399 HRESULT HasAlpha( 400 [out] BOOL *pfHasAlpha); 401} 402 403[ 404 object, 405 uuid(23bc3f0a-698b-4357-886b-f24d50671334) 406] 407interface IWICComponentInfo : IUnknown 408{ 409 HRESULT GetComponentType( 410 [out] WICComponentType *pType); 411 412 HRESULT GetCLSID( 413 [out] CLSID *pclsid); 414 415 HRESULT GetSigningStatus( 416 [out] DWORD *pStatus); 417 418 HRESULT GetAuthor( 419 [in] UINT cchAuthor, 420 [in, out, unique, size_is(cchAuthor)] WCHAR *wzAuthor, 421 [out] UINT *pcchActual); 422 423 HRESULT GetVendorGUID( 424 [out] GUID *pguidVendor); 425 426 HRESULT GetVersion( 427 [in] UINT cchVersion, 428 [in, out, unique, size_is(cchVersion)] WCHAR *wzVersion, 429 [out] UINT *pcchActual); 430 431 HRESULT GetSpecVersion( 432 [in] UINT cchSpecVersion, 433 [in, out, unique, size_is(cchSpecVersion)] WCHAR *wzSpecVersion, 434 [out] UINT *pcchActual); 435 436 HRESULT GetFriendlyName( 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] 446interface IWICMetadataQueryReader : IUnknown 447{ 448 HRESULT GetContainerFormat( 449 [out] GUID *pguidContainerFormat); 450 451 HRESULT GetLocation( 452 [in] UINT cchMaxLength, 453 [in, out, unique, size_is(cchMaxLength)] WCHAR *wzNamespace, 454 [out] UINT *pcchActualLength); 455 456 HRESULT GetMetadataByName( 457 [in] LPCWSTR wzName, 458 [in, out, unique] PROPVARIANT *pvarValue); 459 460 HRESULT GetEnumerator( 461 [out] IEnumString **ppIEnumString); 462} 463 464[ 465 object, 466 uuid(a721791a-0def-4d06-bd91-2118bf1db10b) 467] 468interface IWICMetadataQueryWriter : IWICMetadataQueryReader 469{ 470 HRESULT SetMetadataByName( 471 [in] LPCWSTR wzName, 472 [in] const PROPVARIANT *pvarValue); 473 474 HRESULT RemoveMetadataByName( 475 [in] LPCWSTR wzName); 476} 477 478[ 479 object, 480 uuid(3b16811b-6a43-4ec9-a813-3d930c13b940) 481] 482interface IWICBitmapFrameDecode : IWICBitmapSource 483{ 484 HRESULT GetMetadataQueryReader( 485 [out] IWICMetadataQueryReader **ppIMetadataQueryReader); 486 487 HRESULT GetColorContexts( 488 [in] UINT cCount, 489 [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts, 490 [out] UINT *pcActualCount); 491 492 HRESULT GetThumbnail( 493 [out] IWICBitmapSource **ppIThumbnail); 494} 495 496[ 497 object, 498 uuid(e8eda601-3d48-431a-ab44-69059be88bbe) 499] 500interface IWICPixelFormatInfo : IWICComponentInfo 501{ 502 HRESULT GetFormatGUID( 503 [out] GUID* pFormat); 504 505 HRESULT GetColorContext( 506 [out] IWICColorContext **ppIColorContext); 507 508 HRESULT GetBitsPerPixel( 509 [out] UINT *puiBitsPerPixel); 510 511 HRESULT GetChannelCount( 512 [out] UINT *puiChannelCount); 513 514 HRESULT GetChannelMask( 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] 525interface IWICPixelFormatInfo2 : IWICPixelFormatInfo 526{ 527 HRESULT SupportsTransparency( 528 [out] BOOL *pfSupportsTransparency); 529 530 HRESULT GetNumericRepresentation( 531 [out] WICPixelFormatNumericRepresentation *pNumericRepresentation); 532} 533 534[ 535 object, 536 uuid(e87a44c4-b76e-4c47-8b09-298eb12a2714) 537] 538interface IWICBitmapCodecInfo : IWICComponentInfo 539{ 540 HRESULT GetContainerFormat( 541 [out] GUID *pguidContainerFormat); 542 543 HRESULT GetPixelFormats( 544 [in] UINT cFormats, 545 [in, out, unique, size_is(cFormats)] GUID *pguidPixelFormats, 546 [out] UINT *pcActual); 547 548 HRESULT GetColorManagementVersion( 549 [in] UINT cchColorManagementVersion, 550 [in, out, unique, size_is(cchColorManagementVersion)] WCHAR *wzColorManagementVersion, 551 [out] UINT *pcchActual); 552 553 HRESULT GetDeviceManufacturer( 554 [in] UINT cchDeviceManufacturer, 555 [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer, 556 [out] UINT *pcchActual); 557 558 HRESULT GetDeviceModels( 559 [in] UINT cchDeviceModels, 560 [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels, 561 [out] UINT *pcchActual); 562 563 HRESULT GetMimeTypes( 564 [in] UINT cchMimeTypes, 565 [in, out, unique, size_is(cchMimeTypes)] WCHAR *wzMimeTypes, 566 [out] UINT *pcchActual); 567 568 HRESULT GetFileExtensions( 569 [in] UINT cchFileExtensions, 570 [in, out, unique, size_is(cchFileExtensions)] WCHAR *wzFileExtensions, 571 [out] UINT *pcchActual); 572 573 HRESULT DoesSupportAnimation( 574 [out] BOOL *pfSupportAnimation); 575 576 HRESULT DoesSupportChromaKey( 577 [out] BOOL *pfSupportChromaKey); 578 579 HRESULT DoesSupportLossless( 580 [out] BOOL *pfSupportLossless); 581 582 HRESULT DoesSupportMultiframe( 583 [out] BOOL *pfSupportMultiframe); 584 585 HRESULT MatchesMimeType( 586 [in] LPCWSTR wzMimeType, 587 [out] BOOL *pfMatches); 588} 589 590interface IWICBitmapDecoder; 591 592[ 593 object, 594 uuid(d8cd007f-d08f-4191-9bfc-236ea7f0e4b5) 595] 596interface IWICBitmapDecoderInfo : IWICBitmapCodecInfo 597{ 598 [local] 599 HRESULT GetPatterns( 600 [in] UINT cbSizePatterns, 601 [in, out, unique] WICBitmapPattern *pPatterns, 602 [in, out, unique] UINT *pcPatterns, 603 [in, out, unique] UINT *pcbPatternsActual); 604 605 HRESULT MatchesPattern( 606 [in] IStream *pIStream, 607 [out] BOOL *pfMatches); 608 609 HRESULT CreateInstance( 610 [out] IWICBitmapDecoder **ppIBitmapDecoder); 611} 612 613[ 614 object, 615 uuid(9edde9e7-8dee-47ea-99df-e6faf2ed44bf) 616] 617interface IWICBitmapDecoder : IUnknown 618{ 619 HRESULT QueryCapability( 620 [in] IStream *pIStream, 621 [out] DWORD *pdwCapability); 622 623 HRESULT Initialize( 624 [in] IStream *pIStream, 625 [in] WICDecodeOptions cacheOptions); 626 627 HRESULT GetContainerFormat( 628 [out] GUID *pguidContainerFormat); 629 630 HRESULT GetDecoderInfo( 631 [out] IWICBitmapDecoderInfo **ppIDecoderInfo); 632 633 HRESULT CopyPalette( 634 [in] IWICPalette *pIPalette); 635 636 HRESULT GetMetadataQueryReader( 637 [out] IWICMetadataQueryReader **ppIMetadataQueryReader); 638 639 HRESULT GetPreview( 640 [out] IWICBitmapSource **ppIBitmapSource); 641 642 HRESULT GetColorContexts( 643 [in] UINT cCount, 644 [in, out, unique, size_is(cCount)] IWICColorContext **ppIColorContexts, 645 [out] UINT *pcActualCount); 646 647 HRESULT GetThumbnail( 648 [out] IWICBitmapSource **ppIThumbnail); 649 650 HRESULT GetFrameCount( 651 [out] UINT *pCount); 652 653 HRESULT GetFrame( 654 [in] UINT index, 655 [out] IWICBitmapFrameDecode **ppIBitmapFrame); 656} 657 658[ 659 object, 660 uuid(00000105-a8f2-4877-ba0a-fd2b6645fb94) 661] 662interface IWICBitmapFrameEncode : IUnknown 663{ 664 HRESULT Initialize( 665 [in, unique] IPropertyBag2 *pIEncoderOptions); 666 667 HRESULT SetSize( 668 [in] UINT uiWidth, 669 [in] UINT uiHeight); 670 671 HRESULT SetResolution( 672 [in] double dpiX, 673 [in] double dpiY); 674 675 HRESULT SetPixelFormat( 676 [in, out] WICPixelFormatGUID *pPixelFormat); 677 678 HRESULT SetColorContexts( 679 [in] UINT cCount, 680 [in, size_is(cCount)] IWICColorContext **ppIColorContext); 681 682 HRESULT SetPalette( 683 [in] IWICPalette *pIPalette); 684 685 HRESULT SetThumbnail( 686 [in] IWICBitmapSource *pIThumbnail); 687 688 HRESULT WritePixels( 689 [in] UINT lineCount, 690 [in] UINT cbStride, 691 [in] UINT cbBufferSize, 692 [in, size_is(cbBufferSize)] BYTE *pbPixels); 693 694 HRESULT WriteSource( 695 [in] IWICBitmapSource *pIBitmapSource, 696 [in, unique] WICRect *prc); 697 698 HRESULT Commit(); 699 700 HRESULT GetMetadataQueryWriter( 701 IWICMetadataQueryWriter **ppIMetadataQueryWriter); 702} 703 704interface IWICBitmapEncoder; 705 706[ 707 object, 708 uuid(94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb) 709] 710interface IWICBitmapEncoderInfo : IWICBitmapCodecInfo 711{ 712 HRESULT CreateInstance( 713 [out] IWICBitmapEncoder **ppIBitmapEncoder); 714} 715 716[ 717 object, 718 uuid(00000103-a8f2-4877-ba0a-fd2b6645fb94) 719] 720interface IWICBitmapEncoder : IUnknown 721{ 722 HRESULT Initialize( 723 [in] IStream *pIStream, 724 [in] WICBitmapEncoderCacheOption cacheOption); 725 726 HRESULT GetContainerFormat( 727 [out] GUID *pguidContainerFormat); 728 729 HRESULT GetEncoderInfo( 730 [out] IWICBitmapEncoderInfo **ppIEncoderInfo); 731 732 HRESULT SetColorContexts( 733 [in] UINT cCount, 734 [in, size_is(cCount)] IWICColorContext **ppIColorContext); 735 736 HRESULT SetPalette( 737 [in] IWICPalette *pIPalette); 738 739 HRESULT SetThumbnail( 740 [in] IWICBitmapSource *pIThumbnail); 741 742 HRESULT SetPreview( 743 [in] IWICBitmapSource *pIPreview); 744 745 HRESULT CreateNewFrame( 746 [out] IWICBitmapFrameEncode **ppIFrameEncode, 747 [in, out, unique] IPropertyBag2 **ppIEncoderOptions); 748 749 HRESULT Commit(); 750 751 HRESULT GetMetadataQueryWriter( 752 [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter); 753} 754 755[ 756 object, 757 uuid(00000301-a8f2-4877-ba0a-fd2b6645fb94) 758] 759interface IWICFormatConverter : IWICBitmapSource 760{ 761 HRESULT Initialize( 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 769 HRESULT CanConvert( 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] 779interface IWICFormatConverterInfo : IWICComponentInfo 780{ 781 HRESULT GetPixelFormats( 782 [in] UINT cFormats, 783 [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs, 784 [out] UINT *pcActual); 785 786 HRESULT CreateInstance( 787 [out] IWICFormatConverter **ppIConverter); 788} 789 790[ 791 object, 792 uuid(135ff860-22b7-4ddf-b0f6-218f4f299a43) 793] 794interface IWICStream : IStream 795{ 796 HRESULT InitializeFromIStream( 797 [in] IStream *pIStream); 798 799 HRESULT InitializeFromFilename( 800 [in] LPCWSTR wzFileName, 801 [in] DWORD dwAccessMode); 802 803 HRESULT InitializeFromMemory( 804 [in, size_is(cbBufferSize)] BYTE *pbBuffer, 805 [in] DWORD cbBufferSize); 806 807 HRESULT InitializeFromIStreamRegion( 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] 817interface IWICBitmapScaler : IWICBitmapSource 818{ 819 HRESULT Initialize( 820 [in] IWICBitmapSource *pISource, 821 [in] UINT uiWidth, 822 [in] UINT uiHeight, 823 [in] WICBitmapInterpolationMode mode); 824} 825 826[ 827 object, 828 uuid(e4fbcf03-223d-4e81-9333-d635556dd1b5) 829] 830interface IWICBitmapClipper : IWICBitmapSource 831{ 832 HRESULT Initialize( 833 [in] IWICBitmapSource *pISource, 834 [in] const WICRect *prc); 835} 836 837[ 838 object, 839 uuid(b66f034f-d0e2-40ab-b436-6de39e321a94) 840] 841interface IWICColorTransform : IWICBitmapSource 842{ 843 HRESULT Initialize( 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] 854interface IWICFastMetadataEncoder : IUnknown 855{ 856 HRESULT Commit(); 857 858 HRESULT GetMetadataQueryWriter( 859 [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter); 860} 861 862cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);") 863cpp_quote("DEFINE_GUID(CLSID_WICImagingFactory1, 0xcacaf262,0x9370,0x4615,0xa1,0x3b,0x9f,0x55,0x39,0xda,0x4c,0x0a);") 864cpp_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] 870interface IWICImagingFactory : IUnknown 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 891 HRESULT CreateComponentInfo( 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 905 HRESULT CreatePalette( 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 929 HRESULT CreateBitmap( 930 [in] UINT uiWidth, 931 [in] UINT uiHeight, 932 [in] REFWICPixelFormatGUID pixelFormat, 933 [in] WICBitmapCreateCacheOption option, 934 [out] IWICBitmap **ppIBitmap); 935 936 HRESULT CreateBitmapFromSource( 937 [in] IWICBitmapSource *piBitmapSource, 938 [in] WICBitmapCreateCacheOption option, 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, 961 [in] WICBitmapAlphaChannelOption options, 962 [out] IWICBitmap **ppIBitmap); 963 964 HRESULT CreateBitmapFromHICON( 965 [in] HICON hIcon, 966 [out] IWICBitmap **ppIBitmap); 967 968 HRESULT CreateComponentEnumerator( 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] 997interface IWICImagingFactory2 : IWICImagingFactory 998{ 999} 1000 1001[ 1002 local, 1003 object, 1004 uuid(dc2bb46d-3f07-481e-8625-220c4aedbb33) 1005] 1006interface IWICEnumMetadataItem : IUnknown 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 1024cpp_quote("HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst);") 1025cpp_quote("HRESULT WINAPI WICCreateBitmapFromSection(UINT width, UINT height, REFWICPixelFormatGUID format, HANDLE section, UINT stride, UINT offset, IWICBitmap **bitmap);") 1026cpp_quote("HRESULT WINAPI WICCreateBitmapFromSectionEx(UINT width, UINT height, REFWICPixelFormatGUID format, HANDLE section, UINT stride, UINT offset, WICSectionAccessLevel access, IWICBitmap **bitmap);") 1027 1028cpp_quote("HRESULT WINAPI WICMapGuidToShortName(REFGUID,UINT,WCHAR *,UINT *);") 1029cpp_quote("HRESULT WINAPI WICMapShortNameToGuid(PCWSTR,GUID *);") 1030cpp_quote("HRESULT WINAPI WICMapSchemaToName(REFGUID,LPWSTR,UINT,WCHAR *,UINT *);") 1031 1032cpp_quote("DEFINE_GUID(CLSID_WICBmpDecoder, 0x6b462062,0x7cbf,0x400d,0x9f,0xdb,0x81,0x3d,0xd1,0x0f,0x27,0x78);") 1033cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder, 0x389ea17b,0x5078,0x4cde,0xb6,0xef,0x25,0xc1,0x51,0x75,0xc7,0x51);") 1034cpp_quote("DEFINE_GUID(CLSID_WICIcoDecoder, 0xc61bfcdf,0x2e0f,0x4aad,0xa8,0xd7,0xe0,0x6b,0xaf,0xeb,0xcd,0xfe);") 1035cpp_quote("DEFINE_GUID(CLSID_WICJpegDecoder, 0x9456a480,0xe88b,0x43ea,0x9e,0x73,0x0b,0x2d,0x9b,0x71,0xb1,0xca);") 1036cpp_quote("DEFINE_GUID(CLSID_WICGifDecoder, 0x381dda3c,0x9ce9,0x4834,0xa2,0x3e,0x1f,0x98,0xf8,0xfc,0x52,0xbe);") 1037cpp_quote("DEFINE_GUID(CLSID_WICTiffDecoder, 0xb54e85d9,0xfe23,0x499f,0x8b,0x88,0x6a,0xce,0xa7,0x13,0x75,0x2b);") 1038cpp_quote("DEFINE_GUID(CLSID_WICWmpDecoder, 0xa26cec36,0x234c,0x4950,0xae,0x16,0xe3,0x4a,0xac,0xe7,0x1d,0x0d);") 1039 1040cpp_quote("DEFINE_GUID(CLSID_WICBmpEncoder, 0x69be8bb4,0xd66d,0x47c8,0x86,0x5a,0xed,0x15,0x89,0x43,0x37,0x82);") 1041cpp_quote("DEFINE_GUID(CLSID_WICPngEncoder, 0x27949969,0x876a,0x41d7,0x94,0x47,0x56,0x8f,0x6a,0x35,0xa4,0xdc);") 1042cpp_quote("DEFINE_GUID(CLSID_WICJpegEncoder, 0x1a34f5c1,0x4a5a,0x46dc,0xb6,0x44,0x1f,0x45,0x67,0xe7,0xa6,0x76);") 1043cpp_quote("DEFINE_GUID(CLSID_WICGifEncoder, 0x114f5598,0x0b22,0x40a0,0x86,0xa1,0xc8,0x3e,0xa4,0x95,0xad,0xbd);") 1044cpp_quote("DEFINE_GUID(CLSID_WICTiffEncoder, 0x0131be10,0x2001,0x4c5f,0xa9,0xb0,0xcc,0x88,0xfa,0xb6,0x4c,0xe8);") 1045cpp_quote("DEFINE_GUID(CLSID_WICWmpEncoder, 0xac4ce3cb,0xe1c1,0x44cd,0x82,0x15,0x5a,0x16,0x65,0x50,0x9e,0xc2);") 1046 1047cpp_quote("DEFINE_GUID(CLSID_WICDefaultFormatConverter, 0x1a3f11dc,0xb514,0x4b17,0x8c,0x5f,0x21,0x54,0x51,0x38,0x52,0xf1);") 1048 1049cpp_quote("DEFINE_GUID(GUID_ContainerFormatBmp, 0x0af1d87e,0xfcfe,0x4188,0xbd,0xeb,0xa7,0x90,0x64,0x71,0xcb,0xe3);") 1050cpp_quote("DEFINE_GUID(GUID_ContainerFormatPng, 0x1b7cfaf4,0x713f,0x473c,0xbb,0xcd,0x61,0x37,0x42,0x5f,0xae,0xaf);") 1051cpp_quote("DEFINE_GUID(GUID_ContainerFormatIco, 0xa3a860c4,0x338f,0x4c17,0x91,0x9a,0xfb,0xa4,0xb5,0x62,0x8f,0x21);") 1052cpp_quote("DEFINE_GUID(GUID_ContainerFormatJpeg, 0x19e4a5aa,0x5662,0x4fc5,0xa0,0xc0,0x17,0x58,0x02,0x8e,0x10,0x57);") 1053cpp_quote("DEFINE_GUID(GUID_ContainerFormatTiff, 0x163bcc30,0xe2e9,0x4f0b,0x96,0x1d,0xa3,0xe9,0xfd,0xb7,0x88,0xa3);") 1054cpp_quote("DEFINE_GUID(GUID_ContainerFormatGif, 0x1f8a5601,0x7d4d,0x4cbd,0x9c,0x82,0x1b,0xc8,0xd4,0xee,0xb9,0xa5);") 1055cpp_quote("DEFINE_GUID(GUID_ContainerFormatWmp, 0x57a37caa,0x367a,0x4540,0x91,0x6b,0xf1,0x83,0xc5,0x09,0x3a,0x4b);") 1056 1057cpp_quote("DEFINE_GUID(GUID_VendorMicrosoft, 0xf0e749ca,0xedef,0x4589,0xa7,0x3a,0xee,0x0e,0x62,0x6a,0x2a,0x2b);") 1058 1059cpp_quote("DEFINE_GUID(CLSID_WICImagingCategories, 0xfae3d380,0xfea4,0x4623,0x8c,0x75,0xc6,0xb6,0x11,0x10,0xb6,0x81);") 1060cpp_quote("DEFINE_GUID(CATID_WICBitmapDecoders, 0x7ed96837,0x96f0,0x4812,0xb2,0x11,0xf1,0x3c,0x24,0x11,0x7e,0xd3);") 1061cpp_quote("DEFINE_GUID(CATID_WICBitmapEncoders, 0xac757296,0x3522,0x4e11,0x98,0x62,0xc1,0x7b,0xe5,0xa1,0x76,0x7e);") 1062cpp_quote("DEFINE_GUID(CATID_WICFormatConverters, 0x7835eae8,0xbf14,0x49d1,0x93,0xce,0x53,0x3a,0x40,0x7b,0x22,0x48);") 1063cpp_quote("DEFINE_GUID(CATID_WICMetadataReader, 0x05af94d8,0x7174,0x4cd2,0xbe,0x4a,0x41,0x24,0xb8,0x0e,0xe4,0xb8);") 1064cpp_quote("DEFINE_GUID(CATID_WICPixelFormats, 0x2b46e70f,0xcda7,0x473e,0x89,0xf6,0xdc,0x96,0x30,0xa2,0x39,0x0b);") 1065