This repository was archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathMixedRemoteViewCompositor.idl
More file actions
1126 lines (975 loc) · 36.6 KB
/
Copy pathMixedRemoteViewCompositor.idl
File metadata and controls
1126 lines (975 loc) · 36.6 KB
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
import "inspectable.idl";
import "AsyncInfo.idl";
import "EventToken.idl";
import "Windows.Foundation.idl";
import "Windows.Foundation.Numerics.idl";
import "Windows.Media.idl";
import "Windows.Media.Capture.idl";
import "Windows.Media.Capture.Core.idl";
import "Windows.Networking.Sockets.idl";
import "Windows.Perception.Spatial.idl";
import "Windows.Storage.idl";
import "Windows.Storage.Streams.idl";
// Additional imports to ensure that all required headers are included
//cpp_quote("#if defined(__cplusplus)")
//cpp_quote("}")
//cpp_quote("#endif // defined(__cplusplus)")
cpp_quote("#include <Windows.Foundation.h>")
cpp_quote("#if !defined(__windows2Enetworking2Esockets_h__)")
cpp_quote("#include <Windows.Networking.Sockets.h>")
cpp_quote("#endif // !defined(__windows2Enetworking2Esockets_h__)")
//cpp_quote("#if defined(__cplusplus)")
//cpp_quote("extern \"C\" {")
//cpp_quote("#endif // defined(__cplusplus)")
namespace MixedRemoteViewCompositor
{
typedef UINT32 ModuleHandle;
cpp_quote("#ifndef MODULE_HANDLE")
cpp_quote("typedef UINT32 MODULE_HANDLE;")
cpp_quote("#define MODULE_HANDLE_INVALID (UINT)0x0bad")
cpp_quote("#define MODULE_HANDLE_START (UINT)0x0bae")
cpp_quote("#endif // MODULE_HANDLE")
cpp_quote("const ULONG c_cbReceiveBufferSize = 2 * 1024;")
cpp_quote("const ULONG c_cbMaxBundleSize = 1024 * 1024;")
cpp_quote("const UINT16 c_cbMaxBufferFailures = 7;")
cpp_quote("const UINT16 c_cbMaxBundleFailures = 3;")
cpp_quote("extern wchar_t const __declspec(selectany)c_szNetworkScheme[] = L\"mrvc\";")
cpp_quote("extern wchar_t const __declspec(selectany)c_szNetworkSchemeWithColon[] = L\"mrvc:\";")
}
cpp_quote("#ifdef __cplusplus")
cpp_quote("namespace MixedRemoteViewCompositor { namespace Network {")
cpp_quote("typedef ABI::Windows::Foundation::ITypedEventHandler<ABI::Windows::Networking::Sockets::StreamSocketListener*, ABI::Windows::Networking::Sockets::StreamSocketListenerConnectionReceivedEventArgs*> IConnectionReceivedEventHandler;")
cpp_quote("}}")
cpp_quote("#endif //__cplusplus")
// Forward Declare
namespace MixedRemoteViewCompositor
{
typedef enum PayloadType PayloadType;
typedef enum SampleFlags SampleFlags;
typedef struct MF_FLOAT2 MF_FLOAT2;
typedef struct MFCameraIntrinsic_PinholeCameraModel MFCameraIntrinsic_PinholeCameraModel;
typedef struct MFCameraIntrinsic_DistortionModel MFCameraIntrinsic_DistortionModel;
typedef struct MFPinholeCameraIntrinsic_IntrinsicModel MFPinholeCameraIntrinsic_IntrinsicModel;
typedef struct MFPinholeCameraIntrinsics MFPinholeCameraIntrinsics;
typedef struct PayloadHeader PayloadHeader;
typedef struct MediaTypeDescription MediaTypeDescription;
typedef struct MediaSampleHeader MediaSampleHeader;
typedef struct MediaSampleTransforms MediaSampleTransforms;
typedef struct MediaStreamTick MediaStreamTick;
}
// forward declares
namespace MixedRemoteViewCompositor { namespace Plugin {
typedef enum DeviceType DeviceType;
typedef enum PluginEventType PluginEventType;
delegate ClosedEventHandler;
interface IModule;
interface IModuleManager;
interface IModuleManagerStatics;
runtimeclass ModuleManager;
interface IPluginManager;
interface IPluginManagerStatics;
runtimeclass PluginManager;
interface IDirectXManager;
} }
namespace MixedRemoteViewCompositor{ namespace Network {
delegate DisconnectedEventHandler;
delegate BundleReceivedEventHandler;
delegate ConnectedEventHandler;
interface IDataBuffer;
interface IDataBufferStatics;
runtimeclass DataBuffer;
interface IDataBundle;
interface IDataBundleStatics;
runtimeclass DataBundle;
interface IBundleReceivedArgs;
interface IBundleReceivedArgsStatics;
runtimeclass BundleReceivedArgs;
interface IConnection;
interface IConnectionInternal;
interface IConnectionStatics;
runtimeclass Connection;
interface IConnectionLock;
runtimeclass ConnectionLock;
interface IConnectedEventArgs;
runtimeclass ConnectedEventArgs;
interface IConnector;
interface IConnectorStatics;
runtimeclass Connector;
interface IListener;
interface IListenerStatics;
runtimeclass Listener;
} }
namespace MixedRemoteViewCompositor { namespace Media {
typedef enum SourceStreamState SourceStreamState;
typedef enum SinkStreamState SinkStreamState;
typedef enum SinkStreamOperation SinkStreamOperation;
typedef Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformation*> IDeviceEnumerationOperation;
typedef Windows.Foundation.AsyncOperationCompletedHandler<Windows.Devices.Enumeration.DeviceInformation*> IDeviceEnumerationCompletedHandler;
delegate FormatChangedEventHandler;
interface IFormatChangedEventArgs;
runtimeclass FormatChangedEventArgs;
delegate SampleUpdatedEventHandler;
interface ISampleUpdatedEventArgs;
runtimeclass SampleUpdatedEventArgs;
interface IMrvcSchemeHandler;
runtimeclass MrvcSchemeHandler;
interface INetworkMediaSourceStream;
interface INetworkMediaSource;
interface INetworkMediaSourceStatics;
runtimeclass NetworkMediaSource;
interface IPlaybackEngine;
interface IPlaybackEngineStatics;
runtimeclass PlaybackEngine;
interface INetworkMediaSink;
interface INetworkMediaSinkInternal;
runtimeclass NetworkMediaSink;
typedef enum AudioMixerMode AudioMixerMode;
interface IMrcAudioEffectDefinition;
runtimeclass MrcAudioEffectDefinition;
interface IMrcVideoEffectDefinition;
runtimeclass MrcVideoEffectDefinition;
interface ICaptureEngine;
interface ICaptureEngineStatics;
runtimeclass CaptureEngine;
} }
// interface defines
namespace MixedRemoteViewCompositor {
// enums
[version(1.0)]
enum PayloadType
{
Unknown,
State_Scene,
State_Input,
State_CaptureReady,
State_CaptureStarted,
State_CaptureStopped,
RequestMediaDescription,
RequestMediaStart,
RequestMediaStop,
RequestMediaCaptureStart,
RequestMediaCaptureRecord,
RequestMediaCaptureStop,
RequestMediaEncodeStart,
RequestMediaEncodeStop,
SendMediaDescription,
SendMediaSample,
SendMediaStreamTick,
SendFormatChange,
ENDOFLIST
};
[version(1.0)]
enum SampleFlags
{
SampleFlag_BottomFieldFirst = 0,
SampleFlag_CleanPoint = 1,
SampleFlag_DerivedFromTopField = 2,
SampleFlag_Discontinuity = 3,
SampleFlag_Interlaced = 4,
SampleFlag_RepeatFirstField = 5,
SampleFlag_SingleField = 6
};
// structs
[version(1.0)]
struct PayloadHeader
{
PayloadType ePayloadType;
DWORD cbPayloadSize;
};
[version(1.0)]
struct MediaDescription
{
DWORD StreamCount;
DWORD StreamTypeHeaderSize;
};
[version(1.0)]
struct MediaTypeDescription
{
GUID guiMajorType;
GUID guiSubType;
DWORD dwStreamId;
UINT32 AttributesBlobSize;
};
[version(1.0)]
struct MF_FLOAT2
{
FLOAT x;
FLOAT y;
};
[version(1.0)]
struct MFCameraIntrinsic_PinholeCameraModel
{
MF_FLOAT2 FocalLength; // In Image space
MF_FLOAT2 PrincipalPoint; // In Image space
};
[version(1.0)]
struct MFCameraIntrinsic_DistortionModel
{
FLOAT Radial_k1;
FLOAT Radial_k2;
FLOAT Radial_k3;
FLOAT Tangential_p1;
FLOAT Tangential_p2;
};
[version(1.0)]
struct MFPinholeCameraIntrinsic_IntrinsicModel
{
UINT32 Width;
UINT32 Height;
MFCameraIntrinsic_PinholeCameraModel CameraModel;
MFCameraIntrinsic_DistortionModel DistortionModel;
};
[version(1.0)]
struct MFPinholeCameraIntrinsics
{
UINT32 count;
MFPinholeCameraIntrinsic_IntrinsicModel IntrinsicModels;
};
[version(1.0)]
struct MediaSampleHeader
{
DWORD dwStreamId;
LONGLONG hnsTimestamp;
LONGLONG hnsDuration;
DWORD dwFlags;
DWORD dwFlagMasks;
DWORD cbCameraDataSize;
Windows.Foundation.Numerics.Matrix4x4 worldToCameraMatrix;
Windows.Foundation.Numerics.Matrix4x4 cameraProjectionTransform;
Windows.Foundation.Numerics.Matrix4x4 cameraViewTransform;
};
[version(1.0)]
struct MediaSampleTransforms
{
Windows.Foundation.Numerics.Matrix4x4 worldToCameraMatrix;
Windows.Foundation.Numerics.Matrix4x4 cameraProjectionTransform;
Windows.Foundation.Numerics.Matrix4x4 cameraViewTransform;
MFPinholeCameraIntrinsics cameraIntrinsics;
};
[version(1.0)]
struct MediaStreamTick
{
DWORD dwStreamId;
LONGLONG hnsTimestamp;
UINT32 cbAttributesSize;
};
}
namespace MixedRemoteViewCompositor { namespace Plugin {
[version(1.0)]
enum DeviceType
{
Null = 0,
DX11 = 1,
Warp = 2
};
[version(1.0)]
enum PluginEventType
{
Update = 1,
Render = 2,
Flush = 3
};
// delegates
[uuid(742c3239-1cf3-40bb-98c8-73270e0e337f)]
[version(1.0)]
delegate HRESULT ClosedEventHandler(
[in] IInspectable* sender);
// IModule
[uuid(2edeb3fb-8008-4a13-b8d3-7081fd11443f)]
[version(1.0)]
interface IModule : IInspectable requires
Windows.Foundation.IClosable
{
[propget] HRESULT IsInitialized([out, retval] boolean* isInitialized);
HRESULT Uninitialize();
};
// ModuleManager
[exclusiveto(ModuleManager)]
[uuid(ee26ebc8-2eba-4476-be2a-4bf9389590bc)]
[version(1.0)]
interface IModuleManager : IInspectable
{
HRESULT AddModule(
[in] MixedRemoteViewCompositor.Plugin.IModule* pluginModule,
[out, retval] MixedRemoteViewCompositor.ModuleHandle* moduleHandle);
HRESULT GetModule(
[in] MixedRemoteViewCompositor.ModuleHandle moduleHandle,
[out, retval] MixedRemoteViewCompositor.Plugin.IModule** pluginModule);
HRESULT ReleaseModule(
[in] MixedRemoteViewCompositor.ModuleHandle moduleHandle);
HRESULT Uninitialize();
};
[exclusiveto(ModuleManager)]
[uuid(5feb052c-d722-4f2a-8bf5-7d03ba808794)]
[version(1.0)]
interface IModuleManagerStatics : IInspectable
{
[propget] HRESULT InvalidModuleHandle(
[out, retval] MixedRemoteViewCompositor.ModuleHandle* moduleHandle);
};
[activatable(1.0)]
[static(MixedRemoteViewCompositor.Plugin.IModuleManagerStatics, 1.0)]
[version(1.0)]
runtimeclass ModuleManager
{
[default] interface MixedRemoteViewCompositor.Plugin.IModuleManager;
};
// PluginManager
[exclusiveto(PluginManager)]
[uuid(c9630182-dd7a-4fe8-b797-14aa4daf297a)]
[version(1.0)]
interface IPluginManager : IInspectable
{
[propget] HRESULT ModuleManager(
[out][retval] MixedRemoteViewCompositor.Plugin.ModuleManager** moduleManager);
[propget] HRESULT DirectXManager(
[out][retval] MixedRemoteViewCompositor.Plugin.IDirectXManager** dxManager);
};
[exclusiveto(PluginManager)]
[uuid(172d17ad-464c-4da4-ad26-34d2a70d4f07)]
[version(1.0)]
interface IPluginManagerStatics : IInspectable
{
[propget] HRESULT Instance([out][retval] MixedRemoteViewCompositor.Plugin.PluginManager** pluginManager);
};
[static(MixedRemoteViewCompositor.Plugin.IPluginManagerStatics, 1.0)]
[version(1.0)]
runtimeclass PluginManager
{
[default] interface MixedRemoteViewCompositor.Plugin.IPluginManager;
};
// IDirectXManager
[uuid(712c3f26-ea19-44a2-b947-0313c7d41a2b)]
[version(1.0)]
interface IDirectXManager : IInspectable
{
};
} }
namespace MixedRemoteViewCompositor{ namespace Network {
declare
{
interface Windows.Foundation.Collections.IVector<MixedRemoteViewCompositor.Network.DataBuffer*>;
interface Windows.Foundation.Collections.IIterable<MixedRemoteViewCompositor.Network.DataBuffer*>;
interface Windows.Foundation.IAsyncOperation<MixedRemoteViewCompositor.Network.Connection*>;
}
// delegates
[uuid(7f6533cb-58a5-4634-a0ca-1af12e82f508)]
[version(1.0)]
delegate HRESULT DisconnectedEventHandler(
[in] MixedRemoteViewCompositor.Network.Connection* sender);
[uuid(351aade9-5b42-4ae8-9d72-dd5b765d3420)]
[version(1.0)]
delegate HRESULT BundleReceivedEventHandler(
[in] MixedRemoteViewCompositor.Network.Connection* sender,
[in] MixedRemoteViewCompositor.Network.BundleReceivedArgs* args);
[uuid(6f17b4ae-f506-4d6e-a666-893638581b19)]
[version(1.0)]
delegate HRESULT ConnectedEventHandler(
[in] MixedRemoteViewCompositor.Network.Connection* connection);
// DataPacket
[uuid(3fcabce1-d85d-4990-93cc-64b26b8b9505)]
[version(1.0)]
interface IDataPacket : IInspectable
requires Windows.Storage.Streams.IBuffer
{
};
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass DataPacket
{
[default] interface MixedRemoteViewCompositor.Network.IDataPacket;
};
// DataBuffer
[uuid(2fffa1dc-aa9b-4f0f-a67c-414da47613b8)]
[version(1.0)]
interface IDataBuffer : IInspectable
{
[propget] HRESULT Offset(
[out][retval] DWORD* offset);
[propput] HRESULT Offset(
[in] DWORD offset);
[propget] HRESULT CurrentLength(
[out][retval] DWORD* currentLength);
[propput] HRESULT CurrentLength(
[in] DWORD currentLength);
HRESULT TrimLeft(
[in] ULONG cbSize);
HRESULT TrimRight(
[in] ULONG cbSize,
[out] MixedRemoteViewCompositor.Network.DataBuffer** dataBuffer);
HRESULT Reset();
};
[uuid(eb453df3-e098-4fcb-b76c-ef3838583033)]
[version(1.0)]
interface IDataBufferStatics : IInspectable
{
[overload("Create")] HRESULT Create(
[in] ULONG size);
};
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass DataBuffer
{
[default] interface MixedRemoteViewCompositor.Network.IDataBuffer;
};
// DataBufferLock
[uuid(4375ee9d-0302-416b-af1a-2b8ff632a06f)]
[version(1.0)]
interface IDataBufferLock : IInspectable
{
};
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass DataBufferLock
{
[default] interface MixedRemoteViewCompositor.Network.IDataBufferLock;
};
// DataBundle
[uuid(049cd02e-12ec-45dc-8f58-931c342087ed)]
[version(1.0)]
interface IDataBundle : IInspectable
{
[propget] HRESULT BufferCount(
[out][retval] UINT32* count);
[propget] HRESULT TotalSize(
[out][retval] ULONG* size);
HRESULT AddBuffer(
[in] MixedRemoteViewCompositor.Network.DataBuffer* dataBuffer);
HRESULT InsertBuffer(
[in] UINT32 index,
[in] MixedRemoteViewCompositor.Network.DataBuffer* dataBuffer);
HRESULT RemoveBuffer(
[in] MixedRemoteViewCompositor.Network.DataBuffer* dataBuffer);
HRESULT RemoveBufferByIndex(
[in] UINT32 index,
[out][retval] MixedRemoteViewCompositor.Network.DataBuffer** dataBuffer);
HRESULT Reset(void);
};
[uuid(bac3c09b-76ca-44d9-ad40-080f3101884a)]
[version(1.0)]
interface IDataBundleStatics :IInspectable
{
[overload("Create")] HRESULT Create(
[in] MixedRemoteViewCompositor.Network.DataBuffer* dataBuffer);
};
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass DataBundle
{
[default] interface MixedRemoteViewCompositor.Network.IDataBundle;
};
// BundleReceivedArgs
[uuid(c0d9ad8e-f586-4314-af4d-69b80513b470)]
[version(1.0)]
interface IBundleReceivedArgs : IInspectable
{
[propget] HRESULT PayloadType(
[out][retval] MixedRemoteViewCompositor.PayloadType* payloadType);
[propget] HRESULT Connection(
[out][retval] MixedRemoteViewCompositor.Network.Connection** connection);
[propget] HRESULT DataBundle(
[out][retval] MixedRemoteViewCompositor.Network.DataBundle** dataBundle);
[propget] HRESULT RemoteUri(
[out][retval] Windows.Foundation.Uri** uri);
};
[exclusiveto(MixedRemoteViewCompositor.Network.BundleReceivedArgs)]
[uuid(3fa67b47-6b91-42ad-912c-ddd97ce02d50)]
[version(1.0)]
interface IBundleReceivedArgsStatics : IInspectable
{
[overload("Create")] HRESULT Create(
[in] MixedRemoteViewCompositor.PayloadType type,
[in] MixedRemoteViewCompositor.Network.Connection* connection,
[in] MixedRemoteViewCompositor.Network.DataBundle* dataBundle,
[in] Windows.Foundation.Uri* uri,
[out][retval] MixedRemoteViewCompositor.Network.BundleReceivedArgs** args);
};
[activatable(MixedRemoteViewCompositor.Network.IBundleReceivedArgsStatics, 1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass BundleReceivedArgs
{
[default] interface MixedRemoteViewCompositor.Network.IBundleReceivedArgs;
};
// Connection
[exclusiveto(MixedRemoteViewCompositor.Network.Connection)]
[uuid(027d0a6d-3ffb-480e-9e68-255cba264d40)]
[version(1.0)]
interface IConnection : IInspectable requires
MixedRemoteViewCompositor.Network.IConnectionInternal,
MixedRemoteViewCompositor.Plugin.IModule,
Windows.Foundation.IClosable
{
[propget] HRESULT IsConnected(
[out][retval] boolean* connected);
[eventadd] HRESULT Disconnected(
[in] MixedRemoteViewCompositor.Network.DisconnectedEventHandler* eventHandler,
[out, retval] EventRegistrationToken* token);
[eventremove] HRESULT Disconnected(
[in] EventRegistrationToken token);
[eventadd] HRESULT Received(
[in] MixedRemoteViewCompositor.Network.BundleReceivedEventHandler* eventHandler,
[out, retval] EventRegistrationToken* token);
[eventremove] HRESULT Received(
[in] EventRegistrationToken token);
HRESULT SendPayloadType(
[in] MixedRemoteViewCompositor.PayloadType type);
HRESULT SendBundle(
[in] MixedRemoteViewCompositor.Network.DataBundle* dataBundle);
HRESULT SendBundleAsync(
[in] MixedRemoteViewCompositor.Network.DataBundle* dataBundle,
[out, retval] Windows.Foundation.IAsyncAction** asyncAction);
};
[exclusiveto(MixedRemoteViewCompositor.Network.Connection)]
[uuid(7e41360e-7307-4ee3-8f5d-b644e7e5c55a)]
[version(1.0)]
interface IConnectionInternal : IInspectable
{
HRESULT CheckClosed();
HRESULT WaitForHeader();
HRESULT WaitForPayload();
HRESULT ResetBundle();
};
[exclusiveto(MixedRemoteViewCompositor.Network.Connection)]
[uuid(b3c719f9-b1c6-425a-9b21-8a36eaac7be4)]
[version(1.0)]
interface IConnectionStatics : IInspectable
{
HRESULT Create(
[in] Windows.Networking.Sockets.StreamSocket* streamSocket,
[out][retval] MixedRemoteViewCompositor.Network.Connection** connection);
};
[activatable(MixedRemoteViewCompositor.Network.IConnectionStatics, 1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass Connection
{
[default] interface MixedRemoteViewCompositor.Network.IConnection;
interface MixedRemoteViewCompositor.Network.IConnectionInternal;
interface MixedRemoteViewCompositor.Plugin.IModule;
interface Windows.Foundation.IClosable;
};
// Listener
[exclusiveto(MixedRemoteViewCompositor.Network.Listener)]
[uuid(887397c7-ce0f-4ced-86f1-54f4ee079d0b)]
[version(1.0)]
interface IListener : IInspectable requires
Windows.Foundation.IClosable,
MixedRemoteViewCompositor.Plugin.IModule
{
[eventadd] HRESULT Closed(
[in] MixedRemoteViewCompositor.Plugin.ClosedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT Closed([in] EventRegistrationToken token);
HRESULT ListenAsync(
[out][retval] Windows.Foundation.IAsyncOperation<Connection*>** operation);
};
[uuid(0cfcc430-07f5-49c1-b86a-123da17030b5)]
[version(1.0)]
interface IListenerStatics : IInspectable
{
[overload("Create")] HRESULT Create(
[in] UINT16 port,
[out][retval] MixedRemoteViewCompositor.Network.Listener** listener);
};
[activatable(MixedRemoteViewCompositor.Network.IListenerStatics, 1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass Listener
{
[default] interface MixedRemoteViewCompositor.Network.IListener;
interface MixedRemoteViewCompositor.Plugin.IModule;
interface Windows.Foundation.IClosable;
};
// Connector
[exclusiveto(MixedRemoteViewCompositor.Network.Connector)]
[uuid(4d3288f4-b509-4ffe-848d-200218029096)]
[version(1.0)]
interface IConnector : IInspectable requires
Windows.Foundation.IClosable,
MixedRemoteViewCompositor.Plugin.IModule
{
[eventadd] HRESULT Closed(
[in] MixedRemoteViewCompositor.Plugin.ClosedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT Closed(
[in] EventRegistrationToken token);
HRESULT ConnectAsync(
[out][retval] Windows.Foundation.IAsyncOperation<Connection*>** operation);
};
[exclusiveto(MixedRemoteViewCompositor.Network.Connector)]
[uuid(5af2e9f2-5052-46f5-a118-85d281b11314)]
[version(1.0)]
interface IConnectorStatics : IInspectable
{
HRESULT Create(
[in] HSTRING hostAddress,
[in] UINT16 port,
[out][retval] MixedRemoteViewCompositor.Network.Connector** connector);
};
[activatable(MixedRemoteViewCompositor.Network.IConnectorStatics, 1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass Connector
{
[default] interface MixedRemoteViewCompositor.Network.IConnector;
interface MixedRemoteViewCompositor.Plugin.IModule;
interface Windows.Foundation.IClosable;
};
} }
namespace MixedRemoteViewCompositor{ namespace Media {
[version(1.0)]
enum SourceStreamState
{
Invalid,
Opening,
Starting,
Started,
Stopped,
Shutdown,
Count
};
[version(1.0)]
enum SinkStreamState
{
NotSet = 0,
Ready,
Started,
Stopped,
Paused,
Count
};
[version(1.0)]
enum SinkStreamOperation
{
SetMediaType = 0,
Start,
Restart,
Pause,
Stop,
ProcessSample,
PlaceMarker,
Count // Number of operations
};
[version(1.0)]
enum AudioMixerMode
{
Mic = 0,
Loopback = 1,
MicAndLoopback = 2
};
// FormatChangedEvent
[uuid(7b2c1549-c998-4d37-a379-e0b51251a52c)]
[version(1.0)]
delegate HRESULT FormatChangedEventHandler(
[in] MixedRemoteViewCompositor.Media.FormatChangedEventArgs* args);
[exclusiveto(MixedRemoteViewCompositor.Media.FormatChangedEventArgs)]
[uuid(aa65736c-5842-4510-9490-fa43dc9f37d4)]
[version(1.0)]
interface IFormatChangedEventArgs : IInspectable
{
[propget] HRESULT Width(
[out][retval] UINT32* width);
[propget] HRESULT Height(
[out][retval] UINT32* height);
};
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass FormatChangedEventArgs
{
[default] interface MixedRemoteViewCompositor.Media.IFormatChangedEventArgs;
};
// SampleUpdatedEvent
[uuid(1003b11c-debe-48a6-b1ba-0fd0ea5d06e4)]
[version(1.0)]
delegate HRESULT SampleUpdatedEventHandler(
[in] MixedRemoteViewCompositor.Media.SampleUpdatedEventArgs* args);
[exclusiveto(MixedRemoteViewCompositor.Media.SampleUpdatedEventArgs)]
[uuid(c8968fde-7644-497c-b03c-1c11ca626dd3)]
[version(1.0)]
interface ISampleUpdatedEventArgs : IInspectable
{
[propget] HRESULT Width(
[out][retval] UINT32* width);
[propget] HRESULT Height(
[out][retval] UINT32* height);
[propget] HRESULT Timestamp(
[out][retval] UINT64* timestamp);
[propget] HRESULT Transforms(
[out][retval] MixedRemoteViewCompositor.MediaSampleTransforms* transform);
[propget] HRESULT VideoTexture(
[out][retval] IInspectable** ppvTexture);
};
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass SampleUpdatedEventArgs
{
[default] interface MixedRemoteViewCompositor.Media.ISampleUpdatedEventArgs;
};
// MrvcSchemeHandler
[exclusiveto(MixedRemoteViewCompositor.Media.MrvcSchemeHandler)]
[uuid(5a4a9427-1f66-40c6-ad6a-b3df73370112)]
[version(1.0)]
interface IMrvcSchemeHandler : IInspectable requires
Windows.Media.IMediaExtension
{
[propget] HRESULT Connection(
[out][retval] MixedRemoteViewCompositor.Network.Connection** connection);
[propput] HRESULT Connection(
[in] MixedRemoteViewCompositor.Network.Connection* connection);
};
[activatable(1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass MrvcSchemeHandler
{
[default] interface Windows.Media.IMediaExtension;
interface IMrvcSchemeHandler;
};
// INetworkMediaSourceStream
[uuid(43c188c7-387b-45a9-ae18-547a4a0ef48e)]
[version(1.0)]
interface INetworkMediaSourceStream : IInspectable
{
};
// NetworkMediaSource
[exclusiveto(MixedRemoteViewCompositor.Media.NetworkMediaSource)]
[uuid(e63951ce-a61e-494b-8010-33847c6da00b)]
[version(1.0)]
interface INetworkMediaSource : IInspectable requires
Windows.Media.IMediaExtension
{
};
[exclusiveto(MixedRemoteViewCompositor.Media.NetworkMediaSource)]
[uuid(d4238dfb-9849-485b-abca-226d7530aaed)]
[version(1.0)]
interface INetworkMediaSourceStatics : IInspectable
{
HRESULT Create(
[in] MixedRemoteViewCompositor.Network.Connection* connection,
[out][retval] MixedRemoteViewCompositor.Media.NetworkMediaSource** mediaSource);
};
[activatable(INetworkMediaSourceStatics, 1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass NetworkMediaSource
{
[default] interface Windows.Media.Core.IMediaSource;
interface Windows.Media.IMediaExtension;
interface INetworkMediaSource;
};
// PlaybackEngine
[exclusiveto(MixedRemoteViewCompositor.Media.PlaybackEngine)]
[uuid(b55bf4f3-2883-4c09-a231-7e75bd59bf9e)]
[version(1.0)]
interface IPlaybackEngine : IInspectable requires
MixedRemoteViewCompositor.Plugin.IModule,
Windows.Foundation.IClosable
{
[eventadd] HRESULT Closed(
[in] MixedRemoteViewCompositor.Plugin.ClosedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT Closed(
[in] EventRegistrationToken token);
[eventadd] HRESULT FormatChanged(
[in] MixedRemoteViewCompositor.Media.FormatChangedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT FormatChanged(
[in] EventRegistrationToken token);
[eventadd] HRESULT SampleUpdated(
[in] MixedRemoteViewCompositor.Media.SampleUpdatedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT SampleUpdated(
[in] EventRegistrationToken token);
HRESULT InitializeAsync(
[out] Windows.Foundation.IAsyncAction** asyncAction);
HRESULT StartPlayback();
HRESULT StopPlayback();
};
[exclusiveto(MixedRemoteViewCompositor.Media.PlaybackEngine)]
[uuid(22708031-4143-44e9-98aa-ca3d9b836f6a)]
[version(1.0)]
interface IPlaybackEngineStatics : IInspectable
{
HRESULT Create(
[in] MixedRemoteViewCompositor.Network.Connection* connection,
[out][retval] MixedRemoteViewCompositor.Media.PlaybackEngine** playbackEngine);
};
[marshaling_behavior(agile)]
[static(MixedRemoteViewCompositor.Media.IPlaybackEngineStatics, 1.0)]
[threading(both)]
[version(1.0)]
runtimeclass PlaybackEngine
{
interface Windows.Media.IMediaExtension;
[default] interface IPlaybackEngine;
};
// NetworkMediaSink
[exclusiveto(MixedRemoteViewCompositor.Media.NetworkMediaSink)]
[uuid(c9fff32c-31f3-452f-b126-3c5c6da57206)]
[version(1.0)]
interface INetworkMediaSink : IInspectable requires
Windows.Media.IMediaExtension
{
[propget] HRESULT SpatialCoordinateSystem(
[out][retval] Windows.Perception.Spatial.SpatialCoordinateSystem** coordinateSystem);
[propput] HRESULT SpatialCoordinateSystem(
[in] Windows.Perception.Spatial.SpatialCoordinateSystem* coordinateSystem);
[eventadd] HRESULT Closed(
[in] MixedRemoteViewCompositor.Plugin.ClosedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT Closed(
[in] EventRegistrationToken token);
[eventadd] HRESULT FormatChanged(
[in] MixedRemoteViewCompositor.Media.FormatChangedEventHandler* eventHandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT FormatChanged(
[in] EventRegistrationToken token);
[eventadd] HRESULT SampleUpdated(
[in] MixedRemoteViewCompositor.Media.SampleUpdatedEventHandler* eventhandler,
[out][retval] EventRegistrationToken* token);
[eventremove] HRESULT SampleUpdated(
[in] EventRegistrationToken token);
HRESULT OnEndOfStream(
[in] DWORD streamId);
HRESULT HandleError(
[in] HRESULT hr);
HRESULT CheckShutdown(void);
HRESULT SendDescription(void);
HRESULT SetMediaStreamProperties(
[in] Windows.Media.Capture.MediaStreamType MediaStreamType,
[in] Windows.Media.MediaProperties.IMediaEncodingProperties *mediaEncodingProperties);
};
[activatable(1.0)]
[marshaling_behavior(agile)]
[threading(both)]
[version(1.0)]
runtimeclass NetworkMediaSink