/
mfidl.inc
3140 lines (2297 loc) · 109 KB
/
mfidl.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ifndef __REQUIRED_RPCNDR_H_VERSION__
define __REQUIRED_RPCNDR_H_VERSION__ 500
endif
ifndef __REQUIRED_RPCSAL_H_VERSION__
define __REQUIRED_RPCSAL_H_VERSION__ 100
endif
include rpc.inc
include rpcndr.inc
ifndef __RPCNDR_H_VERSION__
.err <this stub requires an updated version of rpcndr.inc>
endif
ifndef COM_NO_WINDOWS_H
include windows.inc
include ole2.inc
endif
ifndef __mfidl_h__
define __mfidl_h__
include mfobjects.inc
include mftransform.inc
include winapifamily.inc
include windef.inc
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
.enum MFSESSION_SETTOPOLOGY_FLAGS {
MFSESSION_SETTOPOLOGY_IMMEDIATE = 0x1,
MFSESSION_SETTOPOLOGY_NORESOLUTION = 0x2,
MFSESSION_SETTOPOLOGY_CLEAR_CURRENT = 0x4
}
.enum MFSESSION_GETFULLTOPOLOGY_FLAGS {
MFSESSION_GETFULLTOPOLOGY_CURRENT = 0x1
}
.enum MFPMPSESSION_CREATION_FLAGS {
MFPMPSESSION_UNPROTECTED_PROCESS = 0x1
}
TOPOID typedef qword
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
DEFINE_GUID( MF_WVC1_PROG_SINGLE_SLICE_CONTENT, 0x67EC2559, 0x0F2F, 0x4420, 0xA4, 0xDD, 0x2F, 0x8E, 0xE7, 0xA5, 0x73, 0x8B);
DEFINE_GUID( MF_PROGRESSIVE_CODING_CONTENT, 0x8F020EEA, 0x1508, 0x471F, 0x9D, 0xA6, 0x50, 0x7D, 0x7C, 0xFA, 0x40, 0xDB);
DEFINE_GUID( MF_NALU_LENGTH_SET, 0xA7911D53, 0x12A4, 0x4965, 0xAE, 0x70, 0x6E, 0xAD, 0xD6, 0xFF, 0x05, 0x51);
DEFINE_GUID( MF_NALU_LENGTH_INFORMATION, 0x19124E7C, 0xAD4B, 0x465F, 0xBB, 0x18, 0x20, 0x18, 0x62, 0x87, 0xB6, 0xAF);
DEFINE_GUID( MF_USER_DATA_PAYLOAD, 0xd1d4985d, 0xdc92, 0x457a, 0xb3, 0xa0, 0x65, 0x1a, 0x33, 0xa3, 0x10, 0x47);
DEFINE_GUID( MF_MPEG4SINK_SPSPPS_PASSTHROUGH, 0x5601a134, 0x2005, 0x4ad2, 0xb3, 0x7d, 0x22, 0xa6, 0xc5, 0x54, 0xde, 0xb2);
DEFINE_GUID( MF_MPEG4SINK_MOOV_BEFORE_MDAT, 0xf672e3ac, 0xe1e6, 0x4f10, 0xb5, 0xec, 0x5f, 0x3b, 0x30, 0x82, 0x88, 0x16);
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
ifndef __IMFMediaSession_INTERFACE_DEFINED__
define __IMFMediaSession_INTERFACE_DEFINED__
DEFINE_IIDX(IMFMediaSession, "90377834-21D0-4dee-8214-BA2E3E6C1127")
.comdef IMFMediaSession : public IMFMediaEventGenerator
SetTopology proc :DWORD, :ptr
ClearTopologies proc
Start proc :ptr, :ptr
_Pause proc
Stop proc
Close proc
Shutdown proc
GetClock proc :ptr
GetSessionCapabilities proc :ptr
GetFullTopology proc :DWORD, :TOPOID, :ptr
.ends
endif
DEFINE_GUID( MF_SESSION_TOPOLOADER, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x71);
DEFINE_GUID( MF_SESSION_GLOBAL_TIME, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x72);
DEFINE_GUID( MF_SESSION_QUALITY_MANAGER, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x73);
DEFINE_GUID( MF_SESSION_CONTENT_PROTECTION_MANAGER, 0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x74);
DEFINE_GUID( MF_SESSION_SERVER_CONTEXT, 0xafe5b291, 0x50fa, 0x46e8, 0xb9, 0xbe, 0xc, 0xc, 0x3c, 0xe4, 0xb3, 0xa5);
DEFINE_GUID( MF_SESSION_REMOTE_SOURCE_MODE, 0xf4033ef4, 0x9bb3, 0x4378, 0x94, 0x1f, 0x85, 0xa0, 0x85, 0x6b, 0xc2, 0x44);
DEFINE_GUID( MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME, 0x190e852f, 0x6238, 0x42d1, 0xb5, 0xaf, 0x69, 0xea, 0x33, 0x8e, 0xf8, 0x50);
DEFINE_GUID( MF_PMP_SERVER_CONTEXT, 0x2f00c910, 0xd2cf, 0x4278, 0x8b, 0x6a, 0xd0, 0x77, 0xfa, 0xc3, 0xa2, 0x5f);
;STDAPI
MFCreateMediaSession proto __cdecl \
pConfiguration: ptr IMFAttributes,
ppMediaSession: ptr ptr IMFMediaSession
;STDAPI
MFCreatePMPMediaSession proto __cdecl \
dwCreationFlags: DWORD,
pConfiguration: ptr IMFAttributes,
ppMediaSession: ptr ptr IMFMediaSession,
ppEnablerActivate: ptr IMFActivate
endif ;; WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
.enum MF_OBJECT_TYPE {
MF_OBJECT_MEDIASOURCE = 0,
MF_OBJECT_BYTESTREAM = ( MF_OBJECT_MEDIASOURCE + 1 ) ,
MF_OBJECT_INVALID = ( MF_OBJECT_BYTESTREAM + 1 )
}
.enum _MIDL___MIDL_itf_mfidl_0000_0001_0001 {
MF_RESOLUTION_MEDIASOURCE = 0x1,
MF_RESOLUTION_BYTESTREAM = 0x2,
MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE = 0x10,
MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL = 0x20,
MF_RESOLUTION_DISABLE_LOCAL_PLUGINS = 0x40,
MF_RESOLUTION_PLUGIN_CONTROL_POLICY_APPROVED_ONLY = 0x80,
MF_RESOLUTION_PLUGIN_CONTROL_POLICY_WEB_ONLY = 0x100,
MF_RESOLUTION_READ = 0x10000,
MF_RESOLUTION_WRITE = 0x20000
}
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
.enum MF_CONNECT_METHOD {
MF_CONNECT_DIRECT = 0,
MF_CONNECT_ALLOW_CONVERTER = 0x1,
MF_CONNECT_ALLOW_DECODER = 0x3,
MF_CONNECT_RESOLVE_INDEPENDENT_OUTPUTTYPES = 0x4,
MF_CONNECT_AS_OPTIONAL = 0x10000,
MF_CONNECT_AS_OPTIONAL_BRANCH = 0x20000
}
.enum MF_TOPOLOGY_RESOLUTION_STATUS_FLAGS {
MF_TOPOLOGY_RESOLUTION_SUCCEEDED = 0,
MF_OPTIONAL_NODE_REJECTED_MEDIA_TYPE = 0x1,
MF_OPTIONAL_NODE_REJECTED_PROTECTED_PROCESS = 0x2
}
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
ifndef __IMFSourceResolver_INTERFACE_DEFINED__
define __IMFSourceResolver_INTERFACE_DEFINED__
DEFINE_IIDX(IMFSourceResolver, "FBE5A32D-A497-4b61-BB85-97B1A848A6E3")
.comdef IMFSourceResolver : public IUnknown
CreateObjectFromURL proc :LPCWSTR, :DWORD, :ptr, :ptr, :ptr
CreateObjectFromByteStream proc :ptr, :LPCWSTR, :DWORD, :ptr, :ptr, :ptr
BeginCreateObjectFromURL proc :LPCWSTR, :DWORD, :ptr, :ptr, :ptr, :ptr
EndCreateObjectFromURL proc :ptr, :ptr, :ptr
BeginCreateObjectFromByteStream proc :ptr, :LPCWSTR, :DWORD, :ptr, :ptr, :ptr, :ptr
EndCreateObjectFromByteStream proc :ptr, :ptr, :ptr
CancelObjectCreation proc :ptr
.ends
IMFSourceResolver_RemoteBeginCreateObjectFromURL_Proxy proto __cdecl :ptr, :DWORD, :ptr, :ptr
IMFSourceResolver_RemoteBeginCreateObjectFromURL_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFSourceResolver_RemoteEndCreateObjectFromURL_Proxy proto __cdecl :ptr, :ptr, :ptr, :ptr
IMFSourceResolver_RemoteEndCreateObjectFromURL_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFSourceResolver_RemoteBeginCreateObjectFromByteStream_Proxy proto __cdecl :ptr, :ptr, :ptr, :DWORD, :ptr, :ptr
IMFSourceResolver_RemoteBeginCreateObjectFromByteStream_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFSourceResolver_RemoteEndCreateObjectFromByteStream_Proxy proto __cdecl :ptr, :ptr, :ptr, :ptr
IMFSourceResolver_RemoteEndCreateObjectFromByteStream_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
endif
;STDAPI
MFCreateSourceResolver proto __cdecl \
ppISourceResolver: ptr IMFSourceResolver
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
;STDAPI
CreatePropertyStore proto __cdecl \
ppStore: ptr IPropertyStore
;STDAPI
MFGetSupportedSchemes proto __cdecl \
pPropVarSchemeArray: ptr PROPVARIANT
;STDAPI
MFGetSupportedMimeTypes proto __cdecl \
pPropVarMimeTypeArray: ptr PROPVARIANT
MFPKEY_SourceOpenMonitor equ <{ { 0x074d4637, 0xb5ae, 0x465d, 0xaf, 0x17, 0x1a, 0x53, 0x8d, 0x28, 0x59, 0xdd}, 0x02 }>
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
MFPKEY_ASFMediaSource_ApproxSeek equ <{ { 0xb4cd270f, 0x244d, 0x4969, 0xbb, 0x92, 0x3f, 0x0f, 0xb8, 0x31, 0x6f, 0x10}, 0x01 }>
endif
if (WINVER GE _WIN32_WINNT_WIN7)
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
MFPKEY_ASFMediaSource_IterativeSeekIfNoIndex equ <{ { 0x170b65dc, 0x4a4e, 0x407a, 0xac, 0x22, 0x57, 0x7f, 0x50, 0xe4, 0xa3, 0x7c }, 0x01 }>
MFPKEY_ASFMediaSource_IterativeSeek_Max_Count equ <{ { 0x170b65dc, 0x4a4e, 0x407a, 0xac, 0x22, 0x57, 0x7f, 0x50, 0xe4, 0xa3, 0x7c }, 0x02 }>
MFPKEY_ASFMediaSource_IterativeSeek_Tolerance_In_MilliSecond equ <{ { 0x170b65dc, 0x4a4e, 0x407a, 0xac, 0x22, 0x57, 0x7f, 0x50, 0xe4, 0xa3, 0x7c }, 0x03 }>
MFPKEY_Content_DLNA_Profile_ID equ <{ { 0xcfa31b45, 0x525d, 0x4998, 0xbb, 0x44, 0x3f, 0x7d, 0x81, 0x54, 0x2f, 0xa4 }, 0x01 }>
MFPKEY_MediaSource_DisableReadAhead equ <{ { 0x26366c14, 0xc5bf, 0x4c76, 0x88, 0x7b, 0x9f, 0x17, 0x54, 0xdb, 0x5f, 0x09 }, 0x01 }>
MFPKEY_SBESourceMode equ <{ { 0x3fae10bb, 0xf859, 0x4192, 0xb5, 0x62, 0x18, 0x68, 0xd3, 0xda, 0x3a, 0x02 }, 0x01 }>
endif
endif
if (WINVER GE _WIN32_WINNT_WIN8)
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
MFPKEY_PMP_Creation_Callback equ <{ { 0x28bb4de2, 0x26a2, 0x4870, 0xb7, 0x20, 0xd2, 0x6b, 0xbe, 0xb1, 0x49, 0x42 }, 0x01 }>
MFPKEY_HTTP_ByteStream_Enable_Urlmon equ <{ { 0xeda8afdf, 0xc171, 0x417f, 0x8d, 0x17, 0x2e, 0x09, 0x18, 0x30, 0x32, 0x92 }, 0x01 }>
MFPKEY_HTTP_ByteStream_Urlmon_Bind_Flags equ <{ { 0xeda8afdf, 0xc171, 0x417f, 0x8d, 0x17, 0x2e, 0x09, 0x18, 0x30, 0x32, 0x92 }, 0x02 }>
MFPKEY_HTTP_ByteStream_Urlmon_Security_Id equ <{ { 0xeda8afdf, 0xc171, 0x417f, 0x8d, 0x17, 0x2e, 0x09, 0x18, 0x30, 0x32, 0x92 }, 0x03 }>
MFPKEY_HTTP_ByteStream_Urlmon_Window equ <{ { 0xeda8afdf, 0xc171, 0x417f, 0x8d, 0x17, 0x2e, 0x09, 0x18, 0x30, 0x32, 0x92 }, 0x04 }>
MFPKEY_HTTP_ByteStream_Urlmon_Callback_QueryService equ <{ { 0xeda8afdf, 0xc171, 0x417f, 0x8d, 0x17, 0x2e, 0x09, 0x18, 0x30, 0x32, 0x92 }, 0x05 }>
MFPKEY_MediaProtectionSystemId equ <{ { 0x636b271d, 0xddc7, 0x49e9, 0xa6, 0xc6, 0x47, 0x38, 0x59, 0x62, 0xe5, 0xbd }, 0x01 }>
MFPKEY_MediaProtectionSystemContext equ <{ { 0x636b271d, 0xddc7, 0x49e9, 0xa6, 0xc6, 0x47, 0x38, 0x59, 0x62, 0xe5, 0xbd }, 0x02 }>
MFPKEY_MediaProtectionSystemIdMapping equ <{ { 0x636b271d, 0xddc7, 0x49e9, 0xa6, 0xc6, 0x47, 0x38, 0x59, 0x62, 0xe5, 0xbd }, 0x03 }>
MFPKEY_MediaProtectionContainerGuid equ <{ { 0x42af3d7c, 0x00cf, 0x4a0f, 0x81, 0xf0, 0xad, 0xf5, 0x24, 0xa5, 0xa5, 0xb5 }, 0x01 }>
MFPKEY_MediaProtectionSystemContextsPerTrack equ <{ { 0x4454b092, 0xd3da, 0x49b0, 0x84, 0x52, 0x68, 0x50, 0xc7, 0xdb, 0x76, 0x4d }, 0x03 }>
endif
MFPKEY_HTTP_ByteStream_Download_Mode equ <{ { 0x817f11b7, 0xa982, 0x46ec, 0xa4, 0x49, 0xef, 0x58, 0xae, 0xd5, 0x3c, 0xa8 }, 0x01 }>
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
.enum MFMEDIASOURCE_CHARACTERISTICS {
MFMEDIASOURCE_IS_LIVE = 0x1,
MFMEDIASOURCE_CAN_SEEK = 0x2,
MFMEDIASOURCE_CAN_PAUSE = 0x4,
MFMEDIASOURCE_HAS_SLOW_SEEK = 0x8,
MFMEDIASOURCE_HAS_MULTIPLE_PRESENTATIONS = 0x10,
MFMEDIASOURCE_CAN_SKIPFORWARD = 0x20,
MFMEDIASOURCE_CAN_SKIPBACKWARD = 0x40,
MFMEDIASOURCE_DOES_NOT_USE_NETWORK = 0x80
}
if (WINVER GE _WIN32_WINNT_WIN7)
DEFINE_GUID( MF_TIME_FORMAT_ENTRY_RELATIVE, 0x4399f178, 0x46d3, 0x4504, 0xaf, 0xda, 0x20, 0xd3, 0x2e, 0x9b, 0xa3, 0x60 );
endif
ifndef __IMFMediaSource_INTERFACE_DEFINED__
define __IMFMediaSource_INTERFACE_DEFINED__
DEFINE_IIDX(IMFMediaSource, "279a808d-aec7-40c8-9c6b-a6b492c78a66")
.comdef IMFMediaSource : public IMFMediaEventGenerator
GetCharacteristics proc :ptr
CreatePresentationDescriptor proc :ptr
Start proc :ptr, :ptr, :ptr
Stop proc
_Pause proc
Shutdown proc
.ends
IMFMediaSource_RemoteCreatePresentationDescriptor_Proxy proto __cdecl :ptr, :ptr, :ptr, :ptr
IMFMediaSource_RemoteCreatePresentationDescriptor_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
endif
endif
if (WINVER GE _WIN32_WINNT_WIN8)
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
ifndef __IMFMediaSourceEx_INTERFACE_DEFINED__
define __IMFMediaSourceEx_INTERFACE_DEFINED__
DEFINE_IIDX(IMFMediaSourceEx, "3C9B2EB9-86D5-4514-A394-F56664F9F0D8")
.comdef IMFMediaSourceEx : public IMFMediaSource
GetSourceAttributes proc :ptr
GetStreamAttributes proc :DWORD, :ptr
SetD3DManager proc :ptr
.ends
endif
DEFINE_GUID( MF_SOURCE_STREAM_SUPPORTS_HW_CONNECTION, 0xa38253aa, 0x6314, 0x42fd, 0xa3, 0xce, 0xbb, 0x27, 0xb6, 0x85, 0x99, 0x46);
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
ifndef __IMFMediaStream_INTERFACE_DEFINED__
define __IMFMediaStream_INTERFACE_DEFINED__
DEFINE_IIDX(IMFMediaStream, "D182108F-4EC6-443f-AA42-A71106EC825F")
.comdef IMFMediaStream : public IMFMediaEventGenerator
GetMediaSource proc :ptr
GetStreamDescriptor proc :ptr
RequestSample proc :ptr
.ends
IMFMediaStream_RemoteRequestSample_Proxy proto __cdecl :ptr
IMFMediaStream_RemoteRequestSample_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
endif
if (WINVER GE _WIN32_WINNT_WIN8)
DEFINE_GUID( MF_STREAM_SINK_SUPPORTS_HW_CONNECTION, 0x9b465cbf, 0x597, 0x4f9e, 0x9f, 0x3c, 0xb9, 0x7e, 0xee, 0xf9, 0x3, 0x59);
DEFINE_GUID( MF_STREAM_SINK_SUPPORTS_ROTATION, 0xb3e96280, 0xbd05, 0x41a5, 0x97, 0xad, 0x8a, 0x7f, 0xee, 0x24, 0xb9, 0x12);
endif
MEDIASINK_FIXED_STREAMS equ 0x00000001
MEDIASINK_CANNOT_MATCH_CLOCK equ 0x00000002
MEDIASINK_RATELESS equ 0x00000004
MEDIASINK_CLOCK_REQUIRED equ 0x00000008
MEDIASINK_CAN_PREROLL equ 0x00000010
MEDIASINK_REQUIRE_REFERENCE_MEDIATYPE equ 0x00000020
ifndef __IMFMediaSink_INTERFACE_DEFINED__
define __IMFMediaSink_INTERFACE_DEFINED__
DEFINE_IIDX(IMFMediaSink, "6ef2a660-47c0-4666-b13d-cbb717f2fa2c")
.comdef IMFMediaSink : public IUnknown
GetCharacteristics proc :ptr
AddStreamSink proc :DWORD, :ptr, :ptr
RemoveStreamSink proc :DWORD
GetStreamSinkCount proc :ptr
GetStreamSinkByIndex proc :DWORD, :ptr
GetStreamSinkById proc :DWORD, :ptr
SetPresentationClock proc :ptr
GetPresentationClock proc :ptr
Shutdown proc
.ends
endif
.enum MFSTREAMSINK_MARKER_TYPE {
MFSTREAMSINK_MARKER_DEFAULT = 0,
MFSTREAMSINK_MARKER_ENDOFSEGMENT = ( MFSTREAMSINK_MARKER_DEFAULT + 1 ) ,
MFSTREAMSINK_MARKER_TICK = ( MFSTREAMSINK_MARKER_ENDOFSEGMENT + 1 ) ,
MFSTREAMSINK_MARKER_EVENT = ( MFSTREAMSINK_MARKER_TICK + 1 )
}
ifndef __IMFStreamSink_INTERFACE_DEFINED__
define __IMFStreamSink_INTERFACE_DEFINED__
DEFINE_IIDX(IMFStreamSink, "0A97B3CF-8E7C-4a3d-8F8C-0C843DC247FB")
.comdef IMFStreamSink : public IMFMediaEventGenerator
GetMediaSink proc :ptr
GetIdentifier proc :ptr
GetMediaTypeHandler proc :ptr
ProcessSample proc :ptr
PlaceMarker proc :MFSTREAMSINK_MARKER_TYPE, :ptr, :ptr
Flush proc
.ends
endif
ifndef __IMFVideoSampleAllocator_INTERFACE_DEFINED__
define __IMFVideoSampleAllocator_INTERFACE_DEFINED__
DEFINE_IIDX(IMFVideoSampleAllocator, "86cbc910-e533-4751-8e3b-f19b5b806a03")
.comdef IMFVideoSampleAllocator : public IUnknown
SetDirectXManager proc :ptr
UninitializeSampleAllocator proc
InitializeSampleAllocator proc :DWORD, :ptr
AllocateSample proc :ptr
.ends
endif
if (WINVER GE _WIN32_WINNT_WIN7)
ifndef __IMFVideoSampleAllocatorNotify_INTERFACE_DEFINED__
define __IMFVideoSampleAllocatorNotify_INTERFACE_DEFINED__
DEFINE_IIDX(IMFVideoSampleAllocatorNotify, "A792CDBE-C374-4e89-8335-278E7B9956A4")
.comdef IMFVideoSampleAllocatorNotify : public IUnknown
NotifyRelease proc
.ends
endif
ifndef __IMFVideoSampleAllocatorCallback_INTERFACE_DEFINED__
define __IMFVideoSampleAllocatorCallback_INTERFACE_DEFINED__
DEFINE_IIDX(IMFVideoSampleAllocatorCallback, "992388B4-3372-4f67-8B6F-C84C071F4751")
.comdef IMFVideoSampleAllocatorCallback : public IUnknown
SetCallback proc :ptr
GetFreeSampleCount proc :ptr
.ends
endif
ifndef __IMFVideoSampleAllocatorEx_INTERFACE_DEFINED__
define __IMFVideoSampleAllocatorEx_INTERFACE_DEFINED__
DEFINE_IIDX(IMFVideoSampleAllocatorEx, "545b3a48-3283-4f62-866f-a62d8f598f9f")
.comdef IMFVideoSampleAllocatorEx : public IMFVideoSampleAllocator
InitializeSampleAllocatorEx proc :DWORD, :DWORD, :ptr, :ptr
.ends
endif
endif
if (WINVER GE _WIN32_WINNT_WINBLUE)
ifndef __IMFDXGIDeviceManagerSource_INTERFACE_DEFINED__
define __IMFDXGIDeviceManagerSource_INTERFACE_DEFINED__
DEFINE_IIDX(IMFDXGIDeviceManagerSource, "20bc074b-7a8d-4609-8c3b-64a0a3b5d7ce")
.comdef IMFDXGIDeviceManagerSource : public IUnknown
GetManager proc :ptr
.ends
endif
endif
endif
if (WINVER GE _WIN32_WINNT_WIN8)
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
.enum MF_VIDEO_PROCESSOR_ROTATION {
ROTATION_NONE = 0,
ROTATION_NORMAL = 1
}
.enum MF_VIDEO_PROCESSOR_MIRROR {
MIRROR_NONE = 0,
MIRROR_HORIZONTAL = 1,
MIRROR_VERTICAL = 2
}
ifndef __IMFVideoProcessorControl_INTERFACE_DEFINED__
define __IMFVideoProcessorControl_INTERFACE_DEFINED__
DEFINE_IIDX(IMFVideoProcessorControl, "A3F675D5-6119-4f7f-A100-1D8B280F0EFB")
.comdef IMFVideoProcessorControl : public IUnknown
SetBorderColor proc :ptr
SetSourceRectangle proc :ptr
SetDestinationRectangle proc :ptr
SetMirror proc :MF_VIDEO_PROCESSOR_MIRROR
SetRotation proc :MF_VIDEO_PROCESSOR_ROTATION
SetConstrictionSize proc :ptr
.ends
endif
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
ifndef __IMFTopology_INTERFACE_DEFINED__
define __IMFTopology_INTERFACE_DEFINED__
DEFINE_IIDX(IMFTopology, "83CF873A-F6DA-4bc8-823F-BACFD55DC433")
.comdef IMFTopology : public IMFAttributes
GetTopologyID proc :ptr
AddNode proc :ptr
RemoveNode proc :ptr
GetNodeCount proc :ptr
GetNode proc :WORD, :ptr
Clear proc
CloneFrom proc :ptr
GetNodeByID proc :TOPOID, :ptr
GetSourceNodeCollection proc :ptr
GetOutputNodeCollection proc :ptr
.ends
endif
endif
DEFINE_GUID( MF_TOPOLOGY_PROJECTSTART, 0x7ed3f802, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);
DEFINE_GUID( MF_TOPOLOGY_PROJECTSTOP, 0x7ed3f803, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);
DEFINE_GUID( MF_TOPOLOGY_NO_MARKIN_MARKOUT, 0x7ed3f804, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);
if (WINVER GE _WIN32_WINNT_WIN7)
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
.enum MFTOPOLOGY_DXVA_MODE {
MFTOPOLOGY_DXVA_DEFAULT = 0,
MFTOPOLOGY_DXVA_NONE = 1,
MFTOPOLOGY_DXVA_FULL = 2
}
endif
DEFINE_GUID(MF_TOPOLOGY_DXVA_MODE, 0x1e8d34f6, 0xf5ab, 0x4e23, 0xbb, 0x88, 0x87, 0x4a, 0xa3, 0xa1, 0xa7, 0x4d);
DEFINE_GUID(MF_TOPOLOGY_ENABLE_XVP_FOR_PLAYBACK, 0x1967731f, 0xcd78, 0x42fc, 0xb0, 0x26, 0x9, 0x92, 0xa5, 0x6e, 0x56, 0x93);
DEFINE_GUID(MF_TOPOLOGY_STATIC_PLAYBACK_OPTIMIZATIONS, 0xb86cac42, 0x41a6, 0x4b79, 0x89, 0x7a, 0x1a, 0xb0, 0xe5, 0x2b, 0x4a, 0x1b);
DEFINE_GUID(MF_TOPOLOGY_PLAYBACK_MAX_DIMS, 0x5715cf19, 0x5768, 0x44aa, 0xad, 0x6e, 0x87, 0x21, 0xf1, 0xb0, 0xf9, 0xbb);
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
.enum MFTOPOLOGY_HARDWARE_MODE {
MFTOPOLOGY_HWMODE_SOFTWARE_ONLY = 0,
MFTOPOLOGY_HWMODE_USE_HARDWARE = 1,
MFTOPOLOGY_HWMODE_USE_ONLY_HARDWARE = 2
}
DEFINE_GUID(MF_TOPOLOGY_HARDWARE_MODE, 0xd2d362fd, 0x4e4f, 0x4191, 0xa5, 0x79, 0xc6, 0x18, 0xb6, 0x67, 0x6, 0xaf);
DEFINE_GUID(MF_TOPOLOGY_PLAYBACK_FRAMERATE, 0xc164737a, 0xc2b1, 0x4553, 0x83, 0xbb, 0x5a, 0x52, 0x60, 0x72, 0x44, 0x8f);
DEFINE_GUID(MF_TOPOLOGY_DYNAMIC_CHANGE_NOT_ALLOWED, 0xd529950b, 0xd484, 0x4527, 0xa9, 0xcd, 0xb1, 0x90, 0x95, 0x32, 0xb5, 0xb0);
DEFINE_GUID(MF_TOPOLOGY_ENUMERATE_SOURCE_TYPES, 0x6248c36d, 0x5d0b, 0x4f40, 0xa0, 0xbb, 0xb0, 0xb3, 0x05, 0xf7, 0x76, 0x98);
DEFINE_GUID( MF_TOPOLOGY_START_TIME_ON_PRESENTATION_SWITCH, 0xc8cc113f, 0x7951, 0x4548, 0xaa, 0xd6, 0x9e, 0xd6, 0x20, 0x2e, 0x62, 0xb3);
endif
endif
if (WINVER GE _WIN32_WINNT_WIN8)
DEFINE_GUID( MF_DISABLE_LOCALLY_REGISTERED_PLUGINS, 0x66b16da9, 0xadd4, 0x47e0, 0xa1, 0x6b, 0x5a, 0xf1, 0xfb, 0x48, 0x36, 0x34);
DEFINE_GUID( MF_LOCAL_PLUGIN_CONTROL_POLICY, 0xd91b0085, 0xc86d, 0x4f81, 0x88, 0x22, 0x8c, 0x68, 0xe1, 0xd7, 0xfa, 0x04);
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
MFCreateTopology proto __cdecl \
ppTopo: ptr ptr
.enum MF_TOPOLOGY_TYPE {
MF_TOPOLOGY_OUTPUT_NODE = 0,
MF_TOPOLOGY_SOURCESTREAM_NODE = ( MF_TOPOLOGY_OUTPUT_NODE + 1 ) ,
MF_TOPOLOGY_TRANSFORM_NODE = ( MF_TOPOLOGY_SOURCESTREAM_NODE + 1 ) ,
MF_TOPOLOGY_TEE_NODE = ( MF_TOPOLOGY_TRANSFORM_NODE + 1 ) ,
MF_TOPOLOGY_MAX = 0xffffffff
}
ifndef __IMFTopologyNode_INTERFACE_DEFINED__
define __IMFTopologyNode_INTERFACE_DEFINED__
DEFINE_IIDX(IMFTopologyNode, "83CF873A-F6DA-4bc8-823F-BACFD55DC430")
.comdef IMFTopologyNode : public IMFAttributes
SetObject proc :ptr
GetObject proc :ptr
GetNodeType proc :ptr
GetTopoNodeID proc :ptr
SetTopoNodeID proc :TOPOID
GetInputCount proc :ptr
GetOutputCount proc :ptr
ConnectOutput proc :DWORD, :ptr, :DWORD
DisconnectOutput proc :DWORD
GetInput proc :DWORD, :ptr, :ptr
GetOutput proc :DWORD, :ptr, :ptr
SetOutputPrefType proc :DWORD, :ptr
GetOutputPrefType proc :DWORD, :ptr
SetInputPrefType proc :DWORD, :ptr
GetInputPrefType proc :DWORD, :ptr
CloneFrom proc :ptr
.ends
IMFTopologyNode_RemoteGetOutputPrefType_Proxy proto __cdecl :ptr, :dword, :ptr, :ptr
IMFTopologyNode_RemoteGetOutputPrefType_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFTopologyNode_RemoteGetInputPrefType_Proxy proto __cdecl :ptr, :dword, :ptr, :ptr
IMFTopologyNode_RemoteGetInputPrefType_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
endif
.enum MF_TOPONODE_FLUSH_MODE {
MF_TOPONODE_FLUSH_ALWAYS = 0,
MF_TOPONODE_FLUSH_SEEK = ( MF_TOPONODE_FLUSH_ALWAYS + 1 ) ,
MF_TOPONODE_FLUSH_NEVER = ( MF_TOPONODE_FLUSH_SEEK + 1 )
}
DEFINE_GUID( MF_TOPONODE_FLUSH, 0x494bbce8, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
.enum MF_TOPONODE_DRAIN_MODE {
MF_TOPONODE_DRAIN_DEFAULT = 0,
MF_TOPONODE_DRAIN_ALWAYS = ( MF_TOPONODE_DRAIN_DEFAULT + 1 ) ,
MF_TOPONODE_DRAIN_NEVER = ( MF_TOPONODE_DRAIN_ALWAYS + 1 )
}
DEFINE_GUID( MF_TOPONODE_DRAIN, 0x494bbce9, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_D3DAWARE, 0x494bbced, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPOLOGY_RESOLUTION_STATUS, 0x494bbcde, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_ERRORCODE, 0x494bbcee, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_CONNECT_METHOD, 0x494bbcf1, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_LOCKED, 0x494bbcf7, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_WORKQUEUE_ID, 0x494bbcf8, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_WORKQUEUE_MMCSS_CLASS, 0x494bbcf9, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_DECRYPTOR, 0x494bbcfa, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_DISCARDABLE, 0x494bbcfb, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_ERROR_MAJORTYPE, 0x494bbcfd, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_ERROR_SUBTYPE, 0x494bbcfe, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_WORKQUEUE_MMCSS_TASKID, 0x494bbcff, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_WORKQUEUE_MMCSS_PRIORITY, 0x5001f840, 0x2816, 0x48f4, 0x93, 0x64, 0xad, 0x1e, 0xf6, 0x61, 0xa1, 0x23);
DEFINE_GUID( MF_TOPONODE_WORKQUEUE_ITEM_PRIORITY, 0xa1ff99be, 0x5e97, 0x4a53, 0xb4, 0x94, 0x56, 0x8c, 0x64, 0x2c, 0x0f, 0xf3);
DEFINE_GUID( MF_TOPONODE_MARKIN_HERE, 0x494bbd00, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_MARKOUT_HERE, 0x494bbd01, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_DECODER, 0x494bbd02, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
DEFINE_GUID( MF_TOPONODE_MEDIASTART, 0x835c58ea, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
DEFINE_GUID( MF_TOPONODE_MEDIASTOP, 0x835c58eb, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
DEFINE_GUID( MF_TOPONODE_SOURCE, 0x835c58ec, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
DEFINE_GUID( MF_TOPONODE_PRESENTATION_DESCRIPTOR, 0x835c58ed, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
DEFINE_GUID( MF_TOPONODE_STREAM_DESCRIPTOR, 0x835c58ee, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
DEFINE_GUID( MF_TOPONODE_SEQUENCE_ELEMENTID, 0x835c58ef, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
DEFINE_GUID( MF_TOPONODE_TRANSFORM_OBJECTID, 0x88dcc0c9, 0x293e, 0x4e8b, 0x9a, 0xeb, 0xa, 0xd6, 0x4c, 0xc0, 0x16, 0xb0);
DEFINE_GUID( MF_TOPONODE_STREAMID, 0x14932f9b, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
DEFINE_GUID( MF_TOPONODE_NOSHUTDOWN_ON_REMOVE, 0x14932f9c, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
DEFINE_GUID( MF_TOPONODE_RATELESS, 0x14932f9d, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
DEFINE_GUID( MF_TOPONODE_DISABLE_PREROLL, 0x14932f9e, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
DEFINE_GUID( MF_TOPONODE_PRIMARYOUTPUT, 0x6304ef99, 0x16b2, 0x4ebe, 0x9d, 0x67, 0xe4, 0xc5, 0x39, 0xb3, 0xa2, 0x59);
MFCreateTopologyNode proto __cdecl \
NodeType: MF_TOPOLOGY_TYPE,
ppNode: ptr ptr
if (WINVER GE _WIN32_WINNT_WIN7)
MFGetTopoNodeCurrentType proto __cdecl \
pNode: ptr IMFTopologyNode,
dwStreamIndex: DWORD,
fOutput: BOOL,
ppType: ptr ptr IMFMediaType
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
ifndef __IMFGetService_INTERFACE_DEFINED__
define __IMFGetService_INTERFACE_DEFINED__
DEFINE_IIDX(IMFGetService, "fa993888-4383-415a-a930-dd472a8cf6f7")
.comdef IMFGetService : public IUnknown
GetService proc :REFGUID, :REFIID, :ptr
.ends
endif
MFGetService proto __cdecl \
punkObject: ptr IUnknown,
guidService: REFGUID,
riid: REFIID,
ppvObject: ptr ptr
MFTIME typedef LONGLONG
.enum MFCLOCK_CHARACTERISTICS_FLAGS {
MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ = 0x2,
MFCLOCK_CHARACTERISTICS_FLAG_ALWAYS_RUNNING = 0x4,
MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK = 0x8
}
.enum MFCLOCK_STATE {
MFCLOCK_STATE_INVALID = 0,
MFCLOCK_STATE_RUNNING = ( MFCLOCK_STATE_INVALID + 1 ) ,
MFCLOCK_STATE_STOPPED = ( MFCLOCK_STATE_RUNNING + 1 ) ,
MFCLOCK_STATE_PAUSED = ( MFCLOCK_STATE_STOPPED + 1 )
}
.enum MFCLOCK_RELATIONAL_FLAGS {
MFCLOCK_RELATIONAL_FLAG_JITTER_NEVER_AHEAD = 0x1
}
MFCLOCK_PROPERTIES STRUC
qwCorrelationRate int64_t ?
guidClockId GUID <>
dwClockFlags dd ?
qwClockFrequency int64_t ?
dwClockTolerance dd ?
dwClockJitter dd ?
MFCLOCK_PROPERTIES ENDS
MFCLOCK_FREQUENCY_HNS equ 10000000
MFCLOCK_TOLERANCE_UNKNOWN equ 50000
MFCLOCK_JITTER_ISR equ 1000
MFCLOCK_JITTER_DPC equ 4000
MFCLOCK_JITTER_PASSIVE equ 10000
ifndef __IMFClock_INTERFACE_DEFINED__
define __IMFClock_INTERFACE_DEFINED__
DEFINE_IIDX(IMFClock, "2eb1e945-18b8-4139-9b1a-d5d584818530")
.comdef IMFClock : public IUnknown
GetClockCharacteristics proc :ptr
GetCorrelatedTime proc :DWORD, :ptr, :ptr
GetContinuityKey proc :ptr
GetState proc :DWORD, :ptr
GetProperties proc :ptr
.ends
endif
MFGetSystemTime proto __cdecl
PRESENTATION_CURRENT_POSITION equ 0x7fffffffffffffff
ifndef __IMFPresentationClock_INTERFACE_DEFINED__
define __IMFPresentationClock_INTERFACE_DEFINED__
DEFINE_IIDX(IMFPresentationClock, "868CE85C-8EA9-4f55-AB82-B009A910A805")
.comdef IMFPresentationClock : public IMFClock
SetTimeSource proc :ptr
GetTimeSource proc :ptr
GetTime proc :ptr
AddClockStateSink proc :ptr
RemoveClockStateSink proc :ptr
Start proc :LONGLONG
Stop proc
_Pause proc
.ends
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
MFCreatePresentationClock proto __cdecl \
ppPresentationClock: ptr ptr IMFPresentationClock
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
ifndef __IMFPresentationTimeSource_INTERFACE_DEFINED__
define __IMFPresentationTimeSource_INTERFACE_DEFINED__
DEFINE_IIDX(IMFPresentationTimeSource, "7FF12CCE-F76F-41c2-863B-1666C8E5E139")
.comdef IMFPresentationTimeSource : public IMFClock
GetUnderlyingClock proc :ptr
.ends
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
MFCreateSystemTimeSource proto __cdecl \
ppSystemTimeSource: ptr ptr IMFPresentationTimeSource
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
ifndef __IMFClockStateSink_INTERFACE_DEFINED__
define __IMFClockStateSink_INTERFACE_DEFINED__
DEFINE_IIDX(IMFClockStateSink, "F6696E82-74F7-4f3d-A178-8A5E09C3659F")
.comdef IMFClockStateSink : public IUnknown
OnClockStart proc :MFTIME, :LONGLONG
OnClockStop proc :MFTIME
OnClockPause proc :MFTIME
OnClockRestart proc :MFTIME
OnClockSetRate proc :MFTIME, :real4
.ends
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
DEFINE_GUID( MF_PD_PMPHOST_CONTEXT, 0x6c990d31, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_APP_CONTEXT, 0x6c990d32, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
DEFINE_GUID( MF_PD_DURATION, 0x6c990d33, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_TOTAL_FILE_SIZE, 0x6c990d34, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_AUDIO_ENCODING_BITRATE, 0x6c990d35, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_VIDEO_ENCODING_BITRATE, 0x6c990d36, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_MIME_TYPE, 0x6c990d37, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID(MF_PD_LAST_MODIFIED_TIME, 0x6c990d38, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
if (WINVER GE _WIN32_WINNT_WIN7)
DEFINE_GUID(MF_PD_PLAYBACK_ELEMENT_ID, 0x6c990d39, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_PREFERRED_LANGUAGE, 0x6c990d3A, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID(MF_PD_PLAYBACK_BOUNDARY_TIME, 0x6c990d3b, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a );
DEFINE_GUID( MF_PD_AUDIO_ISVARIABLEBITRATE, 0x33026ee0, 0xe387, 0x4582, 0xae, 0x0a, 0x34, 0xa2, 0xad, 0x3b, 0xaa, 0x18 );
endif
ifndef __IMFPresentationDescriptor_INTERFACE_DEFINED__
define __IMFPresentationDescriptor_INTERFACE_DEFINED__
DEFINE_IIDX(IMFPresentationDescriptor, "03cb2711-24d7-4db6-a17f-f3a7a479a536")
.comdef IMFPresentationDescriptor : public IMFAttributes
GetStreamDescriptorCount proc :ptr
GetStreamDescriptorByIndex proc :DWORD, :ptr, :ptr
SelectStream proc :DWORD
DeselectStream proc :DWORD
Clone proc :ptr
.ends
endif
MFCreatePresentationDescriptor proto __cdecl \
cStreamDescriptors: DWORD,
apStreamDescriptors: ptr ptr IMFStreamDescriptor,
ppPresentationDescriptor: ptr ptr IMFPresentationDescriptor
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
MFRequireProtectedEnvironment proto __cdecl \
pPresentationDescriptor: ptr IMFPresentationDescriptor
MFSerializePresentationDescriptor proto __cdecl \
pPD: ptr,
pcbData: ptr,
ppbData: ptr ptr
MFDeserializePresentationDescriptor proto __cdecl \
cbData: DWORD,
pbData: ptr,
ppPD: ptr ptr
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
DEFINE_GUID(MF_SD_LANGUAGE, 0xaf2180, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x3, 0x59, 0x3b, 0xc1, 0x21);
DEFINE_GUID(MF_SD_PROTECTED, 0xaf2181, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x3, 0x59, 0x3b, 0xc1, 0x21);
DEFINE_GUID(MF_SD_STREAM_NAME, 0x4f1b099d, 0xd314, 0x41e5, 0xa7, 0x81, 0x7f, 0xef, 0xaa, 0x4c, 0x50, 0x1f);
DEFINE_GUID(MF_SD_MUTUALLY_EXCLUSIVE, 0x23ef79c, 0x388d, 0x487f, 0xac, 0x17, 0x69, 0x6c, 0xd6, 0xe3, 0xc6, 0xf5);
ifndef __IMFStreamDescriptor_INTERFACE_DEFINED__
define __IMFStreamDescriptor_INTERFACE_DEFINED__
DEFINE_IIDX(IMFStreamDescriptor, "56c03d9c-9dbb-45f5-ab4b-d80f47c05938")
.comdef IMFStreamDescriptor : public IMFAttributes
GetStreamIdentifier proc :ptr
GetMediaTypeHandler proc :ptr
.ends
endif
MFCreateStreamDescriptor proto __cdecl \
dwStreamIdentifier: DWORD,
cMediaTypes: DWORD,
apMediaTypes: ptr ptr IMFMediaType,
ppDescriptor: ptr ptr IMFStreamDescriptor
ifndef __IMFMediaTypeHandler_INTERFACE_DEFINED__
define __IMFMediaTypeHandler_INTERFACE_DEFINED__
DEFINE_IIDX(IMFMediaTypeHandler, "e93dcf6c-4b07-4e1e-8123-aa16ed6eadf5")
.comdef IMFMediaTypeHandler : public IUnknown
IsMediaTypeSupported proc :ptr, :ptr
GetMediaTypeCount proc :ptr
GetMediaTypeByIndex proc :DWORD, :ptr
SetCurrentMediaType proc :ptr
GetCurrentMediaType proc :ptr
GetMajorType proc :ptr
.ends
IMFMediaTypeHandler_RemoteIsMediaTypeSupported_Proxy proto __cdecl :ptr, :ptr, :dword, :ptr, :ptr
IMFMediaTypeHandler_RemoteIsMediaTypeSupported_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFMediaTypeHandler_RemoteGetMediaTypeByIndex_Proxy proto __cdecl :ptr, :dword, :ptr, :ptr
IMFMediaTypeHandler_RemoteGetMediaTypeByIndex_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFMediaTypeHandler_RemoteSetCurrentMediaType_Proxy proto __cdecl :ptr, :ptr, :dword
IMFMediaTypeHandler_RemoteSetCurrentMediaType_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
IMFMediaTypeHandler_RemoteGetCurrentMediaType_Proxy proto __cdecl :ptr, :ptr, :ptr
IMFMediaTypeHandler_RemoteGetCurrentMediaType_Stub proto __cdecl \
This: ptr IRpcStubBuffer,
_pRpcChannelBuffer: ptr IRpcChannelBuffer,
_pRpcMessage: PRPC_MESSAGE,
_pdwStubPhase: ptr DWORD
endif
endif
if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
MFCreateSimpleTypeHandler proto __cdecl \
ppHandler: ptr ptr
.enum MFTIMER_FLAGS {
MFTIMER_RELATIVE = 0x1
}
ifndef __IMFTimer_INTERFACE_DEFINED__
define __IMFTimer_INTERFACE_DEFINED__
DEFINE_IIDX(IMFTimer, "e56e4cbd-8f70-49d8-a0f8-edb3d6ab9bf2")
.comdef IMFTimer : public IUnknown
SetTimer proc :DWORD, :LONGLONG, :ptr, :ptr, :ptr
CancelTimer proc :ptr
.ends
endif
DEFINE_GUID( MF_ACTIVATE_CUSTOM_VIDEO_MIXER_CLSID, 0xba491360, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8 );
DEFINE_GUID( MF_ACTIVATE_CUSTOM_VIDEO_MIXER_ACTIVATE, 0xba491361, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8 );
DEFINE_GUID( MF_ACTIVATE_CUSTOM_VIDEO_MIXER_FLAGS, 0xba491362, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8 );
DEFINE_GUID( MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID, 0xba491364, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8 );
DEFINE_GUID( MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_ACTIVATE, 0xba491365, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8 );
DEFINE_GUID( MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_FLAGS, 0xba491366, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8 );
.enum _MIDL___MIDL_itf_mfidl_0000_0024_0001 {
MF_ACTIVATE_CUSTOM_MIXER_ALLOWFAIL = 0x1
}
.enum _MIDL___MIDL_itf_mfidl_0000_0024_0002 {
MF_ACTIVATE_CUSTOM_PRESENTER_ALLOWFAIL = 0x1
}