2 * Copyright 2011 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
20 import
"wincodec.idl";
22 typedef enum WICPersistOptions
{
23 WICPersistOptionsDefault
= 0x00000000,
24 WICPersistOptionsLittleEndian
= 0x00000001,
25 WICPersistOptionsBigEndian
= 0x00000002,
26 WICPersistOptionsStrictFormat
= 0x00000004,
27 WICPersistOptionsNoCacheStream
= 0x00000008,
28 WICPersistOptionsMask
= 0x0000FFFF
31 typedef enum WICMetadataCreationOptions
{
32 WICMetadataCreationDefault
= 0x00000000,
33 WICMetadataCreationAllowUnknown
= WICMetadataCreationDefault
,
34 WICMetadataCreationFailUnknown
= 0x00010000,
35 WICMetadataCreationMask
= 0xFFFF0000
36 } WICMetadataCreationOptions
;
38 cpp_quote
("DEFINE_GUID(GUID_MetadataFormatUnknown, 0xa45e592f,0x9078,0x4a7c,0xad,0xb5,0x4e,0xdc,0x4f,0xd6,0x1b,0x1f);")
39 cpp_quote
("DEFINE_GUID(GUID_MetadataFormatChunktEXt, 0x568d8936,0xc0a9,0x4923,0x90,0x5d,0xdf,0x2b,0x38,0x23,0x8f,0xbc);")
41 cpp_quote
("DEFINE_GUID(CLSID_WICUnknownMetadataReader, 0x699745c2,0x5066,0x4b82,0xa8,0xe3,0xd4,0x04,0x78,0xdb,0xec,0x8c);")
42 cpp_quote
("DEFINE_GUID(CLSID_WICUnknownMetadataWriter, 0xa09cca86,0x27ba,0x4f39,0x90,0x53,0x12,0x1f,0xa4,0xdc,0x08,0xfc);")
43 cpp_quote
("DEFINE_GUID(CLSID_WICPngTextMetadataReader, 0x4b59afcc,0xb8c3,0x408a,0xb6,0x70,0x89,0xe5,0xfa,0xb6,0xfd,0xa7);")
44 cpp_quote
("DEFINE_GUID(CLSID_WICPngTextMetadataWriter, 0xb5ebafb9,0x253e,0x4a72,0xa7,0x44,0x07,0x62,0xd2,0x68,0x56,0x83);")
48 uuid(aba958bf
-c672
-44d1
-8d61
-ce6df2e682c2
)
50 interface IWICMetadataHandlerInfo
: IWICComponentInfo
52 HRESULT GetMetadataFormat
(
53 [out] GUID
*pguidMetadataFormat
);
55 HRESULT GetContainerFormats
(
56 [in] UINT cContainerFormats
,
57 [in, out, unique, size_is(cContainerFormats
)] GUID
*pguidContainerFormats
,
58 [out] UINT
*pcchActual
);
60 HRESULT GetDeviceManufacturer
(
61 [in] UINT cchDeviceManufacturer
,
62 [in, out, unique, size_is(cchDeviceManufacturer
)] WCHAR
*wzDeviceManufacturer
,
63 [out] UINT
*pcchActual
);
65 HRESULT GetDeviceModels
(
66 [in] UINT cchDeviceModels
,
67 [in, out, unique, size_is(cchDeviceModels
)] WCHAR
*wzDeviceModels
,
68 [out] UINT
*pcchActual
);
70 HRESULT DoesRequireFullStream
(
71 [out] BOOL
*pfRequiresFullStream
);
73 HRESULT DoesSupportPadding
(
74 [out] BOOL
*pfSupportsPadding
);
76 HRESULT DoesRequireFixedSize
(
77 [out] BOOL
*pfFixedSize
);
82 uuid(9204fe99
-d8fc
-4fd5
-a001
-9536b067a899
)
84 interface IWICMetadataReader
: IUnknown
86 HRESULT GetMetadataFormat
(
87 [out] GUID
*pguidMetadataFormat
);
89 HRESULT GetMetadataHandlerInfo
(
90 [out] IWICMetadataHandlerInfo
**ppIHandler
);
95 HRESULT GetValueByIndex
(
97 [in, out, unique] PROPVARIANT
*pvarSchema
,
98 [in, out, unique] PROPVARIANT
*pvarId
,
99 [in, out, unique] PROPVARIANT
*pvarValue
);
102 [in] const PROPVARIANT
*pvarSchema
,
103 [in] const PROPVARIANT
*pvarId
,
104 [in, out, unique] PROPVARIANT
*pvarValue
);
106 HRESULT GetEnumerator
(
107 [out] IWICEnumMetadataItem
**ppIEnumMetadata
);
112 uuid(f7836e16
-3be0
-470b
-86bb
-160d0aecd7de
)
114 interface IWICMetadataWriter
: IWICMetadataReader
117 [in, unique] const PROPVARIANT
*pvarSchema
,
118 [in] const PROPVARIANT
*pvarId
,
119 [in] const PROPVARIANT
*pvarValue
);
121 HRESULT SetValueByIndex
(
123 [in, unique] const PROPVARIANT
*pvarSchema
,
124 [in] const PROPVARIANT
*pvarId
,
125 [in] const PROPVARIANT
*pvarValue
);
128 [in, unique] const PROPVARIANT
*pvarSchema
,
129 [in] const PROPVARIANT
*pvarId
);
131 HRESULT RemoveValueByIndex
(
137 uuid(feaa2a8d
-b3f3
-43e4
-b25c
-d1de990a1ae1
)
139 interface IWICMetadataBlockReader
: IUnknown
141 HRESULT GetContainerFormat
(
142 [out] GUID
*pguidContainerFormat
);
145 [out] UINT
*pcCount
);
147 HRESULT GetReaderByIndex
(
149 [out] IWICMetadataReader
**ppIMetadataReader
);
151 HRESULT GetEnumerator
(
152 [out] IEnumUnknown
**ppIEnumMetadata
);
157 uuid(08fb9676
-b444
-41e8
-8dbe
-6a53a542bff1
)
159 interface IWICMetadataBlockWriter
: IWICMetadataBlockReader
161 HRESULT InitializeFromBlockReader
(
162 [in] IWICMetadataBlockReader
*pIMDBlockReader
);
164 HRESULT GetWriterByIndex
(
166 [out] IWICMetadataWriter
**ppIMetadataWriter
);
169 [in] IWICMetadataWriter
*pIMetadataWriter
);
171 HRESULT SetWriterByIndex
(
173 [in] IWICMetadataWriter
*pIMetadataWriter
);
175 HRESULT RemoveWriterByIndex
(
181 uuid(00675040-6908-45f8
-86a3
-49c7dfd6d9ad
)
183 interface IWICPersistStream
: IPersistStream
186 [in, unique] IStream
*pIStream
,
187 [in, unique] const GUID
*pguidPreferredVendor
,
188 [in] DWORD dwPersistOptions
);
191 [in] IStream
*pIStream
,
192 [in] DWORD dwPersistOptions
,
193 [in] BOOL fClearDirty
);
198 uuid(412d0c3a
-9650-44fa
-af5b
-dd2a06c8e8fb
)
200 interface IWICComponentFactory
: IWICImagingFactory
202 HRESULT CreateMetadataReader
(
203 [in] REFGUID guidMetadataFormat
,
204 [in, unique] const GUID
*pguidVendor
,
205 [in] DWORD dwOptions
,
206 [in] IStream
*pIStream
,
207 [out] IWICMetadataReader
**ppIReader
);
209 HRESULT CreateMetadataReaderFromContainer
(
210 [in] REFGUID guidMetadataFormat
,
211 [in, unique] const GUID
*pguidVendor
,
212 [in] DWORD dwOptions
,
213 [in] IStream
*pIStream
,
214 [out] IWICMetadataReader
**ppIReader
);
216 HRESULT CreateMetadataWriter
(
217 [in] REFGUID guidMetadataFormat
,
218 [in, unique] const GUID
*pguidVendor
,
219 [in] DWORD dwMetadataOptions
,
220 [out] IWICMetadataWriter
**ppIWriter
);
222 HRESULT CreateMetadataWriterFromReader
(
223 [in] IWICMetadataReader
*pIReader
,
224 [in, unique] const GUID
*pguidVendor
,
225 [out] IWICMetadataWriter
**ppIWriter
);
227 HRESULT CreateQueryReaderFromBlockReader
(
228 [in] IWICMetadataBlockReader
*pIBlockReader
,
229 [out] IWICMetadataQueryReader
**ppIQueryReader
);
231 HRESULT CreateQueryWriterFromBlockWriter
(
232 [in] IWICMetadataBlockWriter
*pIBlockWriter
,
233 [out] IWICMetadataQueryWriter
**ppIQueryWriter
);
235 HRESULT CreateEncoderPropertyBag
(
236 [in, unique, size_is(cCount
)] PROPBAG2
*ppropOptions
,
238 [out] IPropertyBag2
**ppIPropertyBag
);