po: Update Lithuanian translation.
[wine.git] / include / evr.idl
blob413f5af1d47f1e9076aa03d84022cd0298d086b8
1 /*
2 * COM Classes for evr
4 * Copyright 2017 Fabian Maurer
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 import "unknwn.idl";
22 import "propidl.idl";
23 import "mfidl.idl";
24 import "mftransform.idl";
25 import "mediaobj.idl";
26 import "strmif.idl";
28 cpp_quote("#ifndef _MFVideoNormalizedRect_")
29 cpp_quote("#define _MFVideoNormalizedRect_")
30 typedef struct MFVideoNormalizedRect
32 float left;
33 float top;
34 float right;
35 float bottom;
36 } MFVideoNormalizedRect;
37 cpp_quote("#endif")
39 typedef enum _MFVP_MESSAGE_TYPE {
40 MFVP_MESSAGE_FLUSH,
41 MFVP_MESSAGE_INVALIDATEMEDIATYPE,
42 MFVP_MESSAGE_PROCESSINPUTNOTIFY,
43 MFVP_MESSAGE_BEGINSTREAMING,
44 MFVP_MESSAGE_ENDSTREAMING,
45 MFVP_MESSAGE_ENDOFSTREAM,
46 MFVP_MESSAGE_STEP,
47 MFVP_MESSAGE_CANCELSTEP,
48 } MFVP_MESSAGE_TYPE;
51 object,
52 uuid(29aff080-182a-4a5d-af3b-448f3a6346cb),
53 local
55 interface IMFVideoPresenter : IMFClockStateSink
57 HRESULT ProcessMessage(
58 [in] MFVP_MESSAGE_TYPE eMessage,
59 [in] ULONG_PTR ulParam
61 HRESULT GetCurrentMediaType(
62 [out] IMFVideoMediaType **ppMediaType
67 object,
68 uuid(83e91e85-82c1-4ea7-801d-85dc50b75086),
69 local
71 interface IEVRFilterConfig : IUnknown
73 HRESULT SetNumberOfStreams(
74 [in] DWORD dwMaxStreams
76 HRESULT GetNumberOfStreams(
77 [out] DWORD *pdwMaxStreams
82 object,
83 uuid(1f6a9f17-e70b-4e24-8ae4-0b2c3ba7a4ae),
84 local
86 interface IMFVideoPositionMapper : IUnknown
88 HRESULT MapOutputCoordinateToInputStream(
89 [in] float xOut,
90 [in] float yOut,
91 [in] DWORD dwOutputStreamIndex,
92 [in] DWORD dwInputStreamIndex,
93 [out] float *pxIn,
94 [out] float *pyIn
99 object,
100 uuid(dfdfd197-a9ca-43d8-b341-6af3503792cd),
101 local
103 interface IMFVideoRenderer : IUnknown
105 HRESULT InitializeRenderer(
106 [in] IMFTransform *pVideoMixer,
107 [in] IMFVideoPresenter *pVideoPresenter
111 typedef enum _MF_SERVICE_LOOKUP_TYPE
113 MF_SERVICE_LOOKUP_UPSTREAM,
114 MF_SERVICE_LOOKUP_UPSTREAM_DIRECT,
115 MF_SERVICE_LOOKUP_DOWNSTREAM,
116 MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT,
117 MF_SERVICE_LOOKUP_ALL,
118 MF_SERVICE_LOOKUP_GLOBAL,
119 } MF_SERVICE_LOOKUP_TYPE;
122 object,
123 uuid(fa993889-4383-415a-a930-dd472a8cf6f7),
124 local
126 interface IMFTopologyServiceLookup : IUnknown
128 HRESULT LookupService(
129 [in] MF_SERVICE_LOOKUP_TYPE lookup_type,
130 [in] DWORD index,
131 [in] REFGUID service,
132 [in] REFIID riid,
133 [out, iid_is(riid)] void **objects,
134 [in, out] DWORD *num_objects
139 object,
140 uuid(fa99388a-4383-415a-a930-dd472a8cf6f7),
141 local
143 interface IMFTopologyServiceLookupClient : IUnknown
145 HRESULT InitServicePointers(
146 [in] IMFTopologyServiceLookup *service_lookup
148 HRESULT ReleaseServicePointers();
152 object,
153 uuid(a38d9567-5a9c-4f3c-b293-8eb415b279ba),
154 local
156 interface IMFVideoDeviceID : IUnknown
158 HRESULT GetDeviceID(
159 [out] IID *device_id
164 object,
165 uuid(a5c6c53f-c202-4aa5-9695-175ba8c508a5)
167 interface IMFVideoMixerControl : IUnknown
169 HRESULT SetStreamZOrder(
170 [in] DWORD stream_id,
171 [in] DWORD zorder
173 HRESULT GetStreamZOrder(
174 [in] DWORD stream_id,
175 [out] DWORD *zorder
177 HRESULT SetStreamOutputRect(
178 [in] DWORD stream_id,
179 [in] const MFVideoNormalizedRect *rect
181 HRESULT GetStreamOutputRect(
182 [in] DWORD stream_id,
183 [out] MFVideoNormalizedRect *rect
187 typedef enum _MFVideoMixPrefs
189 MFVideoMixPrefs_ForceHalfInterlace = 0x00000001,
190 MFVideoMixPrefs_AllowDropToHalfInterlace = 0x00000002,
191 MFVideoMixPrefs_AllowDropToBob = 0x00000004,
192 MFVideoMixPrefs_ForceBob = 0x00000008,
193 MFVideoMixPrefs_EnableRotation = 0x00000010,
194 MFVideoMixPrefs_Mask = 0x0000001f,
195 } MFVideoMixPrefs;
198 object,
199 uuid(8459616d-966e-4930-b658-54fa7e5a16d3)
201 interface IMFVideoMixerControl2 : IMFVideoMixerControl
203 HRESULT SetMixingPrefs(
204 [in] DWORD flags
206 HRESULT GetMixingPrefs(
207 [out] DWORD *flags
212 object,
213 uuid(56c294d0-753e-4260-8d61-a3d8820b1d54),
214 local
216 interface IMFDesiredSample : IUnknown
218 HRESULT GetDesiredSampleTimeAndDuration(
219 [out] LONGLONG *sample_time,
220 [out] LONGLONG *sample_duration
223 void SetDesiredSampleTimeAndDuration(
224 [in] LONGLONG sample_time,
225 [in] LONGLONG sample_duration
228 void Clear();
231 typedef enum MFVideoAspectRatioMode
233 MFVideoARMode_None = 0x00000000,
234 MFVideoARMode_PreservePicture = 0x00000001,
235 MFVideoARMode_PreservePixel = 0x00000002,
236 MFVideoARMode_NonLinearStretch = 0x00000004,
237 MFVideoARMode_Mask = 0x00000007,
238 } MFVideoAspectRatioMode;
241 object,
242 uuid(a490b1e4-ab84-4d31-a1b2-181e03b1077a),
244 interface IMFVideoDisplayControl : IUnknown
246 HRESULT GetNativeVideoSize(
247 [in, out, unique] SIZE *video_size,
248 [in, out, unique] SIZE *aspect_ratio
251 HRESULT GetIdealVideoSize(
252 [in, out, unique] SIZE *min_size,
253 [in, out, unique] SIZE *max_size
256 HRESULT SetVideoPosition(
257 [in, unique] const MFVideoNormalizedRect *source,
258 [in, unique] const RECT *dest
261 HRESULT GetVideoPosition(
262 [out] MFVideoNormalizedRect *source,
263 [out] RECT *dest
266 HRESULT SetAspectRatioMode(
267 [in] DWORD mode
270 HRESULT GetAspectRatioMode(
271 [out] DWORD *mode
274 HRESULT SetVideoWindow(
275 [in] HWND window
278 HRESULT GetVideoWindow(
279 [out] HWND *window
282 HRESULT RepaintVideo();
284 HRESULT GetCurrentImage(
285 [in, out] LPBITMAPINFOHEADER header,
286 [out, size_is(, *dib_size)] BYTE **dib,
287 [out] DWORD *dib_size,
288 [in, out, unique] LONGLONG *timestamp
291 HRESULT SetBorderColor(
292 [in] COLORREF color
295 HRESULT GetBorderColor(
296 [out] COLORREF *color
299 HRESULT SetRenderingPrefs(
300 [in] DWORD flags
303 HRESULT GetRenderingPrefs(
304 [out] DWORD *flags
307 HRESULT SetFullscreen(
308 [in] BOOL fullscreen
311 HRESULT GetFullscreen(
312 [out] BOOL *fullscreen
316 cpp_quote("DEFINE_GUID(MR_VIDEO_RENDER_SERVICE, 0x1092a86c, 0xab1a, 0x459a, 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff);")
317 cpp_quote("DEFINE_GUID(MR_VIDEO_MIXER_SERVICE, 0x073cd2fc, 0x6cf4, 0x40b7, 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8);")
318 cpp_quote("DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE, 0xefef5175, 0x5c7d, 0x4ce2, 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54);")
319 cpp_quote("DEFINE_GUID(MR_BUFFER_SERVICE, 0xa562248c, 0x9ac6, 0x4ffc, 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d);")
320 cpp_quote("DEFINE_GUID(VIDEO_ZOOM_RECT, 0x7aaa1638, 0x1b7f, 0x4c93, 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0);")
321 cpp_quote("HRESULT WINAPI MFCreateVideoMixer(IUnknown *owner, REFIID riid_device, REFIID riid, void **obj);")
322 cpp_quote("HRESULT WINAPI MFCreateVideoMixerAndPresenter(IUnknown *mixer_outer, IUnknown *presenter_outer, ")
323 cpp_quote(" REFIID riid_mixer, void **mixer, REFIID riid_presenter, void **presenter);")
324 cpp_quote("HRESULT WINAPI MFCreateVideoPresenter(IUnknown *owner, REFIID riid_device, REFIID riid, void **obj);")
325 cpp_quote("HRESULT WINAPI MFCreateVideoRenderer(REFIID riid, void **renderer);")
326 cpp_quote("HRESULT WINAPI MFCreateVideoSampleAllocator(REFIID riid, void **allocator);")
327 cpp_quote("HRESULT WINAPI MFCreateVideoSampleFromSurface(IUnknown *surface, IMFSample **sample);")