VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/wincodecsdk.idl@ 53206

Last change on this file since 53206 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.1 KB
Line 
1/*
2 * Copyright 2011 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
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28import "wtypes.idl";
29import "wincodec.idl";
30
31typedef enum WICPersistOptions {
32 WICPersistOptionsDefault = 0x00000000,
33 WICPersistOptionsLittleEndian = 0x00000000,
34 WICPersistOptionsBigEndian = 0x00000001,
35 WICPersistOptionsStrictFormat = 0x00000002,
36 WICPersistOptionsNoCacheStream = 0x00000004,
37 WICPersistOptionPreferUTF8 = 0x00000008,
38 WICPersistOptionsMask = 0x0000FFFF
39} WICPersistOptions;
40
41typedef enum WICMetadataCreationOptions {
42 WICMetadataCreationDefault = 0x00000000,
43 WICMetadataCreationAllowUnknown = WICMetadataCreationDefault,
44 WICMetadataCreationFailUnknown = 0x00010000,
45 WICMetadataCreationMask = 0xFFFF0000
46} WICMetadataCreationOptions;
47
48cpp_quote("DEFINE_GUID(GUID_MetadataFormatUnknown, 0xa45e592f,0x9078,0x4a7c,0xad,0xb5,0x4e,0xdc,0x4f,0xd6,0x1b,0x1f);")
49cpp_quote("DEFINE_GUID(GUID_MetadataFormatChunktEXt, 0x568d8936,0xc0a9,0x4923,0x90,0x5d,0xdf,0x2b,0x38,0x23,0x8f,0xbc);")
50cpp_quote("DEFINE_GUID(GUID_MetadataFormatChunktIME, 0x6b00ae2d,0xe24b,0x460a,0x98,0xb6,0x87,0x8b,0xd0,0x30,0x72,0xfd);")
51cpp_quote("DEFINE_GUID(GUID_MetadataFormatIfd, 0x537396c6,0x2d8a,0x4bb6,0x9b,0xf8,0x2f,0x0a,0x8e,0x2a,0x3a,0xdf);")
52cpp_quote("DEFINE_GUID(GUID_MetadataFormatExif, 0x1c3c4f9d,0xb84a,0x467d,0x94,0x93,0x36,0xcf,0xbd,0x59,0xea,0x57);")
53cpp_quote("DEFINE_GUID(GUID_MetadataFormatXMP, 0xbb5acc38,0xf216,0x4cec,0xa6,0xc5,0x5f,0x6e,0x73,0x97,0x63,0xa9);")
54cpp_quote("DEFINE_GUID(GUID_MetadataFormatXMPStruct, 0x22383cf1,0xed17,0x4e2e,0xaf,0x17,0xd8,0x5b,0x8f,0x6b,0x30,0xd0);")
55cpp_quote("DEFINE_GUID(GUID_MetadataFormatIMD, 0xbd2bb086,0x4d52,0x48dd,0x96,0x77,0xdb,0x48,0x3e,0x85,0xae,0x8f);")
56cpp_quote("DEFINE_GUID(GUID_MetadataFormatLSD, 0xe256031e,0x6299,0x4929,0xb9,0x8d,0x5a,0xc8,0x84,0xaf,0xba,0x92);")
57cpp_quote("DEFINE_GUID(GUID_MetadataFormatGCE, 0x2a25cad8,0xdeeb,0x4c69,0xa7,0x88,0x0e,0xc2,0x26,0x6d,0xca,0xfd);")
58cpp_quote("DEFINE_GUID(GUID_MetadataFormatAPE, 0x2e043dc2,0xc967,0x4e05,0x87,0x5e,0x61,0x8b,0xf6,0x7e,0x85,0xc3);")
59cpp_quote("DEFINE_GUID(GUID_MetadataFormatGifComment, 0xc4b6e0e0,0xcfb4,0x4ad3,0xab,0x33,0x9a,0xad,0x23,0x55,0xa3,0x4a);")
60
61cpp_quote("DEFINE_GUID(CLSID_WICUnknownMetadataReader, 0x699745c2,0x5066,0x4b82,0xa8,0xe3,0xd4,0x04,0x78,0xdb,0xec,0x8c);")
62cpp_quote("DEFINE_GUID(CLSID_WICUnknownMetadataWriter, 0xa09cca86,0x27ba,0x4f39,0x90,0x53,0x12,0x1f,0xa4,0xdc,0x08,0xfc);")
63cpp_quote("DEFINE_GUID(CLSID_WICPngTextMetadataReader, 0x4b59afcc,0xb8c3,0x408a,0xb6,0x70,0x89,0xe5,0xfa,0xb6,0xfd,0xa7);")
64cpp_quote("DEFINE_GUID(CLSID_WICPngTextMetadataWriter, 0xb5ebafb9,0x253e,0x4a72,0xa7,0x44,0x07,0x62,0xd2,0x68,0x56,0x83);")
65cpp_quote("DEFINE_GUID(CLSID_WICIfdMetadataReader, 0x8f914656,0x9d0a,0x4eb2,0x90,0x19,0x0b,0xf9,0x6d,0x8a,0x9e,0xe6);")
66cpp_quote("DEFINE_GUID(CLSID_WICIfdMetadataWriter, 0xb1ebfc28,0xc9bd,0x47a2,0x8d,0x33,0xb9,0x48,0x76,0x97,0x77,0xa7);")
67cpp_quote("DEFINE_GUID(CLSID_WICExifMetadataReader, 0xd9403860,0x297f,0x4a49,0xbf,0x9b,0x77,0x89,0x81,0x50,0xa4,0x42);")
68cpp_quote("DEFINE_GUID(CLSID_WICExifMetadataWriter, 0xc9a14cda,0xc339,0x460b,0x90,0x78,0xd4,0xde,0xbc,0xfa,0xbe,0x91);")
69cpp_quote("DEFINE_GUID(CLSID_WICXMPStructMetadataReader, 0x01b90d9a,0x8209,0x47f7,0x9c,0x52,0xe1,0x24,0x4b,0xf5,0x0c,0xed);")
70cpp_quote("DEFINE_GUID(CLSID_WICXMPStructMetadataWriter, 0x22c21f93,0x7ddb,0x411c,0x9b,0x17,0xc5,0xb7,0xbd,0x06,0x4a,0xbc);")
71cpp_quote("DEFINE_GUID(CLSID_WICLSDMetadataReader, 0x41070793,0x59e4,0x479a,0xa1,0xf7,0x95,0x4a,0xdc,0x2e,0xf5,0xfc);")
72cpp_quote("DEFINE_GUID(CLSID_WICLSDMetadataWriter, 0x73c037e7,0xe5d9,0x4954,0x87,0x6a,0x6d,0xa8,0x1d,0x6e,0x57,0x68);")
73cpp_quote("DEFINE_GUID(CLSID_WICIMDMetadataReader, 0x7447a267,0x0015,0x42c8,0xa8,0xf1,0xfb,0x3b,0x94,0xc6,0x83,0x61);")
74cpp_quote("DEFINE_GUID(CLSID_WICIMDMetadataWriter, 0x8c89071f,0x452e,0x4e95,0x96,0x82,0x9d,0x10,0x24,0x62,0x71,0x72);")
75cpp_quote("DEFINE_GUID(CLSID_WICGCEMetadataReader, 0xb92e345d,0xf52d,0x41f3,0xb5,0x62,0x08,0x1b,0xc7,0x72,0xe3,0xb9);")
76cpp_quote("DEFINE_GUID(CLSID_WICGCEMetadataWriter, 0xaf95dc76,0x16b2,0x47f4,0xb3,0xea,0x3c,0x31,0x79,0x66,0x93,0xe7);")
77cpp_quote("DEFINE_GUID(CLSID_WICAPEMetadataReader, 0x1767b93a,0xb021,0x44ea,0x92,0x0f,0x86,0x3c,0x11,0xf4,0xf7,0x68);")
78cpp_quote("DEFINE_GUID(CLSID_WICAPEMetadataWriter, 0xbd6edfca,0x2890,0x482f,0xb2,0x33,0x8d,0x73,0x39,0xa1,0xcf,0x8d);")
79cpp_quote("DEFINE_GUID(CLSID_WICGifCommentMetadataReader, 0x32557d3b,0x69dc,0x4f95,0x83,0x6e,0xf5,0x97,0x2b,0x2f,0x61,0x59);")
80cpp_quote("DEFINE_GUID(CLSID_WICGifCommentMetadataWriter, 0xa02797fc,0xc4ae,0x418c,0xaf,0x95,0xe6,0x37,0xc7,0xea,0xd2,0xa1);")
81
82typedef struct WICMetadataPattern {
83 ULARGE_INTEGER Position;
84 ULONG Length;
85 BYTE *Pattern;
86 BYTE *Mask;
87 ULARGE_INTEGER DataOffset;
88} WICMetadataPattern;
89
90typedef struct WICMetadataHeader {
91 ULARGE_INTEGER Position;
92 ULONG Length;
93 BYTE *Header;
94 ULARGE_INTEGER DataOffset;
95} WICMetadataHeader;
96
97[
98 object,
99 uuid(aba958bf-c672-44d1-8d61-ce6df2e682c2)
100]
101interface IWICMetadataHandlerInfo : IWICComponentInfo
102{
103 HRESULT GetMetadataFormat(
104 [out] GUID *pguidMetadataFormat);
105
106 HRESULT GetContainerFormats(
107 [in] UINT cContainerFormats,
108 [in, out, unique, size_is(cContainerFormats)] GUID *pguidContainerFormats,
109 [out] UINT *pcchActual);
110
111 HRESULT GetDeviceManufacturer(
112 [in] UINT cchDeviceManufacturer,
113 [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer,
114 [out] UINT *pcchActual);
115
116 HRESULT GetDeviceModels(
117 [in] UINT cchDeviceModels,
118 [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels,
119 [out] UINT *pcchActual);
120
121 HRESULT DoesRequireFullStream(
122 [out] BOOL *pfRequiresFullStream);
123
124 HRESULT DoesSupportPadding(
125 [out] BOOL *pfSupportsPadding);
126
127 HRESULT DoesRequireFixedSize(
128 [out] BOOL *pfFixedSize);
129}
130
131[
132 object,
133 uuid(9204fe99-d8fc-4fd5-a001-9536b067a899)
134]
135interface IWICMetadataReader : IUnknown
136{
137 HRESULT GetMetadataFormat(
138 [out] GUID *pguidMetadataFormat);
139
140 HRESULT GetMetadataHandlerInfo(
141 [out] IWICMetadataHandlerInfo **ppIHandler);
142
143 HRESULT GetCount(
144 [out] UINT *pcCount);
145
146 HRESULT GetValueByIndex(
147 [in] UINT nIndex,
148 [in, out, unique] PROPVARIANT *pvarSchema,
149 [in, out, unique] PROPVARIANT *pvarId,
150 [in, out, unique] PROPVARIANT *pvarValue);
151
152 HRESULT GetValue(
153 [in] const PROPVARIANT *pvarSchema,
154 [in] const PROPVARIANT *pvarId,
155 [in, out, unique] PROPVARIANT *pvarValue);
156
157 HRESULT GetEnumerator(
158 [out] IWICEnumMetadataItem **ppIEnumMetadata);
159}
160
161[
162 object,
163 uuid(eebf1f5b-07c1-4447-a3ab-22acaf78a804)
164]
165interface IWICMetadataReaderInfo : IWICMetadataHandlerInfo
166{
167 [local]
168 HRESULT GetPatterns(
169 [in] REFGUID guidContainerFormat,
170 [in] UINT cbSize,
171 [out, unique] WICMetadataPattern *pPattern,
172 [out, unique] UINT *pcCount,
173 [out, unique] UINT *pcbActual);
174
175 HRESULT MatchesPattern(
176 [in] REFGUID guidContainerFormat,
177 [in] IStream *pIStream,
178 [out] BOOL *pfMatches);
179
180 HRESULT CreateInstance(
181 [out] IWICMetadataReader **ppIReader);
182}
183
184[
185 object,
186 uuid(f7836e16-3be0-470b-86bb-160d0aecd7de)
187]
188interface IWICMetadataWriter : IWICMetadataReader
189{
190 HRESULT SetValue(
191 [in, unique] const PROPVARIANT *pvarSchema,
192 [in] const PROPVARIANT *pvarId,
193 [in] const PROPVARIANT *pvarValue);
194
195 HRESULT SetValueByIndex(
196 [in] UINT nIndex,
197 [in, unique] const PROPVARIANT *pvarSchema,
198 [in] const PROPVARIANT *pvarId,
199 [in] const PROPVARIANT *pvarValue);
200
201 HRESULT RemoveValue(
202 [in, unique] const PROPVARIANT *pvarSchema,
203 [in] const PROPVARIANT *pvarId);
204
205 HRESULT RemoveValueByIndex(
206 [in] UINT nIndex);
207}
208
209[
210 object,
211 uuid(b22e3fba-3925-4323-b5c1-9ebfc430f236)
212]
213interface IWICMetadataWriterInfo : IWICMetadataHandlerInfo
214{
215 [local]
216 HRESULT GetHeader(
217 [in] REFGUID guidContainerFormat,
218 [in] UINT cbSize,
219 [out, unique] WICMetadataHeader *pHeader,
220 [out, unique] UINT *pcbActual);
221
222 HRESULT CreateInstance(
223 [out] IWICMetadataWriter **ppIWriter);
224}
225
226[
227 object,
228 uuid(feaa2a8d-b3f3-43e4-b25c-d1de990a1ae1)
229]
230interface IWICMetadataBlockReader : IUnknown
231{
232 HRESULT GetContainerFormat(
233 [out] GUID *pguidContainerFormat);
234
235 HRESULT GetCount(
236 [out] UINT *pcCount);
237
238 HRESULT GetReaderByIndex(
239 [in] UINT nIndex,
240 [out] IWICMetadataReader **ppIMetadataReader);
241
242 HRESULT GetEnumerator(
243 [out] IEnumUnknown **ppIEnumMetadata);
244}
245
246[
247 object,
248 uuid(08fb9676-b444-41e8-8dbe-6a53a542bff1)
249]
250interface IWICMetadataBlockWriter : IWICMetadataBlockReader
251{
252 HRESULT InitializeFromBlockReader(
253 [in] IWICMetadataBlockReader *pIMDBlockReader);
254
255 HRESULT GetWriterByIndex(
256 [in] UINT nIndex,
257 [out] IWICMetadataWriter **ppIMetadataWriter);
258
259 HRESULT AddWriter(
260 [in] IWICMetadataWriter *pIMetadataWriter);
261
262 HRESULT SetWriterByIndex(
263 [in] UINT nIndex,
264 [in] IWICMetadataWriter *pIMetadataWriter);
265
266 HRESULT RemoveWriterByIndex(
267 [in] UINT nIndex);
268}
269
270[
271 object,
272 uuid(00675040-6908-45f8-86a3-49c7dfd6d9ad)
273]
274interface IWICPersistStream : IPersistStream
275{
276 HRESULT LoadEx(
277 [in, unique] IStream *pIStream,
278 [in, unique] const GUID *pguidPreferredVendor,
279 [in] DWORD dwPersistOptions);
280
281 HRESULT SaveEx(
282 [in] IStream *pIStream,
283 [in] DWORD dwPersistOptions,
284 [in] BOOL fClearDirty);
285}
286
287[
288 object,
289 uuid(412d0c3a-9650-44fa-af5b-dd2a06c8e8fb)
290]
291interface IWICComponentFactory : IWICImagingFactory
292{
293 HRESULT CreateMetadataReader(
294 [in] REFGUID guidMetadataFormat,
295 [in, unique] const GUID *pguidVendor,
296 [in] DWORD dwOptions,
297 [in] IStream *pIStream,
298 [out] IWICMetadataReader **ppIReader);
299
300 HRESULT CreateMetadataReaderFromContainer(
301 [in] REFGUID guidMetadataFormat,
302 [in, unique] const GUID *pguidVendor,
303 [in] DWORD dwOptions,
304 [in] IStream *pIStream,
305 [out] IWICMetadataReader **ppIReader);
306
307 HRESULT CreateMetadataWriter(
308 [in] REFGUID guidMetadataFormat,
309 [in, unique] const GUID *pguidVendor,
310 [in] DWORD dwMetadataOptions,
311 [out] IWICMetadataWriter **ppIWriter);
312
313 HRESULT CreateMetadataWriterFromReader(
314 [in] IWICMetadataReader *pIReader,
315 [in, unique] const GUID *pguidVendor,
316 [out] IWICMetadataWriter **ppIWriter);
317
318 HRESULT CreateQueryReaderFromBlockReader(
319 [in] IWICMetadataBlockReader *pIBlockReader,
320 [out] IWICMetadataQueryReader **ppIQueryReader);
321
322 HRESULT CreateQueryWriterFromBlockWriter(
323 [in] IWICMetadataBlockWriter *pIBlockWriter,
324 [out] IWICMetadataQueryWriter **ppIQueryWriter);
325
326 HRESULT CreateEncoderPropertyBag(
327 [in, unique, size_is(cCount)] PROPBAG2 *ppropOptions,
328 [in] UINT cCount,
329 [out] IPropertyBag2 **ppIPropertyBag);
330}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette