po: Update Italian translation.
[wine/multimedia.git] / include / wincodecsdk.idl
blobe32971cf5f40cf8153788b773f13e0104ff918bd
1 /*
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
19 import "wincodec.idl";
21 typedef enum WICPersistOptions {
22 WICPersistOptionsDefault = 0x00000000,
23 WICPersistOptionsLittleEndian = 0x00000001,
24 WICPersistOptionsBigEndian = 0x00000002,
25 WICPersistOptionsStrictFormat = 0x00000004,
26 WICPersistOptionsNoCacheStream = 0x00000008,
27 WICPersistOptionsMask = 0x0000FFFF
28 } WICPersistOptions;
30 typedef enum WICMetadataCreationOptions {
31 WICMetadataCreationDefault = 0x00000000,
32 WICMetadataCreationAllowUnknown = WICMetadataCreationDefault,
33 WICMetadataCreationFailUnknown = 0x00010000,
34 WICMetadataCreationMask = 0xFFFF0000
35 } WICMetadataCreationOptions;
37 cpp_quote("DEFINE_GUID(GUID_MetadataFormatUnknown, 0xa45e592f,0x9078,0x4a7c,0xad,0xb5,0x4e,0xdc,0x4f,0xd6,0x1b,0x1f);")
38 cpp_quote("DEFINE_GUID(GUID_MetadataFormatChunktEXt, 0x568d8936,0xc0a9,0x4923,0x90,0x5d,0xdf,0x2b,0x38,0x23,0x8f,0xbc);")
40 cpp_quote("DEFINE_GUID(CLSID_WICUnknownMetadataReader, 0x699745c2,0x5066,0x4b82,0xa8,0xe3,0xd4,0x04,0x78,0xdb,0xec,0x8c);")
41 cpp_quote("DEFINE_GUID(CLSID_WICUnknownMetadataWriter, 0xa09cca86,0x27ba,0x4f39,0x90,0x53,0x12,0x1f,0xa4,0xdc,0x08,0xfc);")
42 cpp_quote("DEFINE_GUID(CLSID_WICPngTextMetadataReader, 0x4b59afcc,0xb8c3,0x408a,0xb6,0x70,0x89,0xe5,0xfa,0xb6,0xfd,0xa7);")
43 cpp_quote("DEFINE_GUID(CLSID_WICPngTextMetadataWriter, 0xb5ebafb9,0x253e,0x4a72,0xa7,0x44,0x07,0x62,0xd2,0x68,0x56,0x83);")
46 object,
47 uuid(aba958bf-c672-44d1-8d61-ce6df2e682c2)
49 interface IWICMetadataHandlerInfo : IWICComponentInfo
51 HRESULT GetMetadataFormat(
52 [out] GUID *pguidMetadataFormat);
54 HRESULT GetContainerFormats(
55 [in] UINT cContainerFormats,
56 [in, out, unique, size_is(cContainerFormats)] GUID *pguidContainerFormats,
57 [out] UINT *pcchActual);
59 HRESULT GetDeviceManufacturer(
60 [in] UINT cchDeviceManufacturer,
61 [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer,
62 [out] UINT *pcchActual);
64 HRESULT GetDeviceModels(
65 [in] UINT cchDeviceModels,
66 [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels,
67 [out] UINT *pcchActual);
69 HRESULT DoesRequireFullStream(
70 [out] BOOL *pfRequiresFullStream);
72 HRESULT DoesSupportPadding(
73 [out] BOOL *pfSupportsPadding);
75 HRESULT DoesRequireFixedSize(
76 [out] BOOL *pfFixedSize);
80 object,
81 uuid(9204fe99-d8fc-4fd5-a001-9536b067a899)
83 interface IWICMetadataReader : IUnknown
85 HRESULT GetMetadataFormat(
86 [out] GUID *pguidMetadataFormat);
88 HRESULT GetMetadataHandlerInfo(
89 [out] IWICMetadataHandlerInfo **ppIHandler);
91 HRESULT GetCount(
92 [out] UINT *pcCount);
94 HRESULT GetValueByIndex(
95 [in] UINT nIndex,
96 [in, out, unique] PROPVARIANT *pvarSchema,
97 [in, out, unique] PROPVARIANT *pvarId,
98 [in, out, unique] PROPVARIANT *pvarValue);
100 HRESULT GetValue(
101 [in] const PROPVARIANT *pvarSchema,
102 [in] const PROPVARIANT *pvarId,
103 [in, out, unique] const PROPVARIANT *pvarValue);
105 HRESULT GetEnumerator(
106 [out] IWICEnumMetadataItem **ppIEnumMetadata);
110 object,
111 uuid(f7836e16-3be0-470b-86bb-160d0aecd7de)
113 interface IWICMetadataWriter : IWICMetadataReader
115 HRESULT SetValue(
116 [in, unique] const PROPVARIANT *pvarSchema,
117 [in] const PROPVARIANT *pvarId,
118 [in] const PROPVARIANT *pvarValue);
120 HRESULT SetValueByIndex(
121 [in] UINT nIndex,
122 [in, unique] const PROPVARIANT *pvarSchema,
123 [in] const PROPVARIANT *pvarId,
124 [in] const PROPVARIANT *pvarValue);
126 HRESULT RemoveValue(
127 [in, unique] const PROPVARIANT *pvarSchema,
128 [in] const PROPVARIANT *pvarId);
130 HRESULT RemoveValueByIndex(
131 [in] UINT nIndex);
135 object,
136 uuid(feaa2a8d-b3f3-43e4-b25c-d1de990a1ae1)
138 interface IWICMetadataBlockReader : IUnknown
140 HRESULT GetContainerFormat(
141 [out] GUID *pguidContainerFormat);
143 HRESULT GetCount(
144 [out] UINT *pcCount);
146 HRESULT GetReaderByIndex(
147 [in] UINT nIndex,
148 [out] IWICMetadataReader **ppIMetadataReader);
150 HRESULT GetEnumerator(
151 [out] IEnumUnknown **ppIEnumMetadata);
155 object,
156 uuid(08fb9676-b444-41e8-8dbe-6a53a542bff1)
158 interface IWICMetadataBlockWriter : IWICMetadataBlockReader
160 HRESULT InitializeFromBlockReader(
161 [in] IWICMetadataBlockReader *pIMDBlockReader);
163 HRESULT GetWriterByIndex(
164 [in] UINT nIndex,
165 [out] IWICMetadataWriter **ppIMetadataWriter);
167 HRESULT AddWriter(
168 [in] IWICMetadataWriter *pIMetadataWriter);
170 HRESULT SetWriterByIndex(
171 [in] UINT nIndex,
172 [in] IWICMetadataWriter *pIMetadataWriter);
174 HRESULT RemoveWriterByIndex(
175 [in] UINT nIndex);
179 object,
180 uuid(00675040-6908-45f8-86a3-49c7dfd6d9ad)
182 interface IWICPersistStream : IPersistStream
184 HRESULT LoadEx(
185 [in, unique] IStream *pIStream,
186 [in, unique] const GUID *pguidPreferredVendor,
187 [in] DWORD dwPersistOptions);
189 HRESULT SaveEx(
190 [in] IStream *pIStream,
191 [in] DWORD dwPersistOptions,
192 [in] BOOL fClearDirty);
196 object,
197 uuid(412d0c3a-9650-44fa-af5b-dd2a06c8e8fb)
199 interface IWICComponentFactory : IWICImagingFactory
201 HRESULT CreateMetadataReader(
202 [in] REFGUID guidMetadataFormat,
203 [in, unique] const GUID *pguidVendor,
204 [in] DWORD dwOptions,
205 [in] IStream *pIStream,
206 [out] IWICMetadataReader **ppIReader);
208 HRESULT CreateMetadataReaderFromContainer(
209 [in] REFGUID guidMetadataFormat,
210 [in, unique] const GUID *pguidVendor,
211 [in] DWORD dwOptions,
212 [in] IStream *pIStream,
213 [out] IWICMetadataReader **ppIReader);
215 HRESULT CreateMetadataWriter(
216 [in] REFGUID guidMetadataFormat,
217 [in, unique] const GUID *pguidVendor,
218 [in] DWORD dwMetadataOptions,
219 [out] IWICMetadataWriter **ppIWriter);
221 HRESULT CreateMetadataWriterFromReader(
222 [in] IWICMetadataReader *pIReader,
223 [in, unique] const GUID *pguidVendor,
224 [out] IWICMetadataWriter **ppIWriter);
226 HRESULT CreateQueryReaderFromBlockReader(
227 [in] IWICMetadataBlockReader *pIBlockReader,
228 [out] IWICMetadataQueryReader **ppIQueryReader);
230 HRESULT CreateQueryWriterFromBlockWriter(
231 [in] IWICMetadataBlockWriter *pIBlockWriter,
232 [out] IWICMetadataQueryWriter **ppIQueryWriter);
234 HRESULT CreateEncoderPropertyBag(
235 [in, unique, size_is(cCount)] PROPBAG2 *ppropOptions,
236 [in] UINT cCount,
237 [out] IPropertyBag2 **ppIPropertyBag);