From 502ccd3122aa3d76fb4f16cb24794aad8717e880 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Sat, 5 Jun 2010 13:04:52 -0500 Subject: [PATCH] include: Add definitions for IWICColorContext. --- include/wincodec.idl | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/include/wincodec.idl b/include/wincodec.idl index 9d3fee1..97fd4ac 100644 --- a/include/wincodec.idl +++ b/include/wincodec.idl @@ -108,6 +108,12 @@ typedef enum WICBitmapTransformOptions { WICBITMAPTRANSFORMOPTIONS_FORCE_DWORD = CODEC_FORCE_DWORD } WICBitmapTransformOptions; +typedef enum WICColorContextType { + WICColorContextUninitialized = 0x00000000, + WICColorContextProfile = 0x00000001, + WICColorContextExifColorSpace = 0x00000002 +} WICColorContextType; + typedef enum WICComponentType { WICDecoder = 0x00000001, WICEncoder = 0x00000002, @@ -188,7 +194,6 @@ cpp_quote("#define WINCODEC_ERR_UNSUPPORTEDOPERATION 0x88982f81") cpp_quote("#define WINCODEC_ERR_INSUFFICIENTBUFFER 0x88982f8c") interface IWICPalette; -interface IWICColorContext; interface IWICColorTransform; interface IWICFastMetadataEncoder; interface IWICMetadataQueryReader; @@ -196,6 +201,34 @@ interface IWICMetadataQueryWriter; [ object, + uuid(3c613a02-34b2-44ea-9a7c-45aea9c6fd6d) +] +interface IWICColorContext : IUnknown +{ + HRESULT InitializeFromFilename( + [in] LPCWSTR wzFilename); + + HRESULT InitializeFromMemory( + [in, size_is(cbBufferSize)] const BYTE *pbBuffer, + [in] UINT cbBufferSize); + + HRESULT InitializeFromExifColorSpace( + [in] UINT value); + + HRESULT GetType( + [out] WICColorContextType *pType); + + HRESULT GetProfileBytes( + [in] UINT cbBuffer, + [in, out, unique, size_is(cbBuffer)] BYTE *pbBuffer, + [out] UINT *pcbActual); + + HRESULT GetExifColorSpace( + [out] UINT *pValue); +} + +[ + object, uuid(00000120-a8f2-4877-ba0a-fd2b6645fb94) ] interface IWICBitmapSource : IUnknown -- 1.6.3.3