2 * Copyright 2016 Michael Müller
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
"mfobjects.idl";
20 import
"mftransform.idl";
22 typedef unsigned __int64 TOPOID
;
23 typedef LONGLONG MFTIME
;
24 typedef DWORD MFSequencerElementId
;
26 typedef enum MF_TOPOLOGY_TYPE
28 MF_TOPOLOGY_OUTPUT_NODE
,
29 MF_TOPOLOGY_SOURCESTREAM_NODE
,
30 MF_TOPOLOGY_TRANSFORM_NODE
,
32 MF_TOPOLOGY_MAX
= 0xffffffff
35 typedef enum _MFCLOCK_STATE
37 MFCLOCK_STATE_INVALID
,
38 MFCLOCK_STATE_RUNNING
,
39 MFCLOCK_STATE_STOPPED
,
43 typedef enum MF_OBJECT_TYPE
45 MF_OBJECT_MEDIASOURCE
,
50 cpp_quote
("#define MFCLOCK_FREQUENCY_HNS 10000000")
51 cpp_quote
("#define MFCLOCK_TOLERANCE_UNKNOWN 50000")
52 cpp_quote
("#define MFCLOCK_JITTER_ISR 1000")
53 cpp_quote
("#define MFCLOCK_JITTER_DPC 4000")
54 cpp_quote
("#define MFCLOCK_JITTER_PASSIVE 10000")
56 typedef struct _MFCLOCK_PROPERTIES
58 unsigned __int64 qwCorrelationRate
;
61 unsigned __int64 qwClockFrequency
;
62 DWORD dwClockTolerance
;
66 typedef enum _MFCLOCK_CHARACTERISTICS_FLAGS
68 MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ
= 0x00000002,
69 MFCLOCK_CHARACTERISTICS_FLAG_ALWAYS_RUNNING
= 0x00000004,
70 MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK
= 0x00000008,
71 } MFCLOCK_CHARACTERISTICS_FLAGS
;
73 typedef enum MFSESSION_SETTOPOLOGY_FLAGS
75 MFSESSION_SETTOPOLOGY_IMMEDIATE
= 0x00000001,
76 MFSESSION_SETTOPOLOGY_NORESOLUTION
= 0x00000002,
77 MFSESSION_SETTOPOLOGY_CLEAR_CURRENT
= 0x00000004,
78 } MFSESSION_SETTOPOLOGY_FLAGS
;
80 typedef enum MFSESSION_GETFULLTOPOLOGY_FLAGS
82 MFSESSION_GETFULLTOPOLOGY_CURRENT
= 0x00000001,
83 } MFSESSION_GETFULLTOPOLOGY_FLAGS
;
85 typedef enum _MF_CONNECT_METHOD
87 MF_CONNECT_DIRECT
= 0x00000000,
88 MF_CONNECT_ALLOW_CONVERTER
= 0x00000001,
89 MF_CONNECT_ALLOW_DECODER
= 0x00000003,
90 MF_CONNECT_RESOLVE_INDEPENDENT_OUTPUTTYPES
= 0x00000004,
91 MF_CONNECT_AS_OPTIONAL
= 0x00010000,
92 MF_CONNECT_AS_OPTIONAL_BRANCH
= 0x00020000,
95 typedef enum _MF_TOPOLOGY_RESOLUTION_STATUS_FLAGS
97 MF_TOPOLOGY_RESOLUTION_SUCCEEDED
= 0x00000000,
98 MF_OPTIONAL_NODE_REJECTED_MEDIA_TYPE
= 0x00000001,
99 MF_OPTIONAL_NODE_REJECTED_PROTECTED_PROCESS
= 0x00000002,
100 } MF_TOPOLOGY_RESOLUTION_STATUS_FLAGS
;
102 typedef enum _MFSTREAMSINK_MARKER_TYPE
104 MFSTREAMSINK_MARKER_DEFAULT
,
105 MFSTREAMSINK_MARKER_ENDOFSEGMENT
,
106 MFSTREAMSINK_MARKER_TICK
,
107 MFSTREAMSINK_MARKER_EVENT
,
108 } MFSTREAMSINK_MARKER_TYPE
;
112 uuid(2eb1e945
-18b8
-4139-9b1a
-d5d584818530
),
114 interface IMFClock
: IUnknown
116 HRESULT GetClockCharacteristics
([out] DWORD
*characteristics
);
117 HRESULT GetCorrelatedTime
([in] DWORD reserved
, [out] LONGLONG
*clock_time
, [out] MFTIME
*system_time
);
118 HRESULT GetContinuityKey
([out] DWORD
*key
);
119 HRESULT GetState
([in] DWORD reserved
, [out] MFCLOCK_STATE
*state
);
120 HRESULT GetProperties
([out] MFCLOCK_PROPERTIES
*props
);
123 typedef enum _MFRATE_DIRECTION
131 uuid(0a9ccdbc
-d797
-4563-9667-94ec5d79292d
),
133 interface IMFRateSupport
: IUnknown
135 HRESULT GetSlowestRate
(
136 [in] MFRATE_DIRECTION direction
,
140 HRESULT GetFastestRate
(
141 [in] MFRATE_DIRECTION direction
,
145 HRESULT IsRateSupported
(
148 [in, out, unique] float *nearest_supported_rate
);
153 uuid(88ddcd21
-03c3
-4275-91ed
-55ee3929328f
)
155 interface IMFRateControl
: IUnknown
161 [in, out, unique] BOOL
*thin
,
162 [in, out, unique] float *rate
);
165 typedef enum MFTIMER_FLAGS
167 MFTIMER_RELATIVE
= 0x00000001,
172 uuid(e56e4cbd
-8f70
-49d8
-a0f8
-edb3d6ab9bf2
),
175 interface IMFTimer
: IUnknown
180 [in] IMFAsyncCallback
*callback,
181 [in] IUnknown
*state
,
182 [out] IUnknown
**key
);
189 uuid(83cf873a
-f6da
-4bc8
-823f
-bacfd55dc430
),
191 interface IMFTopologyNode
: IMFAttributes
193 HRESULT SetObject
([in] IUnknown
*object);
194 HRESULT GetObject
([out] IUnknown
**object);
195 HRESULT GetNodeType
([out] MF_TOPOLOGY_TYPE
*type
);
196 HRESULT GetTopoNodeID
([out] TOPOID
*id);
197 HRESULT SetTopoNodeID
([in] TOPOID
id);
198 HRESULT GetInputCount
([out] DWORD
*count
);
199 HRESULT GetOutputCount
([out] DWORD
*count
);
200 [local] HRESULT ConnectOutput
([in] DWORD output_index
, [in] IMFTopologyNode
*node
, [in] DWORD input_index
);
201 [local] HRESULT DisconnectOutput
([in] DWORD index
);
202 HRESULT GetInput
([in] DWORD input_index
, [out] IMFTopologyNode
**node
, [out] DWORD
*output_index
);
203 HRESULT GetOutput
([in] DWORD output_index
, [out] IMFTopologyNode
**node
, [out] DWORD
*input_index
);
204 [local] HRESULT SetOutputPrefType
([in] DWORD index
, [in] IMFMediaType
*type
);
205 [local] HRESULT GetOutputPrefType
([in] DWORD output_index
, [out] IMFMediaType
**type
);
206 [call_as
(GetOutputPrefType
)] HRESULT RemoteGetOutputPrefType
([in] DWORD index
, [out] DWORD
*length
,
207 [out, size_is(, *length
)] BYTE **data
);
208 [local] HRESULT SetInputPrefType
([in] DWORD index
, [in] IMFMediaType
*type
);
209 [local] HRESULT GetInputPrefType
([in] DWORD index
, [out] IMFMediaType
**type
);
210 [call_as
(GetInputPrefType
)] HRESULT RemoteGetInputPrefType
([in] DWORD index
, [out] DWORD
*length
,
211 [out, size_is(, *length
)] BYTE **data
);
212 HRESULT CloneFrom
([in] IMFTopologyNode
*node
);
217 uuid(83cf873a
-f6da
-4bc8
-823f
-bacfd55dc433
),
219 interface IMFTopology
: IMFAttributes
221 HRESULT GetTopologyID
([out] TOPOID
*id);
222 [local] HRESULT AddNode
([in] IMFTopologyNode
*node
);
223 [local] HRESULT RemoveNode
([in] IMFTopologyNode
*node
);
224 HRESULT GetNodeCount
([out] WORD
*nodes
);
225 HRESULT GetNode
([in] WORD index
, [out] IMFTopologyNode
**node
);
226 [local] HRESULT Clear
();
227 HRESULT CloneFrom
([in] IMFTopology
*topology
);
228 HRESULT GetNodeByID
([in] TOPOID
id, [out] IMFTopologyNode
**node
);
229 HRESULT GetSourceNodeCollection
([out] IMFCollection
**collection
);
230 HRESULT GetOutputNodeCollection
([out] IMFCollection
**collection
);
235 uuid(de9a6157
-f660
-4643-b56a
-df9f7998c7cd
),
238 interface IMFTopoLoader
: IUnknown
240 HRESULT Load
([in] IMFTopology
*input_topology
, [out] IMFTopology
**output_topology
,
241 [in] IMFTopology
*current_topology
);
246 uuid(90377834-21d0
-4dee
-8214-ba2e3e6c1127
),
248 interface IMFMediaSession
: IMFMediaEventGenerator
250 HRESULT SetTopology
([in] DWORD flags
, [in] IMFTopology
*topology
);
251 HRESULT ClearTopologies
();
252 HRESULT Start
([in, unique] const GUID
*format
, [in, unique] const PROPVARIANT
*start
);
257 HRESULT GetClock
([out] IMFClock
**clock
);
258 HRESULT GetSessionCapabilities
([out] DWORD
*caps
);
259 HRESULT GetFullTopology
([in] DWORD flags
, [in] TOPOID
id, [out] IMFTopology
**topology
);
264 uuid(bb420aa4
-765b
-4a1f
-91fe
-d6a8a143924c
),
267 interface IMFByteStreamHandler
: IUnknown
269 HRESULT BeginCreateObject
(
270 [in] IMFByteStream
*stream
,
271 [in] const WCHAR
*url
,
273 [in] IPropertyStore
*props
,
274 [out] IUnknown
**cancel_cookie
,
275 [in] IMFAsyncCallback
*callback,
276 [in] IUnknown
*state
);
278 HRESULT EndCreateObject
(
279 [in] IMFAsyncResult
*result
,
280 [out] MF_OBJECT_TYPE
*obj_type
,
281 [out] IUnknown
**object);
283 HRESULT CancelObjectCreation
(
284 [in] IUnknown
*cancel_cookie
);
286 HRESULT GetMaxNumberOfBytesRequiredForResolution
(
290 typedef [public] struct _MF_LEAKY_BUCKET_PAIR
293 DWORD msBufferWindow
;
294 } MF_LEAKY_BUCKET_PAIR
;
296 typedef [public] struct _MFBYTESTREAM_BUFFERING_PARAMS
298 QWORD cbTotalFileSize
;
299 QWORD cbPlayableDataSize
;
300 MF_LEAKY_BUCKET_PAIR
*prgBuckets
;
302 QWORD qwNetBufferingTime
;
303 QWORD qwExtraBufferingTimeDuringSeek
;
304 QWORD qwPlayDuration
;
306 } MFBYTESTREAM_BUFFERING_PARAMS
;
310 uuid(6d66d782
-1d4f
-4db7
-8c63
-cb8c77f1ef5e
),
312 interface IMFByteStreamBuffering
: IUnknown
314 HRESULT SetBufferingParams
(
315 [in] MFBYTESTREAM_BUFFERING_PARAMS
*params
);
317 HRESULT EnableBuffering
(
320 HRESULT StopBuffering
();
325 uuid(f5042ea4
-7a96
-4a75
-aa7b
-2be1ef7f88d5
),
327 interface IMFByteStreamCacheControl
: IUnknown
329 HRESULT StopBackgroundTransfer
();
334 uuid(64976bfa
-fb61
-4041-9069-8c9a5f659beb
),
336 interface IMFByteStreamTimeSeek
: IUnknown
338 HRESULT IsTimeSeekSupported
(
339 [out] BOOL
*is_supported
);
342 [in] QWORD position
);
344 HRESULT GetTimeSeekResult
(
345 [out] QWORD
*start_time
,
346 [out] QWORD
*stop_time
,
347 [out] QWORD
*duration
);
352 uuid(6d4c7b74
-52a0
-4bb7
-b0db
-55f29f47a668
),
355 interface IMFSchemeHandler
: IUnknown
357 HRESULT BeginCreateObject
(
358 [in] const WCHAR
*url
,
360 [in] IPropertyStore
*props
,
361 [out] IUnknown
**cancel_cookie
,
362 [in] IMFAsyncCallback
*callback,
363 [in] IUnknown
*state
);
365 HRESULT EndCreateObject
(
366 [in] IMFAsyncResult
*result
,
367 [out] MF_OBJECT_TYPE
*obj_type
,
368 [out] IUnknown
**object);
370 HRESULT CancelObjectCreation
(
371 [in] IUnknown
*cancel_cookie
);
376 uuid(fbe5a32d
-a497
-4b61
-bb85
-97b1a848a6e3
)
378 interface IMFSourceResolver
: IUnknown
380 [local] HRESULT CreateObjectFromURL
([in] const WCHAR
*url
, [in] DWORD flags
, [in] IPropertyStore
*props
,
381 [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
382 [local] HRESULT CreateObjectFromByteStream
([in] IMFByteStream
*stream
, [in] const WCHAR
*url
, [in] DWORD flags
,
383 [in] IPropertyStore
*props
, [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
384 [local] HRESULT BeginCreateObjectFromURL
([in] const WCHAR
*url
, [in] DWORD flags
, [in] IPropertyStore
*props
,
385 [out] IUnknown
**cancel_cookie
, [in] IMFAsyncCallback
*callback, [in] IUnknown
*unk_state
);
386 [call_as
(BeginCreateObjectFromURL
)] HRESULT RemoteBeginCreateObjectFromURL
([in, string] const WCHAR
*url
,
387 [in] DWORD flags
, [in] IPropertyStore
*props
, [in] IMFRemoteAsyncCallback
*callback);
388 [local] HRESULT EndCreateObjectFromURL
([in] IMFAsyncResult
*result
, [out] MF_OBJECT_TYPE
*obj_type
,
389 [out] IUnknown
**object);
390 [call_as
(EndCreateObjectFromURL
)] HRESULT RemoteEndCreateObjectFromURL
([in] IUnknown
*result
,
391 [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
392 [local] HRESULT BeginCreateObjectFromByteStream
([in] IMFByteStream
*stream
, [in] const WCHAR
*url
,
393 [in] DWORD flags
, [in] IPropertyStore
*props
, [out] IUnknown
**cancel_cookie
,
394 [in] IMFAsyncCallback
*callback, [in] IUnknown
*unk_state
);
395 [call_as
(BeginCreateObjectFromByteStream
)] HRESULT RemoteBeginCreateObjectFromByteStream
([in] IMFByteStream
*stream
,
396 [in, unique] const WCHAR
*url
, [in] DWORD flags
, [in, unique] IPropertyStore
*props
,
397 [in] IMFRemoteAsyncCallback
*callback);
398 [local] HRESULT EndCreateObjectFromByteStream
([in] IMFAsyncResult
*result
, [out] MF_OBJECT_TYPE
*obj_type
,
399 [out] IUnknown
**object);
400 [call_as
(EndCreateObjectFromByteStream
)] HRESULT RemoteEndCreateObjectFromByteStream
([in] IUnknown
*result
,
401 [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
402 [local] HRESULT CanceObjectCreation
([in] IUnknown
*cancel_cookie
);
407 uuid(e93dcf6c
-4b07
-4e1e
-8123
-aa16ed6eadf5
)
409 interface IMFMediaTypeHandler
: IUnknown
412 HRESULT IsMediaTypeSupported
([in] IMFMediaType
*in_type
, [out] IMFMediaType
**out_type
);
414 [call_as
(IsMediaTypeSupported
)]
415 HRESULT RemoteIsMediaTypeSupported
([in, size_is(size
)] BYTE *data
, [in] DWORD size
,
416 [out, size_is(, *match_count
)] BYTE **match
, [out] DWORD
*match_count
);
418 HRESULT GetMediaTypeCount
([out] DWORD
*count
);
421 HRESULT GetMediaTypeByIndex
([in] DWORD index
, [out] IMFMediaType
**type
);
423 [call_as
(GetMediaTypeByIndex
)]
424 HRESULT RemoteGetMediaTypeByIndex
([in] DWORD index
, [out, size_is(, *count
)] BYTE **data
,
428 HRESULT SetCurrentMediaType
([in] IMFMediaType
*type
);
430 [call_as
(SetCurrentMediaType
)]
431 HRESULT RemoteSetCurrentMediaType
([in, size_is(count
)] BYTE *data
, [in] DWORD count
);
434 HRESULT GetCurrentMediaType
([out] IMFMediaType
**type
);
436 [call_as
(GetCurrentMediaType
)]
437 HRESULT RemoteGetCurrentMediaType
([out, size_is(, *count
)] BYTE **data
, [out] DWORD
*count
);
439 HRESULT GetMajorType
([out] GUID
*type
);
444 uuid(56c03d9c
-9dbb
-45f5
-ab4b
-d80f47c05938
)
446 interface IMFStreamDescriptor
: IMFAttributes
448 HRESULT GetStreamIdentifier
([out] DWORD
*identifier
);
450 HRESULT GetMediaTypeHandler
([out] IMFMediaTypeHandler
**handler
);
455 uuid(f6696e82
-74f7
-4f3d
-a178
-8a5e09c3659f
)
457 interface IMFClockStateSink
: IUnknown
459 HRESULT OnClockStart
(
460 [in] MFTIME hnsSystemTime
,
461 [in] LONGLONG llClockStartOffset
464 [in] MFTIME hnssSystemTime
466 HRESULT OnClockPause
(
467 [in] MFTIME hnsSystemTime
469 HRESULT OnClockRestart
(
470 [in] MFTIME hnsSystemTime
472 HRESULT OnClockSetRate
(
473 [in] MFTIME hnsSystemTime
,
480 uuid(fa993888
-4383-415a
-a930
-dd472a8cf6f7
)
482 interface IMFGetService
: IUnknown
485 [in] REFGUID guidService
,
487 [out, iid_is(riid
)] LPVOID
*ppvObject
493 uuid(03cb2711
-24d7
-4db6
-a17f
-f3a7a479a536
),
495 interface IMFPresentationDescriptor
: IMFAttributes
497 HRESULT GetStreamDescriptorCount
(
498 [out] DWORD
*count
);
500 HRESULT GetStreamDescriptorByIndex
(
502 [out] BOOL
*selected
,
503 [out] IMFStreamDescriptor
**descriptor
);
505 HRESULT SelectStream
(
508 HRESULT DeselectStream
(
512 [out] IMFPresentationDescriptor
**descriptor
);
517 uuid(197cd219
-19cb
-4de1
-a64c
-acf2edcbe59e
),
520 interface IMFSequencerSource
: IUnknown
522 HRESULT AppendTopology
(
523 [in] IMFTopology
*topology
,
525 [out] MFSequencerElementId
*element
);
527 HRESULT DeleteTopology
(
528 [in] MFSequencerElementId element
);
530 HRESULT GetPresentationContext
(
531 [in] IMFPresentationDescriptor
*pd
,
532 [out, optional] MFSequencerElementId
*id,
533 [out, optional] IMFTopology
**topology
);
535 HRESULT UpdateTopology
(
536 [in] MFSequencerElementId od
,
537 [in] IMFTopology
*topology
);
539 HRESULT UpdateTopologyFlags
(
540 [in] MFSequencerElementId
id,
544 interface IMFPresentationClock
;
548 uuid(8c7b80bf
-ee42
-4b59
-b1df
-55668e1bdca8
),
551 interface IMFSampleGrabberSinkCallback
: IMFClockStateSink
553 HRESULT OnSetPresentationClock
(
554 [in] IMFPresentationClock
*clock
);
556 HRESULT OnProcessSample
(
557 [in] REFGUID major_type
,
558 [in] DWORD sample_flags
,
559 [in] LONGLONG sample_time
,
560 [in] LONGLONG sample_duration
,
561 [in] const BYTE *buffer
,
562 [in] DWORD sample_size
);
564 HRESULT OnShutdown
();
569 uuid(ca86aa50
-c46e
-429e
-ab27
-16d6ac6844cb
),
572 interface IMFSampleGrabberSinkCallback2
: IMFSampleGrabberSinkCallback
574 HRESULT OnProcessSampleEx
(
575 [in] REFGUID major_type
,
576 [in] DWORD sample_flags
,
577 [in] LONGLONG sample_time
,
578 [in] LONGLONG sample_duration
,
579 [in] const BYTE *buffer
,
580 [in] DWORD sample_size
,
581 [in] IMFAttributes
*attributes
);
586 uuid(26afea53
-d9ed
-42b5
-ab80
-e64f9ee34779
),
589 interface IMFSeekInfo
: IUnknown
591 HRESULT GetNearestKeyFrames
(
592 [in] const GUID
*format
,
593 [in] const PROPVARIANT
*position
,
594 [out] PROPVARIANT
*prev_frame
,
595 [out] PROPVARIANT
*next_frame
);
598 cpp_quote
("HRESULT WINAPI CreatePropertyStore(IPropertyStore **store);")
599 cpp_quote
("HRESULT WINAPI MFCreateAudioRenderer(IMFAttributes *config, IMFMediaSink **sink);")
600 cpp_quote
("HRESULT WINAPI MFCreateAudioRendererActivate(IMFActivate **activate);")
601 cpp_quote
("HRESULT WINAPI MFCreateMediaSession(IMFAttributes *config, IMFMediaSession **session);")
602 cpp_quote
("HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **bytestream);" )
603 cpp_quote
("HRESULT WINAPI MFCreateMFByteStreamOnStreamEx(IUnknown *stream, IMFByteStream **bytestream);")
604 cpp_quote
("HRESULT WINAPI MFCreatePresentationClock(IMFPresentationClock **clock);")
605 cpp_quote
("HRESULT WINAPI MFCreatePresentationDescriptor(DWORD count, IMFStreamDescriptor **descriptors,")
606 cpp_quote
(" IMFPresentationDescriptor **presentation_desc);")
607 cpp_quote
("HRESULT WINAPI MFCreateSimpleTypeHandler(IMFMediaTypeHandler **handler);")
608 cpp_quote
("HRESULT WINAPI MFCreateSampleCopierMFT(IMFTransform **transform);")
609 cpp_quote
("HRESULT WINAPI MFCreateSampleGrabberSinkActivate(IMFMediaType *media_type,")
610 cpp_quote
(" IMFSampleGrabberSinkCallback *callback, IMFActivate **activate);")
611 cpp_quote
("HRESULT WINAPI MFCreateSequencerSource(IUnknown *reserved, IMFSequencerSource **seq_source);" )
612 cpp_quote
("HRESULT WINAPI MFCreateSourceResolver(IMFSourceResolver **resolver);")
613 cpp_quote
("HRESULT WINAPI MFCreateStandardQualityManager(IMFQualityManager **manager);")
614 cpp_quote
("HRESULT WINAPI MFCreateStreamDescriptor(DWORD identifier, DWORD cMediaTypes,")
615 cpp_quote
(" IMFMediaType **types, IMFStreamDescriptor **descriptor);")
616 cpp_quote
("HRESULT WINAPI MFCreateSystemTimeSource(IMFPresentationTimeSource **time_source);")
617 cpp_quote
("HRESULT WINAPI MFCreateTopology(IMFTopology **topology);")
618 cpp_quote
("HRESULT WINAPI MFCreateTopologyNode(MF_TOPOLOGY_TYPE node_type, IMFTopologyNode **node);")
619 cpp_quote
("HRESULT WINAPI MFCreateTopoLoader(IMFTopoLoader **loader);")
620 cpp_quote
("HRESULT WINAPI MFCreateVideoRendererActivate(HWND hwnd, IMFActivate **activate);")
621 cpp_quote
("HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sources, UINT32 *count);")
622 cpp_quote
("HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array);")
623 cpp_quote
("HRESULT WINAPI MFGetSupportedSchemes(PROPVARIANT *array);")
624 cpp_quote
("HRESULT WINAPI MFGetService(IUnknown *object, REFGUID service, REFIID iid, void **obj);")
625 cpp_quote
("MFTIME WINAPI MFGetSystemTime(void);")
626 cpp_quote
("HRESULT WINAPI MFGetTopoNodeCurrentType(IMFTopologyNode *node, DWORD stream, BOOL output, IMFMediaType **type);")
627 cpp_quote
("HRESULT WINAPI MFShutdownObject(IUnknown *object);")
629 typedef enum _MFMEDIASOURCE_CHARACTERISTICS
631 MFMEDIASOURCE_IS_LIVE
= 0x1,
632 MFMEDIASOURCE_CAN_SEEK
= 0x2,
633 MFMEDIASOURCE_CAN_PAUSE
= 0x4,
634 MFMEDIASOURCE_HAS_SLOW_SEEK
= 0x8,
635 MFMEDIASOURCE_HAS_MULTIPLE_PRESENTATIONS
= 0x10,
636 MFMEDIASOURCE_CAN_SKIPFORWARD
= 0x20,
637 MFMEDIASOURCE_CAN_SKIPBACKWARD
= 0x40,
638 MFMEDIASOURCE_DOES_NOT_USE_NETWORK
= 0x80,
639 } MFMEDIASOURCE_CHARACTERISTICS
;
643 uuid(279a808d
-aec7
-40c8
-9c6b
-a6b492c78a66
),
645 interface IMFMediaSource
: IMFMediaEventGenerator
647 HRESULT GetCharacteristics
(
648 [out] DWORD
*characteristics
);
651 HRESULT CreatePresentationDescriptor
(
652 [out] IMFPresentationDescriptor
**descriptor
);
653 [call_as
(CreatePresentationDescriptor
)]
654 HRESULT RemoteCreatePresentationDescriptor
(
656 [out, size_is(,*count
)] BYTE **data
,
657 [out] IMFPresentationDescriptor
**descriptor
);
660 [in] IMFPresentationDescriptor
*descriptor
,
661 [in, unique] const GUID
*time_format
,
662 [in, unique] const PROPVARIANT
*start_position
);
671 uuid(3c9b2eb9
-86d5
-4514-a394
-f56664f9f0d8
)
673 interface IMFMediaSourceEx
: IMFMediaSource
675 HRESULT GetSourceAttributes
([out] IMFAttributes
**attributes
);
676 HRESULT GetStreamAttributes
(
678 [out] IMFAttributes
**attributes
);
679 HRESULT SetD3DManager
([in] IUnknown
*manager
);
684 uuid(d182108f
-4ec6
-443f
-aa42
-a71106ec825f
),
686 interface IMFMediaStream
: IMFMediaEventGenerator
688 HRESULT GetMediaSource
(
689 [out] IMFMediaSource
**source);
691 HRESULT GetStreamDescriptor
(
692 [out] IMFStreamDescriptor
**descriptor
);
695 HRESULT RequestSample
(
696 [in] IUnknown
*token
);
698 [call_as
(RequestSample
)]
699 HRESULT RemoteRequestSample
();
702 interface IMFStreamSink
;
706 uuid(7ff12cce
-f76f
-41c2
-863b
-1666c8e5e139
)
708 interface IMFPresentationTimeSource
: IMFClock
710 HRESULT GetUnderlyingClock
([out] IMFClock
**clock
);
713 cpp_quote
("#define PRESENTATION_CURRENT_POSITION 0x7fffffffffffffff")
717 uuid(868ce85c
-8ea9
-4f55
-ab82
-b009a910a805
)
719 interface IMFPresentationClock
: IMFClock
721 HRESULT SetTimeSource
([in] IMFPresentationTimeSource
*time_source
);
722 HRESULT GetTimeSource
([out] IMFPresentationTimeSource
**time_source
);
723 HRESULT GetTime
([out] MFTIME
*time
);
724 HRESULT AddClockStateSink
([in] IMFClockStateSink
*state_sink
);
725 HRESULT RemoveClockStateSink
([in] IMFClockStateSink
*state_sink
);
726 HRESULT Start
([in] LONGLONG start_offset
);
733 uuid(6ef2a662
-47c0
-4666-b13d
-cbb717f2fa2c
)
735 interface IMFClockConsumer
: IUnknown
737 HRESULT SetPresentationClock
([in] IMFPresentationClock
*clock
);
738 HRESULT GetPresentationClock
([out] IMFPresentationClock
**clock
);
741 cpp_quote
("#define MEDIASINK_FIXED_STREAMS 0x00000001")
742 cpp_quote
("#define MEDIASINK_CANNOT_MATCH_CLOCK 0x00000002")
743 cpp_quote
("#define MEDIASINK_RATELESS 0x00000004")
744 cpp_quote
("#define MEDIASINK_CLOCK_REQUIRED 0x00000008")
745 cpp_quote
("#define MEDIASINK_CAN_PREROLL 0x00000010")
746 cpp_quote
("#define MEDIASINK_REQUIRE_REFERENCE_MEDIATYPE 0x00000020")
750 uuid(6ef2a660
-47c0
-4666-b13d
-cbb717f2fa2c
)
752 interface IMFMediaSink
: IUnknown
754 HRESULT GetCharacteristics
([out] DWORD
*characteristics
);
755 HRESULT AddStreamSink
(
756 [in] DWORD stream_sink_id
,
757 [in] IMFMediaType
*media_type
,
758 [out] IMFStreamSink
**stream_sink
);
759 HRESULT RemoveStreamSink
([in] DWORD stream_sink_id
);
760 HRESULT GetStreamSinkCount
([out] DWORD
*count
);
761 HRESULT GetStreamSinkByIndex
([in] DWORD index
, [out] IMFStreamSink
**sink
);
762 HRESULT GetStreamSinkById
([in] DWORD stream_sink_id
, [out] IMFStreamSink
**sink
);
763 HRESULT SetPresentationClock
([in] IMFPresentationClock
*clock
);
764 HRESULT GetPresentationClock
([out] IMFPresentationClock
**clock
);
770 uuid(eaecb74a
-9a50
-42ce
-9541-6a7f57aa4ad7
),
773 interface IMFFinalizableMediaSink
: IMFMediaSink
775 HRESULT BeginFinalize
(
776 [in] IMFAsyncCallback
*callback,
777 [in] IUnknown
*state
);
779 HRESULT EndFinalize
([in] IMFAsyncResult
*result
);
784 uuid(5dfd4b2a
-7674-4110-a4e6
-8a68fd5f3688
)
786 interface IMFMediaSinkPreroll
: IUnknown
788 HRESULT NotifyPreroll
([in] MFTIME start_time
);
793 uuid(9db7aa41
-3cc5
-40d4
-8509-555804ad34cc
)
795 interface IMFStreamingSinkConfig
: IUnknown
797 HRESULT StartStreaming
(
798 [in] BOOL is_byte_offset
,
799 [in] QWORD seek_offset
);
804 uuid(0a97b3cf
-8e7c
-4a3d
-8f8c
-0c843dc247fb
),
806 interface IMFStreamSink
: IMFMediaEventGenerator
808 HRESULT GetMediaSink
([out] IMFMediaSink
**sink
);
809 HRESULT GetIdentifier
([out] DWORD
*identifier
);
810 HRESULT GetMediaTypeHandler
([out] IMFMediaTypeHandler
**handler
);
811 HRESULT ProcessSample
([in] IMFSample
*sample
);
813 [in] MFSTREAMSINK_MARKER_TYPE marker_type
,
814 [in] const PROPVARIANT
*marker_value
,
815 [in] const PROPVARIANT
*context_value
);
819 typedef enum _MFSHUTDOWN_STATUS
821 MFSHUTDOWN_INITIATED
,
822 MFSHUTDOWN_COMPLETED
,
827 uuid(97ec2ea4
-0e42
-4937-97ac
-9d6d328824e1
)
829 interface IMFShutdown
: IUnknown
832 HRESULT GetShutdownStatus
([out] MFSHUTDOWN_STATUS
*status
);
837 uuid(8d009d86
-5b9f
-4115-b1fc
-9f80d52ab8ab
),
840 interface IMFQualityManager
: IUnknown
842 HRESULT NotifyTopology
([in] IMFTopology
*topology
);
843 HRESULT NotifyPresentationClock
([in] IMFPresentationClock
*clock
);
844 HRESULT NotifyProcessInput
(
845 [in] IMFTopologyNode
*node
,
846 [in] LONG input_index
,
847 [in] IMFSample
*sample
);
848 HRESULT NotifyProcessOutput
(
849 [in] IMFTopologyNode
*node
,
850 [in] LONG output_index
,
851 [in] IMFSample
*sample
);
852 HRESULT NotifyQualityEvent
(
853 [in] IUnknown
*object,
854 [in] IMFMediaEvent
*event
);
858 typedef enum _MF_QUALITY_DROP_MODE
867 } MF_QUALITY_DROP_MODE
;
869 typedef enum _MF_QUALITY_LEVEL
872 MF_QUALITY_NORMAL_MINUS_1
,
873 MF_QUALITY_NORMAL_MINUS_2
,
874 MF_QUALITY_NORMAL_MINUS_3
,
875 MF_QUALITY_NORMAL_MINUS_4
,
876 MF_QUALITY_NORMAL_MINUS_5
,
877 MF_NUM_QUALITY_LEVELS
882 uuid(ec15e2e9
-e36b
-4f7c
-8758-77d452ef4ce7
)
884 interface IMFQualityAdvise
: IUnknown
886 HRESULT SetDropMode
([in] MF_QUALITY_DROP_MODE mode
);
887 HRESULT SetQualityLevel
([in] MF_QUALITY_LEVEL level
);
888 HRESULT GetDropMode
([out] MF_QUALITY_DROP_MODE
*mode
);
889 HRESULT GetQualityLevel
([out] MF_QUALITY_LEVEL
*level
);
890 HRESULT DropTime
([in] LONGLONG interval
);
895 uuid(f3706f0d
-8ea2
-4886-8000-7155e9ec2eae
)
897 interface IMFQualityAdvise2
: IMFQualityAdvise
899 HRESULT NotifyQualityEvent
(
900 [in] IMFMediaEvent
*event
,
906 uuid(dfcd8e4d
-30b5
-4567-acaa
-8eb5b7853dc9
)
908 interface IMFQualityAdviseLimits
: IUnknown
910 HRESULT GetMaximumDropMode
([out] MF_QUALITY_DROP_MODE
*mode
);
911 HRESULT GetMinimumQualityLevel
([out] MF_QUALITY_LEVEL
*level
);
914 typedef struct _MFT_REGISTRATION_INFO
921 [size_is(cInTypes
)] MFT_REGISTER_TYPE_INFO
*pInTypes
;
923 [size_is(cOutTypes
)] MFT_REGISTER_TYPE_INFO
*pOutTypes
;
924 } MFT_REGISTRATION_INFO
;
928 uuid(149c4d73
-b4be
-4f8d
-8b87
-079e926b6add
)
930 interface IMFLocalMFTRegistration
: IUnknown
932 HRESULT RegisterMFTs
([in, size_is(count
)] MFT_REGISTRATION_INFO
*info
, [in] DWORD count
);
937 uuid(0e1d6009
-c9f3
-442d
-8c51
-a42d2d49452f
),
939 interface IMFMediaSourceTopologyProvider
: IUnknown
941 HRESULT GetMediaSourceTopology
([in] IMFPresentationDescriptor
*pd
, [out] IMFTopology
**topology
);
946 MF_RESOLUTION_MEDIASOURCE
= 0x00000001,
947 MF_RESOLUTION_BYTESTREAM
= 0x00000002,
948 MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE
= 0x00000010,
949 MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL
= 0x00000020,
950 MF_RESOLUTION_DISABLE_LOCAL_PLUGINS
= 0x00000040,
951 MF_RESOLUTION_PLUGIN_CONTROL_POLICY_APPROVED_ONLY
= 0x00000080,
952 MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY
= 0x00000100,
953 MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY_EDGEMODE
= 0x00000200,
954 MF_RESOLUTION_ENABLE_STORE_PLUGINS
= 0x00000400,
955 MF_RESOLUTION_READ
= 0x00010000,
956 MF_RESOLUTION_WRITE
= 0x00020000,
961 uuid(089edf13
-cf71
-4338-8d13
-9e569dbdc319
),
963 interface IMFSimpleAudioVolume
: IUnknown
965 HRESULT SetMasterVolume
([in] float level
);
966 HRESULT GetMasterVolume
([out] float *level
);
967 HRESULT SetMute
([in] BOOL mute
);
968 HRESULT GetMute
([out] BOOL
*mute
);
973 uuid(76b1bbdb
-4ec8
-4f36
-b106
-70a9316df593
),
975 interface IMFAudioStreamVolume
: IUnknown
977 HRESULT GetChannelCount
([out] UINT32
*count
);
978 HRESULT SetChannelVolume
(
980 [in] const float level
);
981 HRESULT GetChannelVolume
(
984 HRESULT SetAllVolumes
(
986 [in, size_is(count
)] const float *volumes
);
987 HRESULT GetAllVolumes
(
989 [out, size_is(count
)] float *volumes
);
994 uuid(a0638c2b
-6465-4395-9ae7
-a321a9fd2856
),
997 interface IMFAudioPolicy
: IUnknown
999 HRESULT SetGroupingParam
([in] REFGUID param
);
1000 HRESULT GetGroupingParam
([out] GUID
*param
);
1001 HRESULT SetDisplayName
([in] LPCWSTR name
);
1002 HRESULT GetDisplayName
([out] LPWSTR
*name
);
1003 HRESULT SetIconPath
([in] LPCWSTR path
);
1004 HRESULT GetIconPath
([out] LPWSTR
*path
);
1007 cpp_quote
("#ifdef __cplusplus")
1008 cpp_quote
("static inline HRESULT MFSetAttributeSize(IMFAttributes *attributes, REFGUID key, UINT32 width, UINT32 height)")
1010 cpp_quote
(" return attributes->SetUINT64(key, ((UINT64)width << 32) | height);")
1012 cpp_quote
("static inline HRESULT MFSetAttributeRatio(IMFAttributes *attributes, REFGUID key, UINT32 numerator, UINT32 denominator)")
1014 cpp_quote
(" return attributes->SetUINT64(key, ((UINT64)numerator << 32) | denominator);")
1018 cpp_quote
("#define MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS_CROSSPROCESS 0x00000001")
1019 cpp_quote
("#define MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS_NOPERSIST 0x00000002")
1020 cpp_quote
("#define MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS_DONT_ALLOW_FORMAT_CHANGES 0x00000004")
1022 cpp_quote
("EXTERN_GUID(MF_ACTIVATE_MFT_LOCKED, 0xc1f6093c, 0x7f65, 0x4fbd, 0x9e, 0x39, 0x5f, 0xae, 0xc3, 0xc4, 0xfb, 0xd7);")
1024 cpp_quote
("EXTERN_GUID(MF_SD_LANGUAGE, 0x00af2180, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x03, 0x59, 0x3b, 0xc1, 0x21);")
1025 cpp_quote
("EXTERN_GUID(MF_SD_MUTUALLY_EXCLUSIVE, 0x023ef79c, 0x388d, 0x487f, 0xac, 0x17, 0x69, 0x6c, 0xd6, 0xe3, 0xc6, 0xf5);")
1026 cpp_quote
("EXTERN_GUID(MF_SD_PROTECTED, 0x00af2181, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x03, 0x59, 0x3b, 0xc1, 0x21);")
1027 cpp_quote
("EXTERN_GUID(MF_SD_STREAM_NAME, 0x4f1b099d, 0xd314, 0x41e5, 0xa7, 0x81, 0x7f, 0xef, 0xaa, 0x4c, 0x50, 0x1f);")
1028 cpp_quote
("EXTERN_GUID(MF_SD_SAMI_LANGUAGE, 0x36fcb98a, 0x6cd0, 0x44cb, 0xac, 0xb9, 0xa8, 0xf5, 0x60, 0x0d, 0xd0, 0xbb);")
1029 cpp_quote
("EXTERN_GUID(MF_PD_PMPHOST_CONTEXT, 0x6c990d31, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1030 cpp_quote
("EXTERN_GUID(MF_PD_APP_CONTEXT, 0x6c990d32, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1031 cpp_quote
("EXTERN_GUID(MF_PD_DURATION, 0x6c990d33, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1032 cpp_quote
("EXTERN_GUID(MF_PD_TOTAL_FILE_SIZE, 0x6c990d34, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1033 cpp_quote
("EXTERN_GUID(MF_PD_AUDIO_ENCODING_BITRATE, 0x6c990d35, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1034 cpp_quote
("EXTERN_GUID(MF_PD_VIDEO_ENCODING_BITRATE, 0x6c990d36, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1035 cpp_quote
("EXTERN_GUID(MF_PD_MIME_TYPE, 0x6c990d37, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1036 cpp_quote
("EXTERN_GUID(MF_PD_LAST_MODIFIED_TIME, 0x6c990d38, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1037 cpp_quote
("EXTERN_GUID(MF_PD_PLAYBACK_ELEMENT_ID, 0x6c990d39, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1038 cpp_quote
("EXTERN_GUID(MF_PD_PREFERRED_LANGUAGE, 0x6c990d3a, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1039 cpp_quote
("EXTERN_GUID(MF_PD_PLAYBACK_BOUNDARY_TIME, 0x6c990d3b, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
1040 cpp_quote
("EXTERN_GUID(MF_PD_AUDIO_ISVARIABLEBITRATE, 0x33026ee0, 0xe387, 0x4582, 0xae, 0x0a, 0x34, 0xa2, 0xad, 0x3b, 0xaa, 0x18);")
1041 cpp_quote
("DEFINE_GUID(MF_PD_ADAPTIVE_STREAMING, 0xea0d5d97, 0x29f9, 0x488b, 0xae, 0x6b, 0x7d, 0x6b, 0x41, 0x36, 0x11, 0x2b);")
1042 cpp_quote
("EXTERN_GUID(MF_PD_SAMI_STYLELIST, 0xe0b73c7f, 0x486d, 0x484e, 0x98, 0x72, 0x4d, 0xe5, 0x19, 0x2a, 0x7b, 0xf8);")
1044 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE, 0xc60ac5fe, 0x252a, 0x478f, 0xa0, 0xef, 0xbc, 0x8f, 0xa5, 0xf7, 0xca, 0xd3);")
1045 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_MEDIA_TYPE, 0x56a819ca, 0x0c78, 0x4de4, 0xa0, 0xa7, 0x3d, 0xda, 0xba, 0x0f, 0x24, 0xd4);")
1046 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_FRIENDLY_NAME, 0x60d0e559, 0x52f8, 0x4fa2, 0xbb, 0xce, 0xac, 0xdb, 0x34, 0xa8, 0xec, 0x01);")
1047 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_SYMBOLIC_LINK, 0x98d24b5e, 0x5930, 0x4614, 0xb5, 0xa1, 0xf6, 0x00, 0xf9, 0x35, 0x5a, 0x78);")
1048 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_ENDPOINT_ID, 0x30da9258, 0xfeb9, 0x47a7, 0xa4, 0x53, 0x76, 0x3a, 0x7a, 0x8e, 0x1c, 0x5f);")
1049 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_ROLE, 0xbc9d118e, 0x8c67, 0x4a18, 0x85, 0xd4, 0x12, 0xd3, 0x00, 0x40, 0x05, 0x52);")
1050 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_CATEGORY, 0x77f0ae69, 0xc3bd, 0x4509, 0x94, 0x1d, 0x46, 0x7e, 0x4d, 0x24, 0x89, 0x9e);")
1051 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_HW_SOURCE, 0xde7046ba, 0x54d6, 0x4487, 0xa2, 0xa4, 0xec, 0x7c, 0x0d, 0x1b, 0xd1, 0x63);")
1052 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_PROVIDER_DEVICE_ID, 0x36689d42, 0xa06c, 0x40ae, 0x84, 0xcf, 0xf5, 0xa0, 0x34, 0x06, 0x7c, 0xc4);")
1053 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK, 0x58f0aad8, 0x22bf, 0x4f8a, 0xbb, 0x3d, 0xd2, 0xc4, 0x97, 0x8c, 0x6e, 0x2f);")
1054 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_MAX_BUFFERS, 0x7dd9b730, 0x4f2d, 0x41d5, 0x8f, 0x95, 0x0c, 0xc9, 0xa9, 0x12, 0xba, 0x26);")
1056 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_GUID, 0x14dd9a1c, 0x7cff, 0x41be, 0xb1, 0xb9, 0xba, 0x1a, 0xc6, 0xec, 0xb5, 0x71);")
1057 cpp_quote
("EXTERN_GUID(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID, 0x8ac3587a, 0x4ae7, 0x42d8, 0x99, 0xe0, 0x0a, 0x60, 0x13, 0xee, 0xf9, 0x0f);")
1059 cpp_quote
("EXTERN_GUID(MF_TOPONODE_CONNECT_METHOD, 0x494bbcf1, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1060 cpp_quote
("EXTERN_GUID(MF_TOPONODE_D3DAWARE, 0x494bbced, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1061 cpp_quote
("EXTERN_GUID(MF_TOPONODE_DECODER, 0x494bbd02, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1062 cpp_quote
("EXTERN_GUID(MF_TOPONODE_DECRYPTOR, 0x494bbcfa, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1063 cpp_quote
("EXTERN_GUID(MF_TOPONODE_DISABLE_PREROLL, 0x14932f9e, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);")
1064 cpp_quote
("EXTERN_GUID(MF_TOPONODE_DISCARDABLE, 0x494bbcfb, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1065 cpp_quote
("EXTERN_GUID(MF_TOPONODE_DRAIN, 0x494bbce9, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1066 cpp_quote
("EXTERN_GUID(MF_TOPONODE_ERROR_MAJORTYPE, 0x494bbcfd, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1067 cpp_quote
("EXTERN_GUID(MF_TOPONODE_ERROR_SUBTYPE, 0x494bbcfe, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1068 cpp_quote
("EXTERN_GUID(MF_TOPONODE_ERRORCODE, 0x494bbcee, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1069 cpp_quote
("EXTERN_GUID(MF_TOPONODE_FLUSH, 0x494bbce8, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1070 cpp_quote
("EXTERN_GUID(MF_TOPONODE_LOCKED, 0x494bbcf7, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1071 cpp_quote
("EXTERN_GUID(MF_TOPONODE_MARKIN_HERE, 0x494bbd00, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1072 cpp_quote
("EXTERN_GUID(MF_TOPONODE_MARKOUT_HERE, 0x494bbd01, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1073 cpp_quote
("EXTERN_GUID(MF_TOPONODE_MEDIASTART, 0x835c58ea, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);")
1074 cpp_quote
("EXTERN_GUID(MF_TOPONODE_MEDIASTOP, 0x835c58eb, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);")
1075 cpp_quote
("EXTERN_GUID(MF_TOPONODE_NOSHUTDOWN_ON_REMOVE, 0x14932f9c, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);")
1076 cpp_quote
("EXTERN_GUID(MF_TOPONODE_PRESENTATION_DESCRIPTOR, 0x835c58ed, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);")
1077 cpp_quote
("EXTERN_GUID(MF_TOPONODE_PRIMARYOUTPUT, 0x6304ef99, 0x16b2, 0x4ebe, 0x9d, 0x67, 0xe4, 0xc5, 0x39, 0xb3, 0xa2, 0x59);")
1078 cpp_quote
("EXTERN_GUID(MF_TOPONODE_RATELESS, 0x14932f9d, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);")
1079 cpp_quote
("EXTERN_GUID(MF_TOPONODE_SEQUENCE_ELEMENTID, 0x835c58ef, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);")
1080 cpp_quote
("EXTERN_GUID(MF_TOPONODE_SOURCE, 0x835c58ec, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);")
1081 cpp_quote
("EXTERN_GUID(MF_TOPONODE_STREAM_DESCRIPTOR, 0x835c58ee, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);")
1082 cpp_quote
("EXTERN_GUID(MF_TOPONODE_STREAMID, 0x14932f9b, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);")
1083 cpp_quote
("EXTERN_GUID(MF_TOPONODE_TRANSFORM_OBJECTID, 0x88dcc0c9, 0x293e, 0x4e8b, 0x9a, 0xeb, 0xa, 0xd6, 0x4c, 0xc0, 0x16, 0xb0);")
1084 cpp_quote
("EXTERN_GUID(MF_TOPONODE_WORKQUEUE_ID, 0x494bbcf8, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1085 cpp_quote
("EXTERN_GUID(MF_TOPONODE_WORKQUEUE_ITEM_PRIORITY, 0xa1ff99be, 0x5e97, 0x4a53, 0xb4, 0x94, 0x56, 0x8c, 0x64, 0x2c, 0x0f, 0xf3);")
1086 cpp_quote
("EXTERN_GUID(MF_TOPONODE_WORKQUEUE_MMCSS_CLASS, 0x494bbcf9, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1087 cpp_quote
("EXTERN_GUID(MF_TOPONODE_WORKQUEUE_MMCSS_PRIORITY, 0x5001f840, 0x2816, 0x48f4, 0x93, 0x64, 0xad, 0x1e, 0xf6, 0x61, 0xa1, 0x23);")
1088 cpp_quote
("EXTERN_GUID(MF_TOPONODE_WORKQUEUE_MMCSS_TASKID, 0x494bbcff, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1090 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_DXVA_MODE, 0x1e8d34f6, 0xf5ab, 0x4e23, 0xbb, 0x88, 0x87, 0x4a, 0xa3, 0xa1, 0xa7, 0x4d);")
1091 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_DYNAMIC_CHANGE_NOT_ALLOWED, 0xd529950b, 0xd484, 0x4527, 0xa9, 0xcd, 0xb1, 0x90, 0x95, 0x32, 0xb5, 0xb0);")
1092 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_ENABLE_XVP_FOR_PLAYBACK, 0x1967731f, 0xcd78, 0x42fc, 0xb0, 0x26, 0x09, 0x92, 0xa5, 0x6e, 0x56, 0x93);")
1093 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_ENUMERATE_SOURCE_TYPES, 0x6248c36d, 0x5d0b, 0x4f40, 0xa0, 0xbb, 0xb0, 0xb3, 0x05, 0xf7, 0x76, 0x98);")
1094 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_HARDWARE_MODE, 0xd2d362fd, 0x4e4f, 0x4191, 0xa5, 0x79, 0xc6, 0x18, 0xb6, 0x67, 0x06, 0xaf);")
1095 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_NO_MARKIN_MARKOUT, 0x7ed3f804, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);")
1096 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_PLAYBACK_FRAMERATE, 0xc164737a, 0xc2b1, 0x4553, 0x83, 0xbb, 0x5a, 0x52, 0x60, 0x72, 0x44, 0x8f);")
1097 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_PLAYBACK_MAX_DIMS, 0x5715cf19, 0x5768, 0x44aa, 0xad, 0x6e, 0x87, 0x21, 0xf1, 0xb0, 0xf9, 0xbb);")
1098 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_PROJECTSTART, 0x7ed3f802, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);")
1099 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_PROJECTSTOP, 0x7ed3f803, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);")
1100 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_RESOLUTION_STATUS, 0x494bbcde, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);")
1101 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_START_TIME_ON_PRESENTATION_SWITCH, 0xc8cc113f, 0x7951, 0x4548, 0xaa, 0xd6, 0x9e, 0xd6, 0x20, 0x2e, 0x62, 0xb3);")
1102 cpp_quote
("EXTERN_GUID(MF_TOPOLOGY_STATIC_PLAYBACK_OPTIMIZATIONS, 0xb86cac42, 0x41a6, 0x4b79, 0x89, 0x7a, 0x1a, 0xb0, 0xe5, 0x2b, 0x4a, 0x1b);")
1104 cpp_quote
("EXTERN_GUID(MF_RATE_CONTROL_SERVICE, 0x866fa297, 0xb802, 0x4bf8, 0x9d, 0xc9, 0x5e, 0x3b, 0x6a, 0x9f, 0x53, 0xc9);")
1105 cpp_quote
("EXTERN_GUID(MF_LOCAL_MFT_REGISTRATION_SERVICE, 0xddf5cf9c, 0x4506, 0x45aa, 0xab, 0xf0, 0x6d, 0x5d, 0x94, 0xdd, 0x1b, 0x4a);")
1106 cpp_quote
("EXTERN_C const GUID MF_SCRUBBING_SERVICE;")
1107 cpp_quote
("EXTERN_GUID(MR_POLICY_VOLUME_SERVICE, 0x1abaa2ac, 0x9d3b, 0x47c6, 0xab, 0x48, 0xc5, 0x95, 0x06, 0xde, 0x78, 0x4d);")
1108 cpp_quote
("EXTERN_GUID(MR_CAPTURE_POLICY_VOLUME_SERVICE, 0x24030acd, 0x107a, 0x4265, 0x97, 0x5c, 0x41, 0x4e, 0x33, 0xe6, 0x5f, 0x2a);")
1109 cpp_quote
("EXTERN_GUID(MR_STREAM_VOLUME_SERVICE, 0xf8b5fa2f, 0x32ef, 0x46f5, 0xb1, 0x72, 0x13, 0x21, 0x21, 0x2f, 0xb2, 0xc4);")
1110 cpp_quote
("EXTERN_GUID(MR_AUDIO_POLICY_SERVICE, 0x911fd737, 0x6775, 0x4ab0, 0xa6, 0x14, 0x29, 0x78, 0x62, 0xfd, 0xac, 0x88);")
1112 cpp_quote
("EXTERN_GUID(MF_SAMPLEGRABBERSINK_SAMPLE_TIME_OFFSET, 0x62e3d776, 0x8100, 0x4e03, 0xa6, 0xe8, 0xbd, 0x38, 0x57, 0xac, 0x9c, 0x47);")
1113 cpp_quote
("EXTERN_GUID(MF_SAMPLEGRABBERSINK_IGNORE_CLOCK, 0x0efda2c0, 0x2b69, 0x4e2e, 0xab, 0x8d, 0x46, 0xdc, 0xbf, 0xf7, 0xd2, 0x5d);")
1115 cpp_quote
("EXTERN_GUID(MF_SESSION_TOPOLOADER, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x05, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x71);")
1116 cpp_quote
("EXTERN_GUID(MF_SESSION_GLOBAL_TIME, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x05, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x72);")
1117 cpp_quote
("EXTERN_GUID(MF_SESSION_QUALITY_MANAGER, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x05, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x73);")
1118 cpp_quote
("EXTERN_GUID(MF_SESSION_CONTENT_PROTECTION_MANAGER, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x05, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x74);")
1119 cpp_quote
("EXTERN_GUID(MF_SESSION_SERVER_CONTEXT, 0xafe5b291, 0x50fa, 0x46e8, 0xb9, 0xbe, 0x0c, 0x0c, 0x3c, 0xe4, 0xb3, 0xa5);")
1120 cpp_quote
("EXTERN_GUID(MF_SESSION_REMOTE_SOURCE_MODE, 0xf4033ef4, 0x9bb3, 0x4378, 0x94, 0x1f, 0x85, 0xa0, 0x85, 0x6b, 0xc2, 0x44);")
1121 cpp_quote
("EXTERN_GUID(MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME, 0x190e852f, 0x6238, 0x42d1, 0xb5, 0xaf, 0x69, 0xea, 0x33, 0x8e, 0xf8, 0x50);")
1122 cpp_quote
("EXTERN_GUID(MF_PMP_SERVER_CONTEXT, 0x2f00c910, 0xd2cf, 0x4278, 0x8b, 0x6a, 0xd0, 0x77, 0xfa, 0xc3, 0xa2, 0x5f);")
1124 cpp_quote
("EXTERN_GUID(MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS, 0xede4b5e0, 0xf805, 0x4d6c, 0x99, 0xb3, 0xdb, 0x01, 0xbf, 0x95, 0xdf, 0xab);")
1125 cpp_quote
("EXTERN_GUID(MF_AUDIO_RENDERER_ATTRIBUTE_SESSION_ID, 0xede4b5e3, 0xf805, 0x4d6c, 0x99, 0xb3, 0xdb, 0x01, 0xbf, 0x95, 0xdf, 0xab);")
1126 cpp_quote
("EXTERN_GUID(MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ID, 0xb10aaec3, 0xef71, 0x4cc3, 0xb8, 0x73, 0x05, 0xa9, 0xa0, 0x8b, 0x9f, 0x8e);")
1127 cpp_quote
("EXTERN_GUID(MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ROLE, 0x6ba644ff, 0x27c5, 0x4d02, 0x98, 0x87, 0xc2, 0x86, 0x19, 0xfd, 0xb9, 0x1b);")
1128 cpp_quote
("EXTERN_GUID(MF_AUDIO_RENDERER_ATTRIBUTE_STREAM_CATEGORY, 0xa9770471, 0x92ec, 0x4df4, 0x94, 0xfe, 0x81, 0xc3, 0x6f, 0x0c, 0x3a, 0x7a);")
1130 cpp_quote
("EXTERN_GUID(CLSID_VideoProcessorMFT, 0x88753b26, 0x5b24, 0x49bd, 0xb2, 0xe7, 0xc, 0x44, 0x5c, 0x78, 0xc9, 0x82);")