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 typedef struct _MFCLOCK_PROPERTIES
52 unsigned __int64 qwCorrelationRate
;
55 unsigned __int64 qwClockFrequency
;
56 DWORD dwClockTolerance
;
60 typedef enum _MFCLOCK_CHARACTERISTICS_FLAGS
62 MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ
= 0x00000002,
63 MFCLOCK_CHARACTERISTICS_FLAG_ALWAYS_RUNNING
= 0x00000004,
64 MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK
= 0x00000008,
65 } MFCLOCK_CHARACTERISTICS_FLAGS
;
69 uuid(2eb1e945
-18b8
-4139-9b1a
-d5d584818530
),
71 interface IMFClock
: IUnknown
73 HRESULT GetClockCharacteristics
([out] DWORD
*characteristics
);
74 HRESULT GetCorrelatedTime
([in] DWORD reserved
, [out] LONGLONG
*clock_time
, [out] MFTIME
*system_time
);
75 HRESULT GetContinuityKey
([out] DWORD
*key
);
76 HRESULT GetState
([in] DWORD reserved
, [out] MFCLOCK_STATE
*state
);
77 HRESULT GetProperties
([out] MFCLOCK_PROPERTIES
*props
);
82 uuid(88ddcd21
-03c3
-4275-91ed
-55ee3929328f
)
84 interface IMFRateControl
: IUnknown
90 [in, out, unique] BOOL
*thin
,
91 [in, out, unique] float *rate
);
96 uuid(e56e4cbd
-8f70
-49d8
-a0f8
-edb3d6ab9bf2
),
99 interface IMFTimer
: IUnknown
104 [in] IMFAsyncCallback
*callback,
105 [in] IUnknown
*state
,
106 [out] IUnknown
**key
);
113 uuid(83cf873a
-f6da
-4bc8
-823f
-bacfd55dc430
),
115 interface IMFTopologyNode
: IMFAttributes
117 HRESULT SetObject
([in] IUnknown
*object);
118 HRESULT GetObject
([out] IUnknown
**object);
119 HRESULT GetNodeType
([out] MF_TOPOLOGY_TYPE
*type
);
120 HRESULT GetTopoNodeID
([out] TOPOID
*id);
121 HRESULT SetTopoNodeID
([in] TOPOID
id);
122 HRESULT GetInputCount
([out] DWORD
*count
);
123 HRESULT GetOutputCount
([out] DWORD
*count
);
124 [local] HRESULT ConnectOutput
([in] DWORD output_index
, [in] IMFTopologyNode
*node
, [in] DWORD input_index
);
125 [local] HRESULT DisconnectOutput
([in] DWORD index
);
126 HRESULT GetInput
([in] DWORD input_index
, [out] IMFTopologyNode
**node
, [out] DWORD
*output_index
);
127 HRESULT GetOutput
([in] DWORD output_index
, [out] IMFTopologyNode
**node
, [out] DWORD
*input_index
);
128 [local] HRESULT SetOutputPrefType
([in] DWORD index
, [in] IMFMediaType
*type
);
129 [local] HRESULT GetOutputPrefType
([in] DWORD output_index
, [out] IMFMediaType
**type
);
130 [call_as
(GetOutputPrefType
)] HRESULT RemoteGetOutputPrefType
([in] DWORD index
, [out] DWORD
*length
,
131 [out, size_is(, *length
)] BYTE **data
);
132 [local] HRESULT SetInputPrefType
([in] DWORD index
, [in] IMFMediaType
*type
);
133 [local] HRESULT GetInputPrefType
([in] DWORD index
, [out] IMFMediaType
**type
);
134 [call_as
(GetInputPrefType
)] HRESULT RemoteGetInputPrefType
([in] DWORD index
, [out] DWORD
*length
,
135 [out, size_is(, *length
)] BYTE **data
);
136 HRESULT CloneFrom
([in] IMFTopologyNode
*node
);
141 uuid(83cf873a
-f6da
-4bc8
-823f
-bacfd55dc433
),
143 interface IMFTopology
: IMFAttributes
145 HRESULT GetTopologyID
([out] TOPOID
*id);
146 [local] HRESULT AddNode
([in] IMFTopologyNode
*node
);
147 [local] HRESULT RemoveNode
([in] IMFTopologyNode
*node
);
148 HRESULT GetNodeCount
([out] WORD
*nodes
);
149 HRESULT GetNode
([in] WORD index
, [out] IMFTopologyNode
**node
);
150 [local] HRESULT Clear
();
151 HRESULT CloneFrom
([in] IMFTopology
*topology
);
152 HRESULT GetNodeByID
([in] TOPOID
id, [out] IMFTopologyNode
**node
);
153 HRESULT GetSourceNodeCollection
([out] IMFCollection
**collection
);
154 HRESULT GetOutputNodeCollection
([out] IMFCollection
**collection
);
159 uuid(de9a6157
-f660
-4643-b56a
-df9f7998c7cd
),
162 interface IMFTopoLoader
: IUnknown
164 HRESULT Load
([in] IMFTopology
*input_topology
, [out] IMFTopology
**output_topology
,
165 [in] IMFTopology
*current_topology
);
170 uuid(90377834-21d0
-4dee
-8214-ba2e3e6c1127
),
172 interface IMFMediaSession
: IMFMediaEventGenerator
174 HRESULT SetTopology
([in] DWORD flags
, [in] IMFTopology
*topology
);
175 HRESULT ClearTopologies
();
176 HRESULT Start
([in, unique] const GUID
*format
, [in, unique] const PROPVARIANT
*start
);
181 HRESULT GetClock
([out] IMFClock
**clock
);
182 HRESULT GetSessionCapabilities
([out] DWORD
*caps
);
183 HRESULT GetFullTopology
([in] DWORD flags
, [in] TOPOID
id, [out] IMFTopology
**topology
);
188 uuid(bb420aa4
-765b
-4a1f
-91fe
-d6a8a143924c
),
191 interface IMFByteStreamHandler
: IUnknown
193 HRESULT BeginCreateObject
(
194 [in] IMFByteStream
*stream
,
195 [in] const WCHAR
*url
,
197 [in] IPropertyStore
*props
,
198 [out] IUnknown
**cancel_cookie
,
199 [in] IMFAsyncCallback
*callback,
200 [in] IUnknown
*state
);
202 HRESULT EndCreateObject
(
203 [in] IMFAsyncResult
*result
,
204 [out] MF_OBJECT_TYPE
*obj_type
,
205 [out] IUnknown
**object);
207 HRESULT CancelObjectCreation
(
208 [in] IUnknown
*cancel_cookie
);
210 HRESULT GetMaxNumberOfBytesRequiredForResolution
(
214 typedef [public] struct _MF_LEAKY_BUCKET_PAIR
217 DWORD msBufferWindow
;
218 } MF_LEAKY_BUCKET_PAIR
;
220 typedef [public] struct _MFBYTESTREAM_BUFFERING_PARAMS
222 QWORD cbTotalFileSize
;
223 QWORD cbPlayableDataSize
;
224 MF_LEAKY_BUCKET_PAIR
*prgBuckets
;
226 QWORD qwNetBufferingTime
;
227 QWORD qwExtraBufferingTimeDuringSeek
;
228 QWORD qwPlayDuration
;
230 } MFBYTESTREAM_BUFFERING_PARAMS
;
234 uuid(6d66d782
-1d4f
-4db7
-8c63
-cb8c77f1ef5e
),
236 interface IMFByteStreamBuffering
: IUnknown
238 HRESULT SetBufferingParams
(
239 [in] MFBYTESTREAM_BUFFERING_PARAMS
*params
);
241 HRESULT EnableBuffering
(
244 HRESULT StopBuffering
();
249 uuid(f5042ea4
-7a96
-4a75
-aa7b
-2be1ef7f88d5
),
251 interface IMFByteStreamCacheControl
: IUnknown
253 HRESULT StopBackgroundTransfer
();
258 uuid(64976bfa
-fb61
-4041-9069-8c9a5f659beb
),
260 interface IMFByteStreamTimeSeek
: IUnknown
262 HRESULT IsTimeSeekSupported
(
263 [out] BOOL
*is_supported
);
266 [in] QWORD position
);
268 HRESULT GetTimeSeekResult
(
269 [out] QWORD
*start_time
,
270 [out] QWORD
*stop_time
,
271 [out] QWORD
*duration
);
276 uuid(6d4c7b74
-52a0
-4bb7
-b0db
-55f29f47a668
),
279 interface IMFSchemeHandler
: IUnknown
281 HRESULT BeginCreateObject
(
282 [in] const WCHAR
*url
,
284 [in] IPropertyStore
*props
,
285 [out] IUnknown
**cancel_cookie
,
286 [in] IMFAsyncCallback
*callback,
287 [in] IUnknown
*state
);
289 HRESULT EndCreateObject
(
290 [in] IMFAsyncResult
*result
,
291 [out] MF_OBJECT_TYPE
*obj_type
,
292 [out] IUnknown
**object);
294 HRESULT CancelObjectCreation
(
295 [in] IUnknown
*cancel_cookie
);
300 uuid(fbe5a32d
-a497
-4b61
-bb85
-97b1a848a6e3
)
302 interface IMFSourceResolver
: IUnknown
304 [local] HRESULT CreateObjectFromURL
([in] const WCHAR
*url
, [in] DWORD flags
, [in] IPropertyStore
*props
,
305 [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
306 [local] HRESULT CreateObjectFromByteStream
([in] IMFByteStream
*stream
, [in] const WCHAR
*url
, [in] DWORD flags
,
307 [in] IPropertyStore
*props
, [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
308 [local] HRESULT BeginCreateObjectFromURL
([in] const WCHAR
*url
, [in] DWORD flags
, [in] IPropertyStore
*props
,
309 [out] IUnknown
**cancel_cookie
, [in] IMFAsyncCallback
*callback, [in] IUnknown
*unk_state
);
310 [call_as
(BeginCreateObjectFromURL
)] HRESULT RemoteBeginCreateObjectFromURL
([in, string] const WCHAR
*url
,
311 [in] DWORD flags
, [in] IPropertyStore
*props
, [in] IMFRemoteAsyncCallback
*callback);
312 [local] HRESULT EndCreateObjectFromURL
([in] IMFAsyncResult
*result
, [out] MF_OBJECT_TYPE
*obj_type
,
313 [out] IUnknown
**object);
314 [call_as
(EndCreateObjectFromURL
)] HRESULT RemoteEndCreateObjectFromURL
([in] IUnknown
*result
,
315 [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
316 [local] HRESULT BeginCreateObjectFromByteStream
([in] IMFByteStream
*stream
, [in] const WCHAR
*url
,
317 [in] DWORD flags
, [in] IPropertyStore
*props
, [out] IUnknown
**cancel_cookie
,
318 [in] IMFAsyncCallback
*callback, [in] IUnknown
*unk_state
);
319 [call_as
(BeginCreateObjectFromByteStream
)] HRESULT RemoteBeginCreateObjectFromByteStream
([in] IMFByteStream
*stream
,
320 [in, unique] const WCHAR
*url
, [in] DWORD flags
, [in, unique] IPropertyStore
*props
,
321 [in] IMFRemoteAsyncCallback
*callback);
322 [local] HRESULT EndCreateObjectFromByteStream
([in] IMFAsyncResult
*result
, [out] MF_OBJECT_TYPE
*obj_type
,
323 [out] IUnknown
**object);
324 [call_as
(EndCreateObjectFromByteStream
)] HRESULT RemoteEndCreateObjectFromByteStream
([in] IUnknown
*result
,
325 [out] MF_OBJECT_TYPE
*obj_type
, [out] IUnknown
**object);
326 [local] HRESULT CanceObjectCreation
([in] IUnknown
*cancel_cookie
);
331 uuid(e93dcf6c
-4b07
-4e1e
-8123
-aa16ed6eadf5
)
333 interface IMFMediaTypeHandler
: IUnknown
336 HRESULT IsMediaTypeSupported
([in] IMFMediaType
*in_type
, [out] IMFMediaType
**out_type
);
338 [call_as
(IsMediaTypeSupported
)]
339 HRESULT RemoteIsMediaTypeSupported
([in, size_is(size
)] BYTE *data
, [in] DWORD size
,
340 [out, size_is(, *match_count
)] BYTE **match
, [out] DWORD
*match_count
);
342 HRESULT GetMediaTypeCount
([out] DWORD
*count
);
345 HRESULT GetMediaTypeByIndex
([in] DWORD index
, [out] IMFMediaType
**type
);
347 [call_as
(GetMediaTypeByIndex
)]
348 HRESULT RemoteGetMediaTypeByIndex
([in] DWORD index
, [out, size_is(, *count
)] BYTE **data
,
352 HRESULT SetCurrentMediaType
([in] IMFMediaType
*type
);
354 [call_as
(SetCurrentMediaType
)]
355 HRESULT RemoteSetCurrentMediaType
([in, size_is(count
)] BYTE *data
, [in] DWORD count
);
358 HRESULT GetCurrentMediaType
([out] IMFMediaType
**type
);
360 [call_as
(GetCurrentMediaType
)]
361 HRESULT RemoteGetCurrentMediaType
([out, size_is(, *count
)] BYTE **data
, [out] DWORD
*count
);
363 HRESULT GetMajorType
([out] GUID
*type
);
368 uuid(56c03d9c
-9dbb
-45f5
-ab4b
-d80f47c05938
)
370 interface IMFStreamDescriptor
: IMFAttributes
372 HRESULT GetStreamIdentifier
([out] DWORD
*identifier
);
374 HRESULT GetMediaTypeHandler
([out] IMFMediaTypeHandler
**handler
);
379 uuid(f6696e82
-74f7
-4f3d
-a178
-8a5e09c3659f
)
381 interface IMFClockStateSink
: IUnknown
383 HRESULT OnClockStart
(
384 [in] MFTIME hnsSystemTime
,
385 [in] LONGLONG llClockStartOffset
388 [in] MFTIME hnssSystemTime
390 HRESULT OnClockPause
(
391 [in] MFTIME hnsSystemTime
393 HRESULT OnClockRestart
(
394 [in] MFTIME hnsSystemTime
396 HRESULT OnClockSetRate
(
397 [in] MFTIME hnsSystemTime
,
404 uuid(fa993888
-4383-415a
-a930
-dd472a8cf6f7
)
406 interface IMFGetService
: IUnknown
409 [in] REFGUID guidService
,
411 [out, iid_is(riid
)] LPVOID
*ppvObject
417 uuid(03cb2711
-24d7
-4db6
-a17f
-f3a7a479a536
),
419 interface IMFPresentationDescriptor
: IMFAttributes
421 HRESULT GetStreamDescriptorCount
(
422 [out] DWORD
*count
);
424 HRESULT GetStreamDescriptorByIndex
(
426 [out] BOOL
*selected
,
427 [out] IMFStreamDescriptor
**descriptor
);
429 HRESULT SelectStream
(
432 HRESULT DeselectStream
(
436 [out] IMFPresentationDescriptor
**descriptor
);
441 uuid(197cd219
-19cb
-4de1
-a64c
-acf2edcbe59e
),
444 interface IMFSequencerSource
: IUnknown
446 HRESULT AppendTopology
(
447 [in] IMFTopology
*topology
,
449 [out] MFSequencerElementId
*element
);
451 HRESULT DeleteTopology
(
452 [in] MFSequencerElementId element
);
454 HRESULT GetPresentationContext
(
455 [in] IMFPresentationDescriptor
*pd
,
456 [out, optional] MFSequencerElementId
*id,
457 [out, optional] IMFTopology
**topology
);
459 HRESULT UpdateTopology
(
460 [in] MFSequencerElementId od
,
461 [in] IMFTopology
*topology
);
463 HRESULT UpdateTopologyFlags
(
464 [in] MFSequencerElementId
id,
469 cpp_quote
("HRESULT WINAPI MFCreateMediaSession(IMFAttributes *config, IMFMediaSession **session);")
470 cpp_quote
("HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **bytestream);" )
471 cpp_quote
("HRESULT WINAPI MFCreateMFByteStreamOnStreamEx(IUnknown *stream, IMFByteStream **bytestream);")
472 cpp_quote
("HRESULT WINAPI MFCreatePresentationClock(IMFPresentationClock **clock);")
473 cpp_quote
("HRESULT WINAPI MFCreatePresentationDescriptor(DWORD count, IMFStreamDescriptor **descriptors,")
474 cpp_quote
(" IMFPresentationDescriptor **presentation_desc);")
475 cpp_quote
("HRESULT WINAPI MFCreateSequencerSource(IUnknown *reserved, IMFSequencerSource **seq_source);" )
476 cpp_quote
("HRESULT WINAPI MFCreateSourceResolver(IMFSourceResolver **resolver);")
477 cpp_quote
("HRESULT WINAPI MFCreateStreamDescriptor(DWORD identifier, DWORD cMediaTypes,")
478 cpp_quote
(" IMFMediaType **types, IMFStreamDescriptor **descriptor);")
479 cpp_quote
("HRESULT WINAPI MFCreateSystemTimeSource(IMFPresentationTimeSource **time_source);")
480 cpp_quote
("HRESULT WINAPI MFCreateTopology(IMFTopology **topology);")
481 cpp_quote
("HRESULT WINAPI MFCreateTopologyNode(MF_TOPOLOGY_TYPE node_type, IMFTopologyNode **node);")
482 cpp_quote
("HRESULT WINAPI MFCreateTopoLoader(IMFTopoLoader **loader);")
483 cpp_quote
("HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array);")
484 cpp_quote
("HRESULT WINAPI MFGetService(IUnknown *object, REFGUID service, REFIID iid, void **obj);")
485 cpp_quote
("MFTIME WINAPI MFGetSystemTime(void);")
486 cpp_quote
("HRESULT WINAPI MFShutdownObject(IUnknown *object);")
488 typedef enum _MFMEDIASOURCE_CHARACTERISTICS
490 MFMEDIASOURCE_IS_LIVE
= 0x1,
491 MFMEDIASOURCE_CAN_SEEK
= 0x2,
492 MFMEDIASOURCE_CAN_PAUSE
= 0x4,
493 MFMEDIASOURCE_HAS_SLOW_SEEK
= 0x8,
494 MFMEDIASOURCE_HAS_MULTIPLE_PRESENTATIONS
= 0x10,
495 MFMEDIASOURCE_CAN_SKIPFORWARD
= 0x20,
496 MFMEDIASOURCE_CAN_SKIPBACKWARD
= 0x40,
497 MFMEDIASOURCE_DOES_NOT_USE_NETWORK
= 0x80,
498 } MFMEDIASOURCE_CHARACTERISTICS
;
502 uuid(279a808d
-aec7
-40c8
-9c6b
-a6b492c78a66
),
504 interface IMFMediaSource
: IMFMediaEventGenerator
506 HRESULT GetCharacteristics
(
507 [out] DWORD
*characteristics
);
510 HRESULT CreatePresentationDescriptor
(
511 [out] IMFPresentationDescriptor
**descriptor
);
512 [call_as
(CreatePresentationDescriptor
)]
513 HRESULT RemoteCreatePresentationDescriptor
(
515 [out, size_is(,*count
)] BYTE **data
,
516 [out] IMFPresentationDescriptor
**descriptor
);
519 [in] IMFPresentationDescriptor
*descriptor
,
520 [in, unique] const GUID
*time_format
,
521 [in, unique] const PROPVARIANT
*start_position
);
530 uuid(d182108f
-4ec6
-443f
-aa42
-a71106ec825f
),
532 interface IMFMediaStream
: IMFMediaEventGenerator
534 HRESULT GetMediaSource
(
535 [out] IMFMediaSource
**source);
537 HRESULT GetStreamDescriptor
(
538 [out] IMFStreamDescriptor
**descriptor
);
541 HRESULT RequestSample
(
542 [in] IUnknown
*token
);
544 [call_as
(RequestSample
)]
545 HRESULT RemoteRequestSample
();
548 interface IMFStreamSink
;
552 uuid(7ff12cce
-f76f
-41c2
-863b
-1666c8e5e139
)
554 interface IMFPresentationTimeSource
: IMFClock
556 HRESULT GetUnderlyingClock
([out] IMFClock
**clock
);
559 cpp_quote
("#define PRESENTATION_CURRENT_POSITION 0x7fffffffffffffff")
563 uuid(868ce85c
-8ea9
-4f55
-ab82
-b009a910a805
)
565 interface IMFPresentationClock
: IMFClock
567 HRESULT SetTimeSource
([in] IMFPresentationTimeSource
*time_source
);
568 HRESULT GetTimeSource
([out] IMFPresentationTimeSource
**time_source
);
569 HRESULT GetTime
([out] MFTIME
*time
);
570 HRESULT AddClockStateSink
([in] IMFClockStateSink
*state_sink
);
571 HRESULT RemoveClockStateSink
([in] IMFClockStateSink
*state_sink
);
572 HRESULT Start
([in] LONGLONG start_offset
);
579 uuid(6ef2a660
-47c0
-4666-b13d
-cbb717f2fa2c
)
581 interface IMFMediaSink
: IUnknown
583 HRESULT GetCharacteristics
([out] DWORD
*characteristics
);
584 HRESULT AddStreamSink
(
585 [in] DWORD stream_sink_id
,
586 [in] IMFMediaType
*media_type
,
587 [out] IMFStreamSink
**stream_sink
);
588 HRESULT RemoveStreamSink
([in] DWORD stream_sink_id
);
589 HRESULT GetStreamSinkCount
([out] DWORD
*count
);
590 HRESULT GetStreamSinkByIndex
([in] DWORD index
, [out] IMFStreamSink
**sink
);
591 HRESULT GetStreamSinkById
([in] DWORD stream_sink_id
, [out] IMFStreamSink
**sink
);
592 HRESULT SetPresentationClock
([in] IMFPresentationClock
*clock
);
593 HRESULT GetPresentationClock
([out] IMFPresentationClock
**clock
);
597 typedef enum _MFSHUTDOWN_STATUS
599 MFSHUTDOWN_INITIATED
,
600 MFSHUTDOWN_COMPLETED
,
605 uuid(97ec2ea4
-0e42
-4937-97ac
-9d6d328824e1
)
607 interface IMFShutdown
: IUnknown
610 HRESULT GetShutdownStatus
([out] MFSHUTDOWN_STATUS
*status
);
613 cpp_quote
("#define MF_RESOLUTION_MEDIASOURCE 0x00000001")
614 cpp_quote
("#define MF_RESOLUTION_BYTESTREAM 0x00000002")
615 cpp_quote
("#define MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE 0x00000010")
616 cpp_quote
("#define MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL 0x00000020")
617 cpp_quote
("#define MF_RESOLUTION_READ 0x00010000")
618 cpp_quote
("#define MF_RESOLUTION_WRITE 0x00020000")
619 cpp_quote
("#define MF_RESOLUTION_DISABLE_LOCAL_PLUGINS 0x00000040")
621 cpp_quote
("#ifdef __cplusplus")
622 cpp_quote
("static inline HRESULT MFSetAttributeSize(IMFAttributes *attributes, REFGUID key, UINT32 width, UINT32 height)")
624 cpp_quote
(" return attributes->SetUINT64(key, ((UINT64)width << 32) | height);")
626 cpp_quote
("static inline HRESULT MFSetAttributeRatio(IMFAttributes *attributes, REFGUID key, UINT32 numerator, UINT32 denominator)")
628 cpp_quote
(" return attributes->SetUINT64(key, ((UINT64)numerator << 32) | denominator);")
632 cpp_quote
("EXTERN_GUID(MF_SD_LANGUAGE, 0x00af2180, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x03, 0x59, 0x3b, 0xc1, 0x21);")
633 cpp_quote
("EXTERN_GUID(MF_SD_MUTUALLY_EXCLUSIVE, 0x023ef79c, 0x388d, 0x487f, 0xac, 0x17, 0x69, 0x6c, 0xd6, 0xe3, 0xc6, 0xf5);")
634 cpp_quote
("EXTERN_GUID(MF_SD_PROTECTED, 0x00af2181, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x03, 0x59, 0x3b, 0xc1, 0x21);")
635 cpp_quote
("EXTERN_GUID(MF_SD_STREAM_NAME, 0x4f1b099d, 0xd314, 0x41e5, 0xa7, 0x81, 0x7f, 0xef, 0xaa, 0x4c, 0x50, 0x1f);")
636 cpp_quote
("EXTERN_GUID(MF_SD_SAMI_LANGUAGE, 0x36fcb98a, 0x6cd0, 0x44cb, 0xac, 0xb9, 0xa8, 0xf5, 0x60, 0x0d, 0xd0, 0xbb);")
638 cpp_quote
("EXTERN_GUID(MF_PD_PMPHOST_CONTEXT, 0x6c990d31, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
639 cpp_quote
("EXTERN_GUID(MF_PD_APP_CONTEXT, 0x6c990d32, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
640 cpp_quote
("EXTERN_GUID(MF_PD_TOTAL_FILE_SIZE, 0x6c990d34, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
641 cpp_quote
("EXTERN_GUID(MF_PD_AUDIO_ENCODING_BITRATE, 0x6c990d35, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
642 cpp_quote
("EXTERN_GUID(MF_PD_VIDEO_ENCODING_BITRATE, 0x6c990d36, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
643 cpp_quote
("EXTERN_GUID(MF_PD_MIME_TYPE, 0x6c990d37, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
644 cpp_quote
("EXTERN_GUID(MF_PD_LAST_MODIFIED_TIME, 0x6c990d38, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
645 cpp_quote
("EXTERN_GUID(MF_PD_PLAYBACK_ELEMENT_ID, 0x6c990d39, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
646 cpp_quote
("EXTERN_GUID(MF_PD_PREFERRED_LANGUAGE, 0x6c990d3a, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
647 cpp_quote
("EXTERN_GUID(MF_PD_PLAYBACK_BOUNDARY_TIME, 0x6c990d3b, 0xbb8e, 0x477a, 0x85, 0x98, 0x0d, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);")
648 cpp_quote
("EXTERN_GUID(MF_PD_AUDIO_ISVARIABLEBITRATE, 0x33026ee0, 0xe387, 0x4582, 0xae, 0x0a, 0x34, 0xa2, 0xad, 0x3b, 0xaa, 0x18);")
649 cpp_quote
("DEFINE_GUID(MF_PD_ADAPTIVE_STREAMING, 0xea0d5d97, 0x29f9, 0x488b, 0xae, 0x6b, 0x7d, 0x6b, 0x41, 0x36, 0x11, 0x2b);")
650 cpp_quote
("EXTERN_GUID(MF_PD_SAMI_STYLELIST, 0xe0b73c7f, 0x486d, 0x484e, 0x98, 0x72, 0x4d, 0xe5, 0x19, 0x2a, 0x7b, 0xf8);")