source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/wmcontainer.idl@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 20.9 KB
RevLine 
[1166]1/**
2 * This file is part of the mingw-w64 runtime package.
3 * No warranty is given; refer to the file DISCLAIMER within this package.
4 */
5
6cpp_quote("#include <winapifamily.h>")
7cpp_quote("")
8cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
9
10import "mfidl.idl";
11
12cpp_quote("")
13cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_FILE_ID, 0x3de649b4, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
14cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_CREATION_TIME, 0x3de649b6, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
15cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_FLAGS, 0x3de649bb, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
16cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_MAX_PACKET_SIZE, 0x3de649bd, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
17cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_MAX_BITRATE, 0x3de649be, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
18cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_MIN_PACKET_SIZE, 0x3de649bc, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
19cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_PACKETS, 0x3de649b7, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
20cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_PLAY_DURATION, 0x3de649b8, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
21cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_PREROLL, 0x3de649ba, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
22cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_SEND_DURATION, 0x3de649b9, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
23cpp_quote("EXTERN_GUID(CLSID_WMDRMSystemID, 0x8948BB22, 0x11BD, 0x4796, 0x93, 0xE3, 0x97, 0x4D, 0x1B, 0x57, 0x56, 0x78);")
24cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_KEYID, 0x8520fe3e, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
25cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_LICENSE_URL, 0x8520fe40, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
26cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_SECRET_DATA, 0x8520fe3f, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
27cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_TYPE, 0x8520fe3d, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
28cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTIONEX_ENCRYPTION_DATA, 0x62508be5, 0xecdf, 0x4924, 0xa3, 0x59, 0x72, 0xba, 0xb3, 0x39, 0x7b, 0x9d);")
29cpp_quote("EXTERN_GUID(MF_PD_ASF_LANGLIST, 0xf23de43c, 0x9977, 0x460d, 0xa6, 0xec, 0x32, 0x93, 0x7f, 0x16, 0xf, 0x7d);")
30cpp_quote("EXTERN_GUID(MF_PD_ASF_MARKER, 0x5134330e, 0x83a6, 0x475e, 0xa9, 0xd5, 0x4f, 0xb8, 0x75, 0xfb, 0x2e, 0x31);")
31cpp_quote("EXTERN_GUID(MF_PD_ASF_SCRIPT, 0xe29cd0d7, 0xd602, 0x4923, 0xa7, 0xfe, 0x73, 0xfd, 0x97, 0xec, 0xc6, 0x50);")
32cpp_quote("EXTERN_GUID(MF_PD_ASF_CODECLIST, 0xe4bb3509, 0xc18d, 0x4df1, 0xbb, 0x99, 0x7a, 0x36, 0xb3, 0xcc, 0x41, 0x19);")
33cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_IS_VBR, 0x5fc6947a, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
34cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_V8_VBRPEAK, 0x5fc6947b, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
35cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_V8_BUFFERAVERAGE, 0x5fc6947c, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
36cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_LEAKY_BUCKET_PAIRS, 0x5fc6947d, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
37cpp_quote("EXTERN_GUID(MF_PD_ASF_DATA_START_OFFSET, 0xe7d5b3e7, 0x1f29, 0x45d3, 0x88, 0x22, 0x3e, 0x78, 0xfa, 0xe2, 0x72, 0xed);")
38cpp_quote("EXTERN_GUID(MF_PD_ASF_DATA_LENGTH, 0xe7d5b3e8, 0x1f29, 0x45d3, 0x88, 0x22, 0x3e, 0x78, 0xfa, 0xe2, 0x72, 0xed);")
39cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_LANGUAGE_ID_INDEX, 0x48f8a522, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
40cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_AVG_DATA_BITRATE, 0x48f8a523, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
41cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_AVG_BUFFERSIZE, 0x48f8a524, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
42cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_MAX_DATA_BITRATE, 0x48f8a525, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
43cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_MAX_BUFFERSIZE, 0x48f8a526, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
44cpp_quote("EXTERN_GUID(MF_SD_ASF_STREAMBITRATES_BITRATE, 0xa8e182ed, 0xafc8, 0x43d0, 0xb0, 0xd1, 0xf6, 0x5b, 0xad, 0x9d, 0xa5, 0x58);")
45cpp_quote("EXTERN_GUID(MF_SD_ASF_METADATA_DEVICE_CONFORMANCE_TEMPLATE, 0x245e929d, 0xc44e, 0x4f7e, 0xbb, 0x3c, 0x77, 0xd4, 0xdf, 0xd2, 0x7f, 0x8a);")
46cpp_quote("EXTERN_GUID(MF_PD_ASF_INFO_HAS_AUDIO, 0x80e62295, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);")
47cpp_quote("EXTERN_GUID(MF_PD_ASF_INFO_HAS_VIDEO, 0x80e62296, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);")
48cpp_quote("EXTERN_GUID(MF_PD_ASF_INFO_HAS_NON_AUDIO_VIDEO, 0x80e62297, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);")
49cpp_quote("#if WINVER >= 0x0601")
50cpp_quote("EXTERN_GUID(MFASFINDEXER_TYPE_TIMECODE, 0x49815231, 0x6bad, 0x44fd, 0x81, 0xa, 0x3f, 0x60, 0x98, 0x4e, 0xc7, 0xfd);")
51cpp_quote("EXTERN_GUID(MF_PD_ASF_LANGLIST_LEGACYORDER, 0xf23de43d, 0x9977, 0x460d, 0xa6, 0xec, 0x32, 0x93, 0x7f, 0x16, 0xf, 0x7d);")
52cpp_quote("#endif")
53cpp_quote("")
54cpp_quote("EXTERN_GUID(MFASFMutexType_Bitrate, 0x72178C2C, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
55cpp_quote("EXTERN_GUID(MFASFMutexType_Language, 0x72178C2B, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
56cpp_quote("EXTERN_GUID(MFASFMutexType_Presentation, 0x72178C2D, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
57cpp_quote("EXTERN_GUID(MFASFMutexType_Unknown, 0x72178C2E, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
58cpp_quote("EXTERN_GUID(MFASFSampleExtension_ContentType, 0xd590dc20, 0x07bc, 0x436c, 0x9c, 0xf7, 0xf3, 0xbb, 0xfb, 0xf1, 0xa4, 0xdc);")
59cpp_quote("EXTERN_GUID(MFASFSampleExtension_Encryption_SampleID, 0x6698B84E, 0x0AFA, 0x4330, 0xAE, 0xB2, 0x1C, 0x0A, 0x98, 0xD7, 0xA4, 0x4D);")
60cpp_quote("EXTERN_GUID(MFASFSampleExtension_Encryption_KeyID, 0x76376591, 0x795f, 0x4da1, 0x86, 0xed, 0x9d, 0x46, 0xec, 0xa1, 0x09, 0xa9);")
61cpp_quote("EXTERN_GUID(MFASFSampleExtension_FileName, 0xe165ec0e, 0x19ed, 0x45d7, 0xb4, 0xa7, 0x25, 0xcb, 0xd1, 0xe2, 0x8e, 0x9b);")
62cpp_quote("EXTERN_GUID(MFASFSampleExtension_OutputCleanPoint, 0xf72a3c6f, 0x6eb4, 0x4ebc, 0xb1, 0x92, 0x9, 0xad, 0x97, 0x59, 0xe8, 0x28);")
63cpp_quote("EXTERN_GUID(MFASFSampleExtension_PixelAspectRatio, 0x1b1ee554, 0xf9ea, 0x4bc8, 0x82, 0x1a, 0x37, 0x6b, 0x74, 0xe4, 0xc4, 0xb8);")
64cpp_quote("EXTERN_GUID(MFASFSampleExtension_SampleDuration, 0xc6bd9450, 0x867f, 0x4907, 0x83, 0xa3, 0xc7, 0x79, 0x21, 0xb7, 0x33, 0xad);")
65cpp_quote("EXTERN_GUID(MFASFSampleExtension_SMPTE, 0x399595ec, 0x8667, 0x4e2d, 0x8f, 0xdb, 0x98, 0x81, 0x4c, 0xe7, 0x6c, 0x1e);")
66cpp_quote("EXTERN_GUID(MFASFSPLITTER_PACKET_BOUNDARY, 0xfe584a05, 0xe8d6, 0x42e3, 0xb1, 0x76, 0xf1, 0x21, 0x17, 0x5, 0xfb, 0x6f);")
67cpp_quote("EXTERN_GUID(MF_ASFPROFILE_MINPACKETSIZE, 0x22587626, 0x47de, 0x4168, 0x87, 0xf5, 0xb5, 0xaa, 0x9b, 0x12, 0xa8, 0xf0);")
68cpp_quote("EXTERN_GUID(MF_ASFPROFILE_MAXPACKETSIZE, 0x22587627, 0x47de, 0x4168, 0x87, 0xf5, 0xb5, 0xaa, 0x9b, 0x12, 0xa8, 0xf0);")
69cpp_quote("EXTERN_GUID(MF_ASFSTREAMCONFIG_LEAKYBUCKET1, 0xc69b5901, 0xea1a, 0x4c9b, 0xb6, 0x92, 0xe2, 0xa0, 0xd2, 0x9a, 0x8a, 0xdd);")
70cpp_quote("EXTERN_GUID(MF_ASFSTREAMCONFIG_LEAKYBUCKET2, 0xc69b5902, 0xea1a, 0x4c9b, 0xb6, 0x92, 0xe2, 0xa0, 0xd2, 0x9a, 0x8a, 0xdd);")
71
72interface IMFASFProfile;
73interface IMFASFStreamConfig;
74interface IMFASFMutualExclusion;
75interface IMFASFStreamPrioritization;
76
77cpp_quote("#define MFASFINDEXER_PER_ENTRY_BYTES_DYNAMIC 0xffff")
78cpp_quote("#define MFASFINDEXER_NO_FIXED_INTERVAL 0xffffffff")
79cpp_quote("#define MFASFINDEXER_READ_FOR_REVERSEPLAYBACK_OUTOFDATASEGMENT 0xffffffffffffffffll")
80cpp_quote("#define MFASFINDEXER_APPROX_SEEK_TIME_UNKNOWN 0xffffffffffffffffll")
81cpp_quote("")
82cpp_quote("#define MFASF_MIN_HEADER_BYTES (sizeof (GUID) + sizeof (QWORD))")
83cpp_quote("")
84cpp_quote("#define MFASF_MAX_STREAM_NUMBER 127")
85cpp_quote("#define MFASF_INVALID_STREAM_NUMBER (MFASF_MAX_STREAM_NUMBER + 1)")
86cpp_quote("#define MFASF_PAYLOADEXTENSION_MAX_SIZE 0xff")
87cpp_quote("#define MFASF_PAYLOADEXTENSION_VARIABLE_SIZE 0xffff")
88cpp_quote("#define MFASF_DEFAULT_BUFFER_WINDOW_MS 3000")
89
90cpp_quote("")
91typedef enum MFASF_SPLITTERFLAGS {
92 MFASF_SPLITTER_REVERSE = 0x00000001,
93 MFASF_SPLITTER_WMDRM = 0x00000002,
94} MFASF_SPLITTERFLAGS;
95
96typedef enum ASF_STATUSFLAGS {
97 ASF_STATUSFLAGS_INCOMPLETE = 0x1
98#if WINVER >= 0x0601
99 ,ASF_STATUSFLAGS_NONFATAL_ERROR = 0x2
100#endif
101} ASF_STATUSFLAGS;
102
103typedef enum MFASF_MULTIPLEXERFLAGS {
104 MFASF_MULTIPLEXER_AUTOADJUST_BITRATE = 0x1
105} MFASF_MULTIPLEXERFLAGS;
106
107typedef enum MFASF_INDEXERFLAGS {
108 MFASF_INDEXER_WRITE_NEW_INDEX = 0x1,
109 MFASF_INDEXER_READ_FOR_REVERSEPLAYBACK = 0x2,
110 MFASF_INDEXER_WRITE_FOR_LIVEREAD = 0x4
111} MFASF_INDEXER_FLAGS;
112
113typedef enum MFASF_STREAMSELECTORFLAGS {
114 MFASF_STREAMSELECTOR_DISABLE_THINNING = 0x00000001,
115 MFASF_STREAMSELECTOR_USE_AVERAGE_BITRATE = 0x00000002,
116} MFASF_STREAMSELECTOR_FLAGS;
117
118typedef enum ASF_SELECTION_STATUS {
119 ASF_STATUS_NOTSELECTED = 0,
120 ASF_STATUS_CLEANPOINTSONLY = 1,
121 ASF_STATUS_ALLDATAUNITS = 2,
122} ASF_SELECTION_STATUS;
123
124typedef enum _MFSINK_WMDRMACTION {
125 MFSINK_WMDRMACTION_UNDEFINED = 0,
126 MFSINK_WMDRMACTION_ENCODE = 1,
127 MFSINK_WMDRMACTION_TRANSCODE = 2,
128 MFSINK_WMDRMACTION_TRANSCRYPT = 3,
129 MFSINK_WMDRMACTION_LAST = 3
130} MFSINK_WMDRMACTION;
131
132cpp_quote("")
133typedef struct ASF_MUX_STATISTICS {
134 DWORD cFramesWritten;
135 DWORD cFramesDropped;
136} ASF_MUX_STATISTICS;
137
138typedef struct _ASF_INDEX_IDENTIFIER {
139 GUID guidIndexType;
140 WORD wStreamNumber;
141} ASF_INDEX_IDENTIFIER;
142
143typedef struct _ASF_INDEX_DESCRIPTOR {
144 ASF_INDEX_IDENTIFIER Identifier;
145 WORD cPerEntryBytes;
146 WCHAR szDescription[32];
147 DWORD dwInterval;
148} ASF_INDEX_DESCRIPTOR;
149
150cpp_quote("")
151[object, uuid (B1DCA5CD-D5DA-4451-8e9e-DB5C59914EAD), local]
152interface IMFASFContentInfo : IUnknown {
153 HRESULT GetHeaderSize ([in] IMFMediaBuffer *pIStartOfContent,[out] QWORD *cbHeaderSize);
154 HRESULT ParseHeader ([in] IMFMediaBuffer *pIHeaderBuffer,[in] QWORD cbOffsetWithinHeader);
155 HRESULT GenerateHeader ([in, out] IMFMediaBuffer *pIHeader,[out] DWORD *pcbHeader);
156 HRESULT GetProfile ([out] IMFASFProfile **ppIProfile);
157 HRESULT SetProfile ([in] IMFASFProfile *pIProfile);
158 HRESULT GeneratePresentationDescriptor ([out] IMFPresentationDescriptor **ppIPresentationDescriptor);
159 HRESULT GetEncodingConfigurationPropertyStore ([in] WORD wStreamNumber,[out] IPropertyStore **ppIStore);
160};
161
162[object, uuid (12558291-E399-11d5-BC2A-00b0d0f3f4ab), local]
163interface IMFASFMutualExclusion : IUnknown {
164 HRESULT GetType ([out] GUID *pguidType);
165 HRESULT SetType ([in] REFGUID guidType);
166 HRESULT GetRecordCount ([out] DWORD *pdwRecordCount);
167 HRESULT GetStreamsForRecord ([in] DWORD dwRecordNumber,[out] WORD *pwStreamNumArray,[in, out] DWORD *pcStreams);
168 HRESULT AddStreamForRecord ([in] DWORD dwRecordNumber,[in] WORD wStreamNumber);
169 HRESULT RemoveStreamFromRecord ([in] DWORD dwRecordNumber,[in] WORD wStreamNumber);
170 HRESULT RemoveRecord ([in] DWORD dwRecordNumber);
171 HRESULT AddRecord ([out] DWORD *pdwRecordNumber);
172 HRESULT Clone ([out] IMFASFMutualExclusion **ppIMutex);
173};
174
175[object, uuid (699bdc27-bbaf-49ff-8e38-9c39c9b5e088), local]
176interface IMFASFStreamPrioritization : IUnknown {
177 HRESULT GetStreamCount ([out] DWORD *pdwStreamCount);
178 HRESULT GetStream ([in] DWORD dwStreamIndex,[out] WORD *pwStreamNumber,[out] WORD *pwStreamFlags);
179 HRESULT AddStream ([in] WORD wStreamNumber,[in] WORD wStreamFlags);
180 HRESULT RemoveStream ([in] DWORD dwStreamIndex);
181 HRESULT Clone ([out] IMFASFStreamPrioritization **ppIStreamPrioritization);
182};
183
184[object, local, uuid (12558295-E399-11d5-BC2A-00b0d0f3f4ab)]
185interface IMFASFSplitter : IUnknown {
186 HRESULT Initialize ([in] IMFASFContentInfo *pIContentInfo);
187 HRESULT SetFlags ([in] DWORD dwFlags);
188 HRESULT GetFlags ([out] DWORD *pdwFlags);
189 HRESULT SelectStreams ([in] WORD *pwStreamNumbers,[in] WORD wNumStreams);
190 HRESULT GetSelectedStreams ([out] WORD *pwStreamNumbers,[in, out] WORD *pwNumStreams);
191 HRESULT ParseData ([in] IMFMediaBuffer *pIBuffer,[in] DWORD cbBufferOffset,[in] DWORD cbLength);
192 HRESULT GetNextSample ([out] DWORD *pdwStatusFlags,[out] WORD *pwStreamNumber,[out] IMFSample **ppISample);
193 HRESULT Flush ();
194 HRESULT GetLastSendTime ([out] DWORD *pdwLastSendTime);
195};
196
197[object, local, uuid (57bdd80a-9b38-4838-B737-C58F670D7D4F)]
198interface IMFASFMultiplexer : IUnknown {
199 HRESULT Initialize ([in] IMFASFContentInfo *pIContentInfo);
200 HRESULT SetFlags ([in] DWORD dwFlags);
201 HRESULT GetFlags ([out] DWORD *pdwFlags);
202 HRESULT ProcessSample ([in] WORD wStreamNumber,[in] IMFSample *pISample,[in] LONGLONG hnsTimestampAdjust);
203 HRESULT GetNextPacket ([out] DWORD *pdwStatusFlags,[out] IMFSample **ppIPacket);
204 HRESULT Flush ();
205 HRESULT End ([in, out] IMFASFContentInfo *pIContentInfo);
206 HRESULT GetStatistics ([in] WORD wStreamNumber,[out] ASF_MUX_STATISTICS *pMuxStats);
207 HRESULT SetSyncTolerance ([in] DWORD msSyncTolerance);
208};
209
210[object, uuid (53590f48-DC3B-4297-813f-787761ad7b3e), local]
211interface IMFASFIndexer : IUnknown {
212 HRESULT SetFlags ([in] DWORD dwFlags);
213 HRESULT GetFlags ([out] DWORD *pdwFlags);
214 HRESULT Initialize ([in] IMFASFContentInfo *pIContentInfo);
215 HRESULT GetIndexPosition ([in] IMFASFContentInfo *pIContentInfo,[out] QWORD *pcbIndexOffset);
216 HRESULT SetIndexByteStreams ([in] IMFByteStream **ppIByteStreams,[in] DWORD cByteStreams);
217 HRESULT GetIndexByteStreamCount ([out] DWORD *pcByteStreams);
218 HRESULT GetIndexStatus ([in] ASF_INDEX_IDENTIFIER *pIndexIdentifier,[out] WINBOOL *pfIsIndexed,[out] BYTE *pbIndexDescriptor,[in, out] DWORD *pcbIndexDescriptor);
219 HRESULT SetIndexStatus ([in] BYTE *pbIndexDescriptor,[in] DWORD cbIndexDescriptor,[in] WINBOOL fGenerateIndex);
220 HRESULT GetSeekPositionForValue ([in] const PROPVARIANT *pvarValue,[in] ASF_INDEX_IDENTIFIER *pIndexIdentifier,[out] QWORD *pcbOffsetWithinData,[out, optional] MFTIME *phnsApproxTime,[out, optional] DWORD *pdwPayloadNumberOfStreamWithinPacket);
221 HRESULT GenerateIndexEntries ([in] IMFSample *pIASFPacketSample);
222 HRESULT CommitIndex ([in] IMFASFContentInfo *pIContentInfo);
223 HRESULT GetIndexWriteSpace ([out] QWORD *pcbIndexWriteSpace);
224 HRESULT GetCompletedIndex ([in] IMFMediaBuffer *pIIndexBuffer,[in] QWORD cbOffsetWithinIndex);
225};
226
227[object, uuid (d01bad4a-4fa0-4a60-9349-c27e62da9d41), local]
228interface IMFASFStreamSelector : IUnknown {
229 HRESULT GetStreamCount ([out] DWORD *pcStreams);
230 HRESULT GetOutputCount ([out] DWORD *pcOutputs);
231 HRESULT GetOutputStreamCount ([in] DWORD dwOutputNum,[out] DWORD *pcStreams);
232 HRESULT GetOutputStreamNumbers ([in] DWORD dwOutputNum,[out] WORD *rgwStreamNumbers);
233 HRESULT GetOutputFromStream ([in] WORD wStreamNum,[out] DWORD *pdwOutput);
234 HRESULT GetOutputOverride ([in] DWORD dwOutputNum,[out] ASF_SELECTION_STATUS *pSelection);
235 HRESULT SetOutputOverride ([in] DWORD dwOutputNum,[in] ASF_SELECTION_STATUS Selection);
236 HRESULT GetOutputMutexCount ([in] DWORD dwOutputNum,[out] DWORD *pcMutexes);
237 HRESULT GetOutputMutex ([in] DWORD dwOutputNum,[in] DWORD dwMutexNum,[out] IUnknown **ppMutex);
238 HRESULT SetOutputMutexSelection ([in] DWORD dwOutputNum,[in] DWORD dwMutexNum,[in] WORD wSelectedRecord);
239 HRESULT GetBandwidthStepCount ([out] DWORD *pcStepCount);
240 HRESULT GetBandwidthStep ([in] DWORD dwStepNum,[out] DWORD *pdwBitrate,[out] WORD *rgwStreamNumbers,[out] ASF_SELECTION_STATUS *rgSelections);
241 HRESULT BitrateToStepNumber ([in] DWORD dwBitrate,[out] DWORD *pdwStepNum);
242 HRESULT SetStreamSelectorFlags ([in] DWORD dwStreamSelectorFlags);
243};
244
245cpp_quote("#if WINVER >= 0x0601")
246[object, uuid (3d1ff0ea-679a-4190-8d46-7fa69e8c7e15)]
247interface IMFDRMNetHelper : IUnknown {
248 HRESULT ProcessLicenseRequest ([in, size_is (cbLicenseRequest)] BYTE *pLicenseRequest,[in] DWORD cbLicenseRequest,[out, size_is (,*pcbLicenseResponse)] BYTE **ppLicenseResponse,[out] DWORD *pcbLicenseResponse,[out] BSTR *pbstrKID);
249 HRESULT GetChainedLicenseResponse ([out, size_is (,*pcbLicenseResponse)] BYTE **ppLicenseResponse,[out] DWORD *pcbLicenseResponse);
250};
251cpp_quote("#endif")
252
253[object, local, uuid (D267BF6A-028b-4e0d-903d-43f0ef82d0d4)]
254interface IMFASFProfile : IMFAttributes {
255 HRESULT GetStreamCount ([out] DWORD *pcStreams);
256 HRESULT GetStream ([in] DWORD dwStreamIndex,[out] WORD *pwStreamNumber,[out] IMFASFStreamConfig **ppIStream);
257 HRESULT GetStreamByNumber ([in] WORD wStreamNumber,[out] IMFASFStreamConfig **ppIStream);
258 HRESULT SetStream ([in] IMFASFStreamConfig *pIStream);
259 HRESULT RemoveStream ([in] WORD wStreamNumber);
260 HRESULT CreateStream ([in] IMFMediaType *pIMediaType,[out] IMFASFStreamConfig **ppIStream);
261 HRESULT GetMutualExclusionCount ([out] DWORD *pcMutexs);
262 HRESULT GetMutualExclusion ([in] DWORD dwMutexIndex,[out] IMFASFMutualExclusion **ppIMutex);
263 HRESULT AddMutualExclusion ([in] IMFASFMutualExclusion *pIMutex);
264 HRESULT RemoveMutualExclusion ([in] DWORD dwMutexIndex);
265 HRESULT CreateMutualExclusion ([out] IMFASFMutualExclusion **ppIMutex);
266 HRESULT GetStreamPrioritization ([out] IMFASFStreamPrioritization **ppIStreamPrioritization);
267 HRESULT AddStreamPrioritization ([in] IMFASFStreamPrioritization *pIStreamPrioritization);
268 HRESULT RemoveStreamPrioritization ();
269 HRESULT CreateStreamPrioritization ([out] IMFASFStreamPrioritization **ppIStreamPrioritization);
270 HRESULT Clone ([out] IMFASFProfile **ppIProfile);
271};
272
273[object, local, uuid (9e8ae8d2-DBBD-4200-9aca-06e6df484913)]
274interface IMFASFStreamConfig : IMFAttributes {
275 HRESULT GetStreamType ([out] GUID *pguidStreamType);
276 WORD GetStreamNumber ();
277 HRESULT SetStreamNumber ([in] WORD wStreamNum);
278 HRESULT GetMediaType ([out] IMFMediaType **ppIMediaType);
279 HRESULT SetMediaType ([in] IMFMediaType *pIMediaType);
280 HRESULT GetPayloadExtensionCount ([out] WORD *pcPayloadExtensions);
281 HRESULT GetPayloadExtension ([in] WORD wPayloadExtensionNumber,[out] GUID *pguidExtensionSystemID,[out] WORD *pcbExtensionDataSize,[out, optional, size_is (*pcbExtensionSystemInfo)] BYTE *pbExtensionSystemInfo,[in, out, optional] DWORD *pcbExtensionSystemInfo);
282 HRESULT AddPayloadExtension ([in] GUID guidExtensionSystemID,[in] WORD cbExtensionDataSize,[in, size_is (cbExtensionSystemInfo)] BYTE *pbExtensionSystemInfo,[in] DWORD cbExtensionSystemInfo);
283 HRESULT RemoveAllPayloadExtensions ();
284 HRESULT Clone ([out] IMFASFStreamConfig **ppIStreamConfig);
285};
286
287 cpp_quote("")
288cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFMEDIASINK_BASE_SENDTIME = { { 0xcddcbc82, 0x3411, 0x4119, 0x91, 0x35, 0x84, 0x23, 0xc4, 0x1b, 0x39, 0x57}, 3 };")
289cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFMEDIASINK_AUTOADJUST_BITRATE = { { 0xcddcbc82, 0x3411, 0x4119, 0x91, 0x35, 0x84, 0x23, 0xc4, 0x1b, 0x39, 0x57}, 4 };")
290cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFMEDIASINK_DRMACTION = { { 0xa1db6f6c, 0x1d0a, 0x4cb6, 0x82, 0x54, 0xcb, 0x36, 0xbe, 0xed, 0xbc, 0x48}, 5 };")
291cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFSTREAMSINK_CORRECTED_LEAKYBUCKET = { { 0xa2f152fb, 0x8ad9, 0x4a11, 0xb3, 0x45, 0x2c, 0xe2, 0xfa, 0xd8, 0x72, 0x3d}, 1 };")
292cpp_quote("")
293cpp_quote("STDAPI MFCreateASFContentInfo(IMFASFContentInfo **ppIContentInfo);")
294cpp_quote("STDAPI MFCreateASFIndexer(IMFASFIndexer **ppIIndexer);")
295cpp_quote("STDAPI MFCreateASFIndexerByteStream(IMFByteStream *pIContentByteStream, QWORD cbIndexStartOffset, IMFByteStream **pIIndexByteStream);")
296cpp_quote("STDAPI MFCreateASFMediaSink(IMFByteStream *pIByteStream, IMFMediaSink **ppIMediaSink);")
297cpp_quote("STDAPI MFCreateASFMediaSinkActivate(LPCWSTR pwszFileName, IMFASFContentInfo *pContentInfo, IMFActivate **ppIActivate);")
298cpp_quote("STDAPI MFCreateASFMultiplexer(IMFASFMultiplexer **ppIMultiplexer);")
299cpp_quote("STDAPI MFCreateASFProfile(IMFASFProfile **ppIProfile);")
300cpp_quote("STDAPI MFCreateASFProfileFromPresentationDescriptor(IMFPresentationDescriptor *pIPD, IMFASFProfile **ppIProfile);")
301cpp_quote("STDAPI MFCreateASFSplitter(IMFASFSplitter **ppISplitter);")
302cpp_quote("STDAPI MFCreateASFStreamingMediaSink(IMFByteStream *pIByteStream, IMFMediaSink **ppIMediaSink);")
303cpp_quote("STDAPI MFCreateASFStreamingMediaSinkActivate(IMFActivate *pByteStreamActivate, IMFASFContentInfo *pContentInfo, IMFActivate **ppIActivate);")
304cpp_quote("STDAPI MFCreateASFStreamSelector(IMFASFProfile *pIASFProfile, IMFASFStreamSelector **ppSelector);")
305cpp_quote("STDAPI MFCreatePresentationDescriptorFromASFProfile(IMFASFProfile *pIProfile, IMFPresentationDescriptor **ppIPD);")
306cpp_quote("HRESULT STDMETHODCALLTYPE MFCreateWMVEncoderActivate(IMFMediaType *pMediaType, IPropertyStore *pEncodingConfigurationProperties, IMFActivate **ppActivate);")
307cpp_quote("HRESULT STDMETHODCALLTYPE MFCreateWMAEncoderActivate(IMFMediaType *pMediaType, IPropertyStore *pEncodingConfigurationProperties, IMFActivate **ppActivate);")
308
309cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.