xref: /reactos/sdk/include/psdk/wincodecsdk.idl (revision c2c66aff)
1*c2c66affSColin Finck/*
2*c2c66affSColin Finck * Copyright 2011 Vincent Povirk for CodeWeavers
3*c2c66affSColin Finck *
4*c2c66affSColin Finck * This library is free software; you can redistribute it and/or
5*c2c66affSColin Finck * modify it under the terms of the GNU Lesser General Public
6*c2c66affSColin Finck * License as published by the Free Software Foundation; either
7*c2c66affSColin Finck * version 2.1 of the License, or (at your option) any later version.
8*c2c66affSColin Finck *
9*c2c66affSColin Finck * This library is distributed in the hope that it will be useful,
10*c2c66affSColin Finck * but WITHOUT ANY WARRANTY; without even the implied warranty of
11*c2c66affSColin Finck * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12*c2c66affSColin Finck * Lesser General Public License for more details.
13*c2c66affSColin Finck *
14*c2c66affSColin Finck * You should have received a copy of the GNU Lesser General Public
15*c2c66affSColin Finck * License along with this library; if not, write to the Free Software
16*c2c66affSColin Finck * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17*c2c66affSColin Finck */
18*c2c66affSColin Finck
19*c2c66affSColin Finckimport "wtypes.idl";
20*c2c66affSColin Finckimport "wincodec.idl";
21*c2c66affSColin Finck
22*c2c66affSColin Fincktypedef enum WICPersistOptions {
23*c2c66affSColin Finck    WICPersistOptionDefault = 0x00000000,
24*c2c66affSColin Finck    WICPersistOptionLittleEndian = 0x00000000,
25*c2c66affSColin Finck    WICPersistOptionBigEndian = 0x00000001,
26*c2c66affSColin Finck    WICPersistOptionStrictFormat = 0x00000002,
27*c2c66affSColin Finck    WICPersistOptionNoCacheStream = 0x00000004,
28*c2c66affSColin Finck    WICPersistOptionPreferUTF8 = 0x00000008,
29*c2c66affSColin Finck    WICPersistOptionMask = 0x0000FFFF
30*c2c66affSColin Finck} WICPersistOptions;
31*c2c66affSColin Finck
32*c2c66affSColin Fincktypedef enum WICMetadataCreationOptions {
33*c2c66affSColin Finck    WICMetadataCreationDefault = 0x00000000,
34*c2c66affSColin Finck    WICMetadataCreationAllowUnknown = WICMetadataCreationDefault,
35*c2c66affSColin Finck    WICMetadataCreationFailUnknown = 0x00010000,
36*c2c66affSColin Finck    WICMetadataCreationMask = 0xFFFF0000
37*c2c66affSColin Finck} WICMetadataCreationOptions;
38*c2c66affSColin Finck
39*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatUnknown, 0xa45e592f,0x9078,0x4a7c,0xad,0xb5,0x4e,0xdc,0x4f,0xd6,0x1b,0x1f);")
40*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunkcHRM, 0x9db3655b,0x2842,0x44b3,0x80,0x67,0x12,0xe9,0xb3,0x75,0x55,0x6a);")
41*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunkgAMA, 0xf00935a5,0x1d5d,0x4cd1,0x81,0xb2,0x93,0x24,0xd7,0xec,0xa7,0x81);")
42*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunktEXt, 0x568d8936,0xc0a9,0x4923,0x90,0x5d,0xdf,0x2b,0x38,0x23,0x8f,0xbc);")
43*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunktIME, 0x6b00ae2d,0xe24b,0x460a,0x98,0xb6,0x87,0x8b,0xd0,0x30,0x72,0xfd);")
44*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatIfd, 0x537396c6,0x2d8a,0x4bb6,0x9b,0xf8,0x2f,0x0a,0x8e,0x2a,0x3a,0xdf);")
45*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatExif, 0x1c3c4f9d,0xb84a,0x467d,0x94,0x93,0x36,0xcf,0xbd,0x59,0xea,0x57);")
46*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatXMP, 0xbb5acc38,0xf216,0x4cec,0xa6,0xc5,0x5f,0x6e,0x73,0x97,0x63,0xa9);")
47*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatXMPStruct, 0x22383cf1,0xed17,0x4e2e,0xaf,0x17,0xd8,0x5b,0x8f,0x6b,0x30,0xd0);")
48*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatIMD, 0xbd2bb086,0x4d52,0x48dd,0x96,0x77,0xdb,0x48,0x3e,0x85,0xae,0x8f);")
49*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatLSD, 0xe256031e,0x6299,0x4929,0xb9,0x8d,0x5a,0xc8,0x84,0xaf,0xba,0x92);")
50*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatGCE, 0x2a25cad8,0xdeeb,0x4c69,0xa7,0x88,0x0e,0xc2,0x26,0x6d,0xca,0xfd);")
51*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatAPE, 0x2e043dc2,0xc967,0x4e05,0x87,0x5e,0x61,0x8b,0xf6,0x7e,0x85,0xc3);")
52*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatGifComment, 0xc4b6e0e0,0xcfb4,0x4ad3,0xab,0x33,0x9a,0xad,0x23,0x55,0xa3,0x4a);")
53*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatSubIfd, 0x58a2e128,0x2db9,0x4e57,0xbb,0x14,0x51,0x77,0x89,0x1e,0xd3,0x31);")
54*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatGps, 0x7134ab8a,0x9351,0x44ad,0xaf,0x62,0x44,0x8d,0xb6,0xb5,0x02,0xec);")
55*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatInterop, 0xed686f8e,0x681f,0x4c8b,0xbd,0x41,0xa8,0xad,0xdb,0xf6,0xb3,0xfc);")
56*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatApp0, 0x79007028,0x268d,0x45d6,0xa3,0xc2,0x35,0x4e,0x6a,0x50,0x4b,0xc9);")
57*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatApp1, 0x8fd3dfc3,0xf951,0x492b,0x81,0x7f,0x69,0xc2,0xe6,0xd9,0xa5,0xb0);")
58*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatApp13, 0x326556a2,0xf502,0x4354,0x9c,0xc0,0x8e,0x3f,0x48,0xea,0xf6,0xb5);")
59*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatIPTC, 0x4fab0914,0xe129,0x4087,0xa1,0xd1,0xbc,0x81,0x2d,0x45,0xa7,0xb5);")
60*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatIRB, 0x16100d66,0x8570,0x4bb9,0xb9,0x2d,0xfd,0xa4,0xb2,0x3e,0xce,0x67);")
61*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormat8BIMIPTC, 0x0010568c,0x0852,0x4e6a,0xb1,0x91,0x5c,0x33,0xac,0x5b,0x04,0x30);")
62*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormat8BIMResolutionInfo, 0x739f305d,0x81db,0x43cb,0xac,0x5e,0x55,0x01,0x3e,0xf9,0xf0,0x03);")
63*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormat8BIMIPTCDigest, 0x1ca32285,0x9ccd,0x4786,0x8b,0xd8,0x79,0x53,0x9d,0xb6,0xa0,0x06);")
64*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatThumbnail, 0x243dcee9,0x8703,0x40ee,0x8e,0xf0,0x22,0xa6,0x0,0xb8,0x5,0x8c);")
65*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatXMPBag, 0x833cca5f,0xdcb7,0x4516,0x80,0x6f,0x65,0x96,0xab,0x26,0xdc,0xe4);")
66*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatXMPSeq, 0x63e8df02,0xeb6c,0x456c,0xa2,0x24,0xb2,0x5e,0x79,0x4f,0xd6,0x48);")
67*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatXMPAlt, 0x7b08a675,0x91aa,0x481b,0xa7,0x98,0x4d,0xa9,0x49,0x08,0x61,0x3b);")
68*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatJpegChrominance, 0xf73d0dcf,0xcec6,0x4f85,0x9b,0x0e,0x1c,0x39,0x56,0xb1,0xbe,0xf7);")
69*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatJpegLuminance, 0x86908007,0xedfc,0x4860,0x8d,0x4b,0x4e,0xe6,0xe8,0x3e,0x60,0x58);")
70*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatJpegComment, 0x220e5f33,0xafd3,0x474e,0x9d,0x31,0x7d,0x4f,0xe7,0x30,0xf5,0x57);")
71*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunkbKGD, 0xe14d3571,0x6b47,0x4dea,0xb6,0xa,0x87,0xce,0xa,0x78,0xdf,0xb7);")
72*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunkiTXt, 0xc2bec729,0xb68,0x4b77,0xaa,0xe,0x62,0x95,0xa6,0xac,0x18,0x14);")
73*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunkhIST, 0xc59a82da,0xdb74,0x48a4,0xbd,0x6a,0xb6,0x9c,0x49,0x31,0xef,0x95);")
74*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunkiCCP, 0xeb4349ab,0xb685,0x450f,0x91,0xb5,0xe8,0x2,0xe8,0x92,0x53,0x6c);")
75*c2c66affSColin Finckcpp_quote("DEFINE_GUID(GUID_MetadataFormatChunksRGB, 0xc115fd36,0xcc6f,0x4e3f,0x83,0x63,0x52,0x4b,0x87,0xc6,0xb0,0xd9);")
76*c2c66affSColin Finck
77*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICUnknownMetadataReader, 0x699745c2,0x5066,0x4b82,0xa8,0xe3,0xd4,0x04,0x78,0xdb,0xec,0x8c);")
78*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICUnknownMetadataWriter, 0xa09cca86,0x27ba,0x4f39,0x90,0x53,0x12,0x1f,0xa4,0xdc,0x08,0xfc);")
79*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICPngChrmMetadataReader, 0xf90b5f36,0x367b,0x402a,0x9d,0xd1,0xbc,0x0f,0xd5,0x9d,0x8f,0x62);")
80*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICPngGamaMetadataReader, 0x3692ca39,0xe082,0x4350,0x9e,0x1f,0x37,0x04,0xcb,0x08,0x3c,0xd5);")
81*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICPngTextMetadataReader, 0x4b59afcc,0xb8c3,0x408a,0xb6,0x70,0x89,0xe5,0xfa,0xb6,0xfd,0xa7);")
82*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICPngTextMetadataWriter, 0xb5ebafb9,0x253e,0x4a72,0xa7,0x44,0x07,0x62,0xd2,0x68,0x56,0x83);")
83*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICIfdMetadataReader, 0x8f914656,0x9d0a,0x4eb2,0x90,0x19,0x0b,0xf9,0x6d,0x8a,0x9e,0xe6);")
84*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICIfdMetadataWriter, 0xb1ebfc28,0xc9bd,0x47a2,0x8d,0x33,0xb9,0x48,0x76,0x97,0x77,0xa7);")
85*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICExifMetadataReader, 0xd9403860,0x297f,0x4a49,0xbf,0x9b,0x77,0x89,0x81,0x50,0xa4,0x42);")
86*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICExifMetadataWriter, 0xc9a14cda,0xc339,0x460b,0x90,0x78,0xd4,0xde,0xbc,0xfa,0xbe,0x91);")
87*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICXMPStructMetadataReader, 0x01b90d9a,0x8209,0x47f7,0x9c,0x52,0xe1,0x24,0x4b,0xf5,0x0c,0xed);")
88*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICXMPStructMetadataWriter, 0x22c21f93,0x7ddb,0x411c,0x9b,0x17,0xc5,0xb7,0xbd,0x06,0x4a,0xbc);")
89*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICLSDMetadataReader, 0x41070793,0x59e4,0x479a,0xa1,0xf7,0x95,0x4a,0xdc,0x2e,0xf5,0xfc);")
90*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICLSDMetadataWriter, 0x73c037e7,0xe5d9,0x4954,0x87,0x6a,0x6d,0xa8,0x1d,0x6e,0x57,0x68);")
91*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICIMDMetadataReader, 0x7447a267,0x0015,0x42c8,0xa8,0xf1,0xfb,0x3b,0x94,0xc6,0x83,0x61);")
92*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICIMDMetadataWriter, 0x8c89071f,0x452e,0x4e95,0x96,0x82,0x9d,0x10,0x24,0x62,0x71,0x72);")
93*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICGCEMetadataReader, 0xb92e345d,0xf52d,0x41f3,0xb5,0x62,0x08,0x1b,0xc7,0x72,0xe3,0xb9);")
94*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICGCEMetadataWriter, 0xaf95dc76,0x16b2,0x47f4,0xb3,0xea,0x3c,0x31,0x79,0x66,0x93,0xe7);")
95*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICAPEMetadataReader, 0x1767b93a,0xb021,0x44ea,0x92,0x0f,0x86,0x3c,0x11,0xf4,0xf7,0x68);")
96*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICAPEMetadataWriter, 0xbd6edfca,0x2890,0x482f,0xb2,0x33,0x8d,0x73,0x39,0xa1,0xcf,0x8d);")
97*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICGifCommentMetadataReader, 0x32557d3b,0x69dc,0x4f95,0x83,0x6e,0xf5,0x97,0x2b,0x2f,0x61,0x59);")
98*c2c66affSColin Finckcpp_quote("DEFINE_GUID(CLSID_WICGifCommentMetadataWriter, 0xa02797fc,0xc4ae,0x418c,0xaf,0x95,0xe6,0x37,0xc7,0xea,0xd2,0xa1);")
99*c2c66affSColin Finck
100*c2c66affSColin Fincktypedef struct WICMetadataPattern {
101*c2c66affSColin Finck    ULARGE_INTEGER Position;
102*c2c66affSColin Finck    ULONG Length;
103*c2c66affSColin Finck    BYTE *Pattern;
104*c2c66affSColin Finck    BYTE *Mask;
105*c2c66affSColin Finck    ULARGE_INTEGER DataOffset;
106*c2c66affSColin Finck} WICMetadataPattern;
107*c2c66affSColin Finck
108*c2c66affSColin Fincktypedef struct WICMetadataHeader {
109*c2c66affSColin Finck    ULARGE_INTEGER Position;
110*c2c66affSColin Finck    ULONG Length;
111*c2c66affSColin Finck    BYTE *Header;
112*c2c66affSColin Finck    ULARGE_INTEGER DataOffset;
113*c2c66affSColin Finck} WICMetadataHeader;
114*c2c66affSColin Finck
115*c2c66affSColin Finck[
116*c2c66affSColin Finck    object,
117*c2c66affSColin Finck    uuid(aba958bf-c672-44d1-8d61-ce6df2e682c2)
118*c2c66affSColin Finck]
119*c2c66affSColin Finckinterface IWICMetadataHandlerInfo : IWICComponentInfo
120*c2c66affSColin Finck{
121*c2c66affSColin Finck    HRESULT GetMetadataFormat(
122*c2c66affSColin Finck        [out] GUID *pguidMetadataFormat);
123*c2c66affSColin Finck
124*c2c66affSColin Finck    HRESULT GetContainerFormats(
125*c2c66affSColin Finck        [in] UINT cContainerFormats,
126*c2c66affSColin Finck        [in, out, unique, size_is(cContainerFormats)] GUID *pguidContainerFormats,
127*c2c66affSColin Finck        [out] UINT *pcchActual);
128*c2c66affSColin Finck
129*c2c66affSColin Finck    HRESULT GetDeviceManufacturer(
130*c2c66affSColin Finck        [in] UINT cchDeviceManufacturer,
131*c2c66affSColin Finck        [in, out, unique, size_is(cchDeviceManufacturer)] WCHAR *wzDeviceManufacturer,
132*c2c66affSColin Finck        [out] UINT *pcchActual);
133*c2c66affSColin Finck
134*c2c66affSColin Finck    HRESULT GetDeviceModels(
135*c2c66affSColin Finck        [in] UINT cchDeviceModels,
136*c2c66affSColin Finck        [in, out, unique, size_is(cchDeviceModels)] WCHAR *wzDeviceModels,
137*c2c66affSColin Finck        [out] UINT *pcchActual);
138*c2c66affSColin Finck
139*c2c66affSColin Finck    HRESULT DoesRequireFullStream(
140*c2c66affSColin Finck        [out] BOOL *pfRequiresFullStream);
141*c2c66affSColin Finck
142*c2c66affSColin Finck    HRESULT DoesSupportPadding(
143*c2c66affSColin Finck        [out] BOOL *pfSupportsPadding);
144*c2c66affSColin Finck
145*c2c66affSColin Finck    HRESULT DoesRequireFixedSize(
146*c2c66affSColin Finck        [out] BOOL *pfFixedSize);
147*c2c66affSColin Finck}
148*c2c66affSColin Finck
149*c2c66affSColin Finck[
150*c2c66affSColin Finck    object,
151*c2c66affSColin Finck    uuid(9204fe99-d8fc-4fd5-a001-9536b067a899)
152*c2c66affSColin Finck]
153*c2c66affSColin Finckinterface IWICMetadataReader : IUnknown
154*c2c66affSColin Finck{
155*c2c66affSColin Finck    HRESULT GetMetadataFormat(
156*c2c66affSColin Finck        [out] GUID *pguidMetadataFormat);
157*c2c66affSColin Finck
158*c2c66affSColin Finck    HRESULT GetMetadataHandlerInfo(
159*c2c66affSColin Finck        [out] IWICMetadataHandlerInfo **ppIHandler);
160*c2c66affSColin Finck
161*c2c66affSColin Finck    HRESULT GetCount(
162*c2c66affSColin Finck        [out] UINT *pcCount);
163*c2c66affSColin Finck
164*c2c66affSColin Finck    HRESULT GetValueByIndex(
165*c2c66affSColin Finck        [in] UINT nIndex,
166*c2c66affSColin Finck        [in, out, unique] PROPVARIANT *pvarSchema,
167*c2c66affSColin Finck        [in, out, unique] PROPVARIANT *pvarId,
168*c2c66affSColin Finck        [in, out, unique] PROPVARIANT *pvarValue);
169*c2c66affSColin Finck
170*c2c66affSColin Finck    HRESULT GetValue(
171*c2c66affSColin Finck        [in] const PROPVARIANT *pvarSchema,
172*c2c66affSColin Finck        [in] const PROPVARIANT *pvarId,
173*c2c66affSColin Finck        [in, out, unique] PROPVARIANT *pvarValue);
174*c2c66affSColin Finck
175*c2c66affSColin Finck    HRESULT GetEnumerator(
176*c2c66affSColin Finck        [out] IWICEnumMetadataItem **ppIEnumMetadata);
177*c2c66affSColin Finck}
178*c2c66affSColin Finck
179*c2c66affSColin Finck[
180*c2c66affSColin Finck    object,
181*c2c66affSColin Finck    uuid(eebf1f5b-07c1-4447-a3ab-22acaf78a804)
182*c2c66affSColin Finck]
183*c2c66affSColin Finckinterface IWICMetadataReaderInfo : IWICMetadataHandlerInfo
184*c2c66affSColin Finck{
185*c2c66affSColin Finck    [local]
186*c2c66affSColin Finck    HRESULT GetPatterns(
187*c2c66affSColin Finck        [in] REFGUID guidContainerFormat,
188*c2c66affSColin Finck        [in] UINT cbSize,
189*c2c66affSColin Finck        [out, unique] WICMetadataPattern *pPattern,
190*c2c66affSColin Finck        [out, unique] UINT *pcCount,
191*c2c66affSColin Finck        [out, unique] UINT *pcbActual);
192*c2c66affSColin Finck
193*c2c66affSColin Finck    HRESULT MatchesPattern(
194*c2c66affSColin Finck        [in] REFGUID guidContainerFormat,
195*c2c66affSColin Finck        [in] IStream *pIStream,
196*c2c66affSColin Finck        [out] BOOL *pfMatches);
197*c2c66affSColin Finck
198*c2c66affSColin Finck    HRESULT CreateInstance(
199*c2c66affSColin Finck        [out] IWICMetadataReader **ppIReader);
200*c2c66affSColin Finck}
201*c2c66affSColin Finck
202*c2c66affSColin Finck[
203*c2c66affSColin Finck    object,
204*c2c66affSColin Finck    uuid(f7836e16-3be0-470b-86bb-160d0aecd7de)
205*c2c66affSColin Finck]
206*c2c66affSColin Finckinterface IWICMetadataWriter : IWICMetadataReader
207*c2c66affSColin Finck{
208*c2c66affSColin Finck    HRESULT SetValue(
209*c2c66affSColin Finck        [in, unique] const PROPVARIANT *pvarSchema,
210*c2c66affSColin Finck        [in] const PROPVARIANT *pvarId,
211*c2c66affSColin Finck        [in] const PROPVARIANT *pvarValue);
212*c2c66affSColin Finck
213*c2c66affSColin Finck    HRESULT SetValueByIndex(
214*c2c66affSColin Finck        [in] UINT nIndex,
215*c2c66affSColin Finck        [in, unique] const PROPVARIANT *pvarSchema,
216*c2c66affSColin Finck        [in] const PROPVARIANT *pvarId,
217*c2c66affSColin Finck        [in] const PROPVARIANT *pvarValue);
218*c2c66affSColin Finck
219*c2c66affSColin Finck    HRESULT RemoveValue(
220*c2c66affSColin Finck        [in, unique] const PROPVARIANT *pvarSchema,
221*c2c66affSColin Finck        [in] const PROPVARIANT *pvarId);
222*c2c66affSColin Finck
223*c2c66affSColin Finck    HRESULT RemoveValueByIndex(
224*c2c66affSColin Finck        [in] UINT nIndex);
225*c2c66affSColin Finck}
226*c2c66affSColin Finck
227*c2c66affSColin Finck[
228*c2c66affSColin Finck    object,
229*c2c66affSColin Finck    uuid(b22e3fba-3925-4323-b5c1-9ebfc430f236)
230*c2c66affSColin Finck]
231*c2c66affSColin Finckinterface IWICMetadataWriterInfo : IWICMetadataHandlerInfo
232*c2c66affSColin Finck{
233*c2c66affSColin Finck    [local]
234*c2c66affSColin Finck    HRESULT GetHeader(
235*c2c66affSColin Finck        [in] REFGUID guidContainerFormat,
236*c2c66affSColin Finck        [in] UINT cbSize,
237*c2c66affSColin Finck        [out, unique] WICMetadataHeader *pHeader,
238*c2c66affSColin Finck        [out, unique] UINT *pcbActual);
239*c2c66affSColin Finck
240*c2c66affSColin Finck    HRESULT CreateInstance(
241*c2c66affSColin Finck        [out] IWICMetadataWriter **ppIWriter);
242*c2c66affSColin Finck}
243*c2c66affSColin Finck
244*c2c66affSColin Finck[
245*c2c66affSColin Finck    object,
246*c2c66affSColin Finck    uuid(feaa2a8d-b3f3-43e4-b25c-d1de990a1ae1)
247*c2c66affSColin Finck]
248*c2c66affSColin Finckinterface IWICMetadataBlockReader : IUnknown
249*c2c66affSColin Finck{
250*c2c66affSColin Finck    HRESULT GetContainerFormat(
251*c2c66affSColin Finck        [out] GUID *pguidContainerFormat);
252*c2c66affSColin Finck
253*c2c66affSColin Finck    HRESULT GetCount(
254*c2c66affSColin Finck        [out] UINT *pcCount);
255*c2c66affSColin Finck
256*c2c66affSColin Finck    HRESULT GetReaderByIndex(
257*c2c66affSColin Finck        [in] UINT nIndex,
258*c2c66affSColin Finck        [out] IWICMetadataReader **ppIMetadataReader);
259*c2c66affSColin Finck
260*c2c66affSColin Finck    HRESULT GetEnumerator(
261*c2c66affSColin Finck        [out] IEnumUnknown **ppIEnumMetadata);
262*c2c66affSColin Finck}
263*c2c66affSColin Finck
264*c2c66affSColin Finck[
265*c2c66affSColin Finck    object,
266*c2c66affSColin Finck    uuid(08fb9676-b444-41e8-8dbe-6a53a542bff1)
267*c2c66affSColin Finck]
268*c2c66affSColin Finckinterface IWICMetadataBlockWriter : IWICMetadataBlockReader
269*c2c66affSColin Finck{
270*c2c66affSColin Finck    HRESULT InitializeFromBlockReader(
271*c2c66affSColin Finck        [in] IWICMetadataBlockReader *pIMDBlockReader);
272*c2c66affSColin Finck
273*c2c66affSColin Finck    HRESULT GetWriterByIndex(
274*c2c66affSColin Finck        [in] UINT nIndex,
275*c2c66affSColin Finck        [out] IWICMetadataWriter **ppIMetadataWriter);
276*c2c66affSColin Finck
277*c2c66affSColin Finck    HRESULT AddWriter(
278*c2c66affSColin Finck        [in] IWICMetadataWriter *pIMetadataWriter);
279*c2c66affSColin Finck
280*c2c66affSColin Finck    HRESULT SetWriterByIndex(
281*c2c66affSColin Finck        [in] UINT nIndex,
282*c2c66affSColin Finck        [in] IWICMetadataWriter *pIMetadataWriter);
283*c2c66affSColin Finck
284*c2c66affSColin Finck    HRESULT RemoveWriterByIndex(
285*c2c66affSColin Finck        [in] UINT nIndex);
286*c2c66affSColin Finck}
287*c2c66affSColin Finck
288*c2c66affSColin Finck[
289*c2c66affSColin Finck    object,
290*c2c66affSColin Finck    uuid(00675040-6908-45f8-86a3-49c7dfd6d9ad)
291*c2c66affSColin Finck]
292*c2c66affSColin Finckinterface IWICPersistStream : IPersistStream
293*c2c66affSColin Finck{
294*c2c66affSColin Finck    HRESULT LoadEx(
295*c2c66affSColin Finck        [in, unique] IStream *pIStream,
296*c2c66affSColin Finck        [in, unique] const GUID *pguidPreferredVendor,
297*c2c66affSColin Finck        [in] DWORD dwPersistOptions);
298*c2c66affSColin Finck
299*c2c66affSColin Finck    HRESULT SaveEx(
300*c2c66affSColin Finck        [in] IStream *pIStream,
301*c2c66affSColin Finck        [in] DWORD dwPersistOptions,
302*c2c66affSColin Finck        [in] BOOL fClearDirty);
303*c2c66affSColin Finck}
304*c2c66affSColin Finck
305*c2c66affSColin Finck[
306*c2c66affSColin Finck    object,
307*c2c66affSColin Finck    uuid(412d0c3a-9650-44fa-af5b-dd2a06c8e8fb)
308*c2c66affSColin Finck]
309*c2c66affSColin Finckinterface IWICComponentFactory : IWICImagingFactory
310*c2c66affSColin Finck{
311*c2c66affSColin Finck    HRESULT CreateMetadataReader(
312*c2c66affSColin Finck        [in] REFGUID guidMetadataFormat,
313*c2c66affSColin Finck        [in, unique] const GUID *pguidVendor,
314*c2c66affSColin Finck        [in] DWORD dwOptions,
315*c2c66affSColin Finck        [in] IStream *pIStream,
316*c2c66affSColin Finck        [out] IWICMetadataReader **ppIReader);
317*c2c66affSColin Finck
318*c2c66affSColin Finck    HRESULT CreateMetadataReaderFromContainer(
319*c2c66affSColin Finck        [in] REFGUID guidMetadataFormat,
320*c2c66affSColin Finck        [in, unique] const GUID *pguidVendor,
321*c2c66affSColin Finck        [in] DWORD dwOptions,
322*c2c66affSColin Finck        [in] IStream *pIStream,
323*c2c66affSColin Finck        [out] IWICMetadataReader **ppIReader);
324*c2c66affSColin Finck
325*c2c66affSColin Finck    HRESULT CreateMetadataWriter(
326*c2c66affSColin Finck        [in] REFGUID guidMetadataFormat,
327*c2c66affSColin Finck        [in, unique] const GUID *pguidVendor,
328*c2c66affSColin Finck        [in] DWORD dwMetadataOptions,
329*c2c66affSColin Finck        [out] IWICMetadataWriter **ppIWriter);
330*c2c66affSColin Finck
331*c2c66affSColin Finck    HRESULT CreateMetadataWriterFromReader(
332*c2c66affSColin Finck        [in] IWICMetadataReader *pIReader,
333*c2c66affSColin Finck        [in, unique] const GUID *pguidVendor,
334*c2c66affSColin Finck        [out] IWICMetadataWriter **ppIWriter);
335*c2c66affSColin Finck
336*c2c66affSColin Finck    HRESULT CreateQueryReaderFromBlockReader(
337*c2c66affSColin Finck        [in] IWICMetadataBlockReader *pIBlockReader,
338*c2c66affSColin Finck        [out] IWICMetadataQueryReader **ppIQueryReader);
339*c2c66affSColin Finck
340*c2c66affSColin Finck    HRESULT CreateQueryWriterFromBlockWriter(
341*c2c66affSColin Finck        [in] IWICMetadataBlockWriter *pIBlockWriter,
342*c2c66affSColin Finck        [out] IWICMetadataQueryWriter **ppIQueryWriter);
343*c2c66affSColin Finck
344*c2c66affSColin Finck    HRESULT CreateEncoderPropertyBag(
345*c2c66affSColin Finck        [in, unique, size_is(cCount)] PROPBAG2 *ppropOptions,
346*c2c66affSColin Finck        [in] UINT cCount,
347*c2c66affSColin Finck        [out] IPropertyBag2 **ppIPropertyBag);
348*c2c66affSColin Finck}
349