source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/evr.idl

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

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

File size: 10.7 KB
RevLine 
[1166]1cpp_quote("/**")
2cpp_quote(" * This file is part of the mingw-w64 runtime package.")
3cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
4cpp_quote(" */")
5cpp_quote("")
6cpp_quote("#include <winapifamily.h>")
7cpp_quote("")
8cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
9
10import "unknwn.idl";
11import "propidl.idl";
12import "mfidl.idl";
13import "mftransform.idl";
14import "mediaobj.idl";
15import "strmif.idl";
16
17interface IMFTrackedSample;
18interface IMFVideoDisplayControl;
19interface IMFVideoPresenter;
20interface IMFVideoPositionMapper;
21interface IMFDesiredSample;
22interface IMFVideoMixerControl;
23interface IMFVideoRenderer;
24interface IMFVideoDeviceID;
25interface IEVRFilterConfig;
26
27cpp_quote("#if defined(__midl)")
28
29#ifndef MAKEFOURCC
30#define MAKEFOURCC(ch0, ch1, ch2, ch3) \
31 ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
32 ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
33#endif
34
35#ifndef D3DFORMAT
36cpp_quote("")
37typedef enum _D3DFORMAT {
38 D3DFMT_UNKNOWN = 0,
39 D3DFMT_R8G8B8 = 20,
40 D3DFMT_A8R8G8B8 = 21,
41 D3DFMT_X8R8G8B8 = 22,
42 D3DFMT_R5G6B5 = 23,
43 D3DFMT_X1R5G5B5 = 24,
44 D3DFMT_A1R5G5B5 = 25,
45 D3DFMT_A4R4G4B4 = 26,
46 D3DFMT_R3G3B2 = 27,
47 D3DFMT_A8 = 28,
48 D3DFMT_A8R3G3B2 = 29,
49 D3DFMT_X4R4G4B4 = 30,
50 D3DFMT_A2B10G10R10 = 31,
51 D3DFMT_G16R16 = 34,
52 D3DFMT_A8P8 = 40,
53 D3DFMT_P8 = 41,
54 D3DFMT_L8 = 50,
55 D3DFMT_A8L8 = 51,
56 D3DFMT_A4L4 = 52,
57 D3DFMT_V8U8 = 60,
58 D3DFMT_L6V5U5 = 61,
59 D3DFMT_X8L8V8U8 = 62,
60 D3DFMT_Q8W8V8U8 = 63,
61 D3DFMT_V16U16 = 64,
62 D3DFMT_W11V11U10 = 65,
63 D3DFMT_A2W10V10U10 = 67,
64 D3DFMT_D16_LOCKABLE = 70,
65 D3DFMT_D32 = 71,
66 D3DFMT_D15S1 = 73,
67 D3DFMT_D24S8 = 75,
68 D3DFMT_D16 = 80,
69 D3DFMT_D24X8 = 77,
70 D3DFMT_D24X4S4 = 79,
71 D3DFMT_VERTEXDATA = 100,
72 D3DFMT_INDEX16 = 101,
73 D3DFMT_INDEX32 = 102,
74 D3DFMT_FORCE_DWORD = 0x7fffffff
75} D3DFORMAT;
76#endif
77cpp_quote("#endif")
78
79cpp_quote("")
80typedef enum MFVideoAspectRatioMode {
81 MFVideoARMode_None = 0x00,
82 MFVideoARMode_PreservePicture = 0x01,
83 MFVideoARMode_PreservePixel = 0x02,
84 MFVideoARMode_NonLinearStretch = 0x04,
85 MFVideoARMode_Mask = 0x07
86} MFVideoAspectRatioMode;
87
88cpp_quote("")
89typedef enum MFVideoRenderPrefs {
90 MFVideoRenderPrefs_DoNotRenderBorder = 0x01,
91 MFVideoRenderPrefs_DoNotClipToDevice = 0x02,
92 MFVideoRenderPrefs_AllowOutputThrottling = 0x04,
93 MFVideoRenderPrefs_ForceOutputThrottling = 0x08,
94 MFVideoRenderPrefs_ForceBatching = 0x10,
95 MFVideoRenderPrefs_AllowBatching = 0x20,
96 MFVideoRenderPrefs_ForceScaling = 0x40,
97 MFVideoRenderPrefs_AllowScaling = 0x80,
98 MFVideoRenderPrefs_DoNotRepaintOnStop = 0x100,
99 MFVideoRenderPrefs_Mask = 0x1ff
100} MFVideoRenderPrefs;
101
102cpp_quote("")
103cpp_quote("#ifndef _MFVideoNormalizedRect_")
104cpp_quote("#define _MFVideoNormalizedRect_")
105typedef struct MFVideoNormalizedRect {
106 float left;
107 float top;
108 float right;
109 float bottom;
110} MFVideoNormalizedRect;
111cpp_quote("#endif")
112
113cpp_quote("")
114typedef enum MFVP_MESSAGE_TYPE {
115 MFVP_MESSAGE_FLUSH = 0x00,
116 MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x01,
117 MFVP_MESSAGE_PROCESSINPUTNOTIFY = 0x02,
118 MFVP_MESSAGE_BEGINSTREAMING = 0x03,
119 MFVP_MESSAGE_ENDSTREAMING = 0x04,
120 MFVP_MESSAGE_ENDOFSTREAM = 0x05,
121 MFVP_MESSAGE_STEP = 0x06,
122 MFVP_MESSAGE_CANCELSTEP = 0x07
123} MFVP_MESSAGE_TYPE;
124
125cpp_quote("")
126typedef enum _MFVideoMixPrefs {
127 MFVideoMixPrefs_ForceHalfInterlace = 0x01,
128 MFVideoMixPrefs_AllowDropToHalfInterlace = 0x02,
129 MFVideoMixPrefs_AllowDropToBob = 0x04,
130 MFVideoMixPrefs_ForceBob = 0x08,
131 MFVideoMixPrefs_EnableRotation = 0x10,
132 MFVideoMixPrefs_Mask = 0x1f
133} MFVideoMixPrefs;
134
135cpp_quote("")
136typedef enum _EVRFilterConfig_Prefs {
137 EVRFilterConfigPrefs_EnableQoS = 0x01,
138 EVRFilterConfigPrefs_Mask = 0x01
139} EVRFilterConfigPrefs;
140
141cpp_quote("")
142typedef enum _MF_SERVICE_LOOKUP_TYPE {
143 MF_SERVICE_LOOKUP_UPSTREAM,
144 MF_SERVICE_LOOKUP_UPSTREAM_DIRECT,
145 MF_SERVICE_LOOKUP_DOWNSTREAM,
146 MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT,
147 MF_SERVICE_LOOKUP_ALL,
148 MF_SERVICE_LOOKUP_GLOBAL
149} MF_SERVICE_LOOKUP_TYPE;
150
151cpp_quote("")
152cpp_quote("DEFINE_GUID(MR_VIDEO_RENDER_SERVICE, 0x1092a86c, 0xab1a, 0x459a, 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff);")
153cpp_quote("DEFINE_GUID(MR_VIDEO_MIXER_SERVICE, 0x73cd2fc, 0x6cf4, 0x40b7, 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8);")
154cpp_quote("DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE, 0xefef5175, 0x5c7d, 0x4ce2, 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54);")
155cpp_quote("DEFINE_GUID(MR_BUFFER_SERVICE, 0xa562248c, 0x9ac6, 0x4ffc, 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d);")
156cpp_quote("DEFINE_GUID(VIDEO_ZOOM_RECT, 0x7aaa1638, 0x1b7f, 0x4c93, 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0);")
157
158cpp_quote("")
159[object, uuid(1F6A9F17-E70B-4e24-8AE4-0B2C3BA7A4AE), helpstring("IMFVideoPositionMapper Interface"), local]
160interface IMFVideoPositionMapper : IUnknown {
161 HRESULT MapOutputCoordinateToInputStream ([in] float xOut, [in] float yOut, [in] DWORD dwOutputStreamIndex, [in] DWORD dwInputStreamIndex, [out] float* pxIn, [out] float* pyIn);
162};
163
164cpp_quote("")
165[object, uuid(A38D9567-5A9C-4f3c-B293-8EB415B279BA), helpstring("IMFVideoDeviceID Interface"), local]
166interface IMFVideoDeviceID : IUnknown {
167 HRESULT GetDeviceID ([out] IID* pDeviceID);
168};
169
170cpp_quote("")
171[object, uuid(a490b1e4-ab84-4d31-a1b2-181e03b1077a), helpstring("IMFVideoDisplayControl Interface")]
172interface IMFVideoDisplayControl : IUnknown {
173 HRESULT GetNativeVideoSize ([in, out, unique] SIZE* pszVideo, [in, out, unique] SIZE* pszARVideo);
174 HRESULT GetIdealVideoSize ([in, out, unique] SIZE* pszMin, [in, out, unique] SIZE* pszMax);
175 HRESULT SetVideoPosition ([in, unique] const MFVideoNormalizedRect* pnrcSource, [in, unique] const LPRECT prcDest);
176 HRESULT GetVideoPosition ([out] MFVideoNormalizedRect* pnrcSource, [out] LPRECT prcDest);
177 HRESULT SetAspectRatioMode ([in] DWORD dwAspectRatioMode);
178 HRESULT GetAspectRatioMode ([out] DWORD* pdwAspectRatioMode);
179 HRESULT SetVideoWindow ([in] HWND hwndVideo);
180 HRESULT GetVideoWindow ([out] HWND* phwndVideo);
181 HRESULT RepaintVideo ();
182 HRESULT GetCurrentImage ([in, out] BITMAPINFOHEADER* pBih,[out, size_is(, *pcbDib)] BYTE** pDib, [out] DWORD* pcbDib, [in, out, unique] LONGLONG* pTimeStamp);
183 HRESULT SetBorderColor ([in] COLORREF Clr);
184 HRESULT GetBorderColor ([out] COLORREF* pClr);
185 HRESULT SetRenderingPrefs ([in] DWORD dwRenderFlags);
186 HRESULT GetRenderingPrefs ([out] DWORD* pdwRenderFlags);
187 HRESULT SetFullscreen ([in] BOOL fFullscreen);
188 HRESULT GetFullscreen ([out] BOOL* pfFullscreen);
189};
190
191cpp_quote("")
192[object, uuid(29AFF080-182A-4a5d-AF3B-448F3A6346CB), helpstring("IMFVideoPresenter Interface"), local]
193interface IMFVideoPresenter : IMFClockStateSink {
194 HRESULT ProcessMessage (MFVP_MESSAGE_TYPE eMessage, ULONG_PTR ulParam);
195 HRESULT GetCurrentMediaType ([out] IMFVideoMediaType** ppMediaType);
196};
197
198cpp_quote("")
199[object, uuid(56C294D0-753E-4260-8D61-A3D8820B1D54), helpstring("IMFDesiredSample Interface"), local]
200interface IMFDesiredSample : IUnknown {
201 HRESULT GetDesiredSampleTimeAndDuration ([out] LONGLONG *phnsSampleTime, [out] LONGLONG *phnsSampleDuration);
202 void SetDesiredSampleTimeAndDuration ([in] LONGLONG hnsSampleTime, [in] LONGLONG hnsSampleDuration);
203 void Clear();
204};
205
206cpp_quote("")
207[object, uuid(245BF8E9-0755-40f7-88A5-AE0F18D55E17), helpstring("IMFTrackedSample Interface"), local]
208interface IMFTrackedSample : IUnknown {
209 HRESULT SetAllocator ([in] IMFAsyncCallback *pSampleAllocator, [in, unique] IUnknown *pUnkState);
210};
211
212cpp_quote("")
213[object, uuid(A5C6C53F-C202-4aa5-9695-175BA8C508A5), helpstring("IMFVideoMixerControl Interface")]
214interface IMFVideoMixerControl : IUnknown {
215 HRESULT SetStreamZOrder ([in] DWORD dwStreamID, [in] DWORD dwZ);
216 HRESULT GetStreamZOrder ([in] DWORD dwStreamID, [out] DWORD *pdwZ);
217 HRESULT SetStreamOutputRect ([in] DWORD dwStreamID, [in] const MFVideoNormalizedRect *pnrcOutput);
218 HRESULT GetStreamOutputRect ([in] DWORD dwStreamID, [out] MFVideoNormalizedRect *pnrcOutput);
219};
220
221cpp_quote("")
222[object, uuid(8459616d-966e-4930-b658-54fa7e5a16d3), helpstring("IMFVideoMixerControl2 Interface")]
223interface IMFVideoMixerControl2 : IMFVideoMixerControl {
224 HRESULT SetMixingPrefs ([in] DWORD dwMixFlags);
225 HRESULT GetMixingPrefs ([out] DWORD *pdwMixFlags);
226};
227
228cpp_quote("")
229[object, uuid(DFDFD197-A9CA-43d8-B341-6AF3503792CD), helpstring("IMFVideoRenderer Interface"), local]
230interface IMFVideoRenderer : IUnknown {
231 HRESULT InitializeRenderer ([in, unique] IMFTransform* pVideoMixer, [in, unique] IMFVideoPresenter* pVideoPresenter);
232};
233
234cpp_quote("")
235[object, uuid(83E91E85-82C1-4ea7-801D-85DC50B75086), helpstring("IEVRFilterConfig Interface"), local]
236interface IEVRFilterConfig : IUnknown {
237 HRESULT SetNumberOfStreams ([in] DWORD dwMaxStreams);
238 HRESULT GetNumberOfStreams ([out,] DWORD* pdwMaxStreams);
239};
240
241cpp_quote("")
242[object, uuid(aea36028-796d-454f-beee-b48071e24304), helpstring("IEVRFilterConfigEx Interface")]
243interface IEVRFilterConfigEx : IEVRFilterConfig {
244 HRESULT SetConfigPrefs ([in] DWORD dwConfigFlags);
245 HRESULT GetConfigPrefs ([out] DWORD* pdwConfigFlags);
246};
247
248cpp_quote("")
249[object, uuid(fa993889-4383-415a-a930-dd472a8cf6f7), helpstring("IMFTopologyServiceLookup Interface"), local]
250interface IMFTopologyServiceLookup : IUnknown {
251 HRESULT LookupService([in] MF_SERVICE_LOOKUP_TYPE Type, [in] DWORD dwIndex, [in] REFGUID guidService, [in] REFIID riid, [out, iid_is(riid)] LPVOID *ppvObjects, [in, out] DWORD *pnObjects);
252};
253
254cpp_quote("")
255[local, object, uuid(fa99388a-4383-415a-a930-dd472a8cf6f7)]
256interface IMFTopologyServiceLookupClient : IUnknown {
257 HRESULT InitServicePointers ([in] IMFTopologyServiceLookup * pLookup);
258 HRESULT ReleaseServicePointers ();
259};
260
261cpp_quote("")
262[object, uuid(83A4CE40-7710-494b-A893-A472049AF630), helpstring("IEVRTrustedVideoPlugin Interface"), local]
263interface IEVRTrustedVideoPlugin: IUnknown {
264 HRESULT IsInTrustedVideoMode ([out] BOOL *pYes);
265 HRESULT CanConstrict ([out] BOOL *pYes);
266 HRESULT SetConstriction (DWORD dwKPix);
267 HRESULT DisableImageExport (BOOL bDisable);
268};
269
270cpp_quote("")
271cpp_quote("HRESULT WINAPI MFCreateVideoPresenter(IUnknown *pOwner, REFIID riidDevice, REFIID riid, void **ppVideoPresenter);")
272cpp_quote("HRESULT WINAPI MFCreateVideoMixer(IUnknown *pOwner, REFIID riidDevice, REFIID riid, void **ppv);")
273cpp_quote("HRESULT WINAPI MFCreateVideoMixerAndPresenter(IUnknown *pMixerOwner, IUnknown *pPresenterOwner, REFIID riidMixer, void **ppvVideoMixer, REFIID riidPresenter, void **ppvVideoPresenter);")
274cpp_quote("HRESULT WINAPI MFCreateVideoRenderer( REFIID riidRenderer, void **ppVideoRenderer );")
275cpp_quote("HRESULT WINAPI MFCreateVideoSampleFromSurface(IUnknown *pUnkSurface, IMFSample **ppSample);")
276cpp_quote("HRESULT WINAPI MFCreateVideoSampleAllocator(REFIID riid, void **ppSampleAllocator);")
277
278cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
279cpp_quote("")
Note: See TracBrowser for help on using the repository browser.