source: trunk/src/quartz/ividwin.c@ 6649

Last change on this file since 6649 was 6649, checked in by bird, 24 years ago

Added $Id:$ keyword.

File size: 11.2 KB
Line 
1/* $Id: ividwin.c,v 1.2 2001-09-05 13:36:37 bird Exp $ */
2/*
3 * Implementation of IVideoWindow for FilterGraph.
4 *
5 * FIXME - stub.
6 *
7 * hidenori@a2.ctktv.ne.jp
8 */
9
10#include "config.h"
11
12#include "windef.h"
13#include "winbase.h"
14#include "wingdi.h"
15#include "winerror.h"
16#include "wine/obj_base.h"
17#include "wine/obj_oleaut.h"
18#include "strmif.h"
19#include "control.h"
20#include "uuids.h"
21
22#include "debugtools.h"
23DEFAULT_DEBUG_CHANNEL(quartz);
24
25#include "quartz_private.h"
26#include "fgraph.h"
27
28
29
30static HRESULT WINAPI
31IVideoWindow_fnQueryInterface(IVideoWindow* iface,REFIID riid,void** ppobj)
32{
33 CFilterGraph_THIS(iface,vidwin);
34
35 TRACE("(%p)->()\n",This);
36
37 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
38}
39
40static ULONG WINAPI
41IVideoWindow_fnAddRef(IVideoWindow* iface)
42{
43 CFilterGraph_THIS(iface,vidwin);
44
45 TRACE("(%p)->()\n",This);
46
47 return IUnknown_AddRef(This->unk.punkControl);
48}
49
50static ULONG WINAPI
51IVideoWindow_fnRelease(IVideoWindow* iface)
52{
53 CFilterGraph_THIS(iface,vidwin);
54
55 TRACE("(%p)->()\n",This);
56
57 return IUnknown_Release(This->unk.punkControl);
58}
59
60static HRESULT WINAPI
61IVideoWindow_fnGetTypeInfoCount(IVideoWindow* iface,UINT* pcTypeInfo)
62{
63 CFilterGraph_THIS(iface,vidwin);
64
65 FIXME("(%p)->()\n",This);
66
67 return E_NOTIMPL;
68}
69
70static HRESULT WINAPI
71IVideoWindow_fnGetTypeInfo(IVideoWindow* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
72{
73 CFilterGraph_THIS(iface,vidwin);
74
75 FIXME("(%p)->()\n",This);
76
77 return E_NOTIMPL;
78}
79
80static HRESULT WINAPI
81IVideoWindow_fnGetIDsOfNames(IVideoWindow* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
82{
83 CFilterGraph_THIS(iface,vidwin);
84
85 FIXME("(%p)->()\n",This);
86
87 return E_NOTIMPL;
88}
89
90static HRESULT WINAPI
91IVideoWindow_fnInvoke(IVideoWindow* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
92{
93 CFilterGraph_THIS(iface,vidwin);
94
95 FIXME("(%p)->()\n",This);
96
97 return E_NOTIMPL;
98}
99
100
101
102static HRESULT WINAPI
103IVideoWindow_fnput_Caption(IVideoWindow* iface,BSTR strCaption)
104{
105 CFilterGraph_THIS(iface,vidwin);
106
107 FIXME("(%p)->() stub!\n",This);
108
109 return E_NOTIMPL;
110}
111
112static HRESULT WINAPI
113IVideoWindow_fnget_Caption(IVideoWindow* iface,BSTR* pstrCaption)
114{
115 CFilterGraph_THIS(iface,vidwin);
116
117 FIXME("(%p)->() stub!\n",This);
118
119 return E_NOTIMPL;
120}
121
122static HRESULT WINAPI
123IVideoWindow_fnput_WindowStyle(IVideoWindow* iface,long lStyle)
124{
125 CFilterGraph_THIS(iface,vidwin);
126
127 FIXME("(%p)->() stub!\n",This);
128
129 return E_NOTIMPL;
130}
131
132static HRESULT WINAPI
133IVideoWindow_fnget_WindowStyle(IVideoWindow* iface,long* plStyle)
134{
135 CFilterGraph_THIS(iface,vidwin);
136
137 FIXME("(%p)->() stub!\n",This);
138
139 return E_NOTIMPL;
140}
141
142static HRESULT WINAPI
143IVideoWindow_fnput_WindowStyleEx(IVideoWindow* iface,long lExStyle)
144{
145 CFilterGraph_THIS(iface,vidwin);
146
147 FIXME("(%p)->() stub!\n",This);
148
149 return E_NOTIMPL;
150}
151
152static HRESULT WINAPI
153IVideoWindow_fnget_WindowStyleEx(IVideoWindow* iface,long* plExStyle)
154{
155 CFilterGraph_THIS(iface,vidwin);
156
157 FIXME("(%p)->() stub!\n",This);
158
159 return E_NOTIMPL;
160}
161
162static HRESULT WINAPI
163IVideoWindow_fnput_AutoShow(IVideoWindow* iface,long lAutoShow)
164{
165 CFilterGraph_THIS(iface,vidwin);
166
167 FIXME("(%p)->() stub!\n",This);
168
169 return E_NOTIMPL;
170}
171
172static HRESULT WINAPI
173IVideoWindow_fnget_AutoShow(IVideoWindow* iface,long* plAutoShow)
174{
175 CFilterGraph_THIS(iface,vidwin);
176
177 FIXME("(%p)->() stub!\n",This);
178
179 return E_NOTIMPL;
180}
181
182static HRESULT WINAPI
183IVideoWindow_fnput_WindowState(IVideoWindow* iface,long lState)
184{
185 CFilterGraph_THIS(iface,vidwin);
186
187 FIXME("(%p)->() stub!\n",This);
188
189 return E_NOTIMPL;
190}
191
192static HRESULT WINAPI
193IVideoWindow_fnget_WindowState(IVideoWindow* iface,long* plState)
194{
195 CFilterGraph_THIS(iface,vidwin);
196
197 FIXME("(%p)->() stub!\n",This);
198
199 return E_NOTIMPL;
200}
201
202static HRESULT WINAPI
203IVideoWindow_fnput_BackgroundPalette(IVideoWindow* iface,long lBackPal)
204{
205 CFilterGraph_THIS(iface,vidwin);
206
207 FIXME("(%p)->() stub!\n",This);
208
209 return E_NOTIMPL;
210}
211
212static HRESULT WINAPI
213IVideoWindow_fnget_BackgroundPalette(IVideoWindow* iface,long* plBackPal)
214{
215 CFilterGraph_THIS(iface,vidwin);
216
217 FIXME("(%p)->() stub!\n",This);
218
219 return E_NOTIMPL;
220}
221
222static HRESULT WINAPI
223IVideoWindow_fnput_Visible(IVideoWindow* iface,long lVisible)
224{
225 CFilterGraph_THIS(iface,vidwin);
226
227 FIXME("(%p)->() stub!\n",This);
228
229 return E_NOTIMPL;
230}
231
232static HRESULT WINAPI
233IVideoWindow_fnget_Visible(IVideoWindow* iface,long* plVisible)
234{
235 CFilterGraph_THIS(iface,vidwin);
236
237 FIXME("(%p)->() stub!\n",This);
238
239 return E_NOTIMPL;
240}
241
242static HRESULT WINAPI
243IVideoWindow_fnput_Left(IVideoWindow* iface,long lLeft)
244{
245 CFilterGraph_THIS(iface,vidwin);
246
247 FIXME("(%p)->() stub!\n",This);
248
249 return E_NOTIMPL;
250}
251
252static HRESULT WINAPI
253IVideoWindow_fnget_Left(IVideoWindow* iface,long* plLeft)
254{
255 CFilterGraph_THIS(iface,vidwin);
256
257 FIXME("(%p)->() stub!\n",This);
258
259 return E_NOTIMPL;
260}
261
262static HRESULT WINAPI
263IVideoWindow_fnput_Width(IVideoWindow* iface,long lWidth)
264{
265 CFilterGraph_THIS(iface,vidwin);
266
267 FIXME("(%p)->() stub!\n",This);
268
269 return E_NOTIMPL;
270}
271
272static HRESULT WINAPI
273IVideoWindow_fnget_Width(IVideoWindow* iface,long* plWidth)
274{
275 CFilterGraph_THIS(iface,vidwin);
276
277 FIXME("(%p)->() stub!\n",This);
278
279 return E_NOTIMPL;
280}
281
282static HRESULT WINAPI
283IVideoWindow_fnput_Top(IVideoWindow* iface,long lTop)
284{
285 CFilterGraph_THIS(iface,vidwin);
286
287 FIXME("(%p)->() stub!\n",This);
288
289 return E_NOTIMPL;
290}
291
292static HRESULT WINAPI
293IVideoWindow_fnget_Top(IVideoWindow* iface,long* plTop)
294{
295 CFilterGraph_THIS(iface,vidwin);
296
297 FIXME("(%p)->() stub!\n",This);
298
299 return E_NOTIMPL;
300}
301
302static HRESULT WINAPI
303IVideoWindow_fnput_Height(IVideoWindow* iface,long lHeight)
304{
305 CFilterGraph_THIS(iface,vidwin);
306
307 FIXME("(%p)->() stub!\n",This);
308
309 return E_NOTIMPL;
310}
311
312static HRESULT WINAPI
313IVideoWindow_fnget_Height(IVideoWindow* iface,long* plHeight)
314{
315 CFilterGraph_THIS(iface,vidwin);
316
317 FIXME("(%p)->() stub!\n",This);
318
319 return E_NOTIMPL;
320}
321
322static HRESULT WINAPI
323IVideoWindow_fnput_Owner(IVideoWindow* iface,OAHWND hwnd)
324{
325 CFilterGraph_THIS(iface,vidwin);
326
327 FIXME("(%p)->() stub!\n",This);
328
329 return E_NOTIMPL;
330}
331
332static HRESULT WINAPI
333IVideoWindow_fnget_Owner(IVideoWindow* iface,OAHWND* phwnd)
334{
335 CFilterGraph_THIS(iface,vidwin);
336
337 FIXME("(%p)->() stub!\n",This);
338
339 return E_NOTIMPL;
340}
341
342static HRESULT WINAPI
343IVideoWindow_fnput_MessageDrain(IVideoWindow* iface,OAHWND hwnd)
344{
345 CFilterGraph_THIS(iface,vidwin);
346
347 FIXME("(%p)->() stub!\n",This);
348
349 return E_NOTIMPL;
350}
351
352static HRESULT WINAPI
353IVideoWindow_fnget_MessageDrain(IVideoWindow* iface,OAHWND* phwnd)
354{
355 CFilterGraph_THIS(iface,vidwin);
356
357 FIXME("(%p)->() stub!\n",This);
358
359 return E_NOTIMPL;
360}
361
362static HRESULT WINAPI
363IVideoWindow_fnget_BorderColor(IVideoWindow* iface,long* plColor)
364{
365 CFilterGraph_THIS(iface,vidwin);
366
367 FIXME("(%p)->() stub!\n",This);
368
369 return E_NOTIMPL;
370}
371
372static HRESULT WINAPI
373IVideoWindow_fnput_BorderColor(IVideoWindow* iface,long lColor)
374{
375 CFilterGraph_THIS(iface,vidwin);
376
377 FIXME("(%p)->() stub!\n",This);
378
379 return E_NOTIMPL;
380}
381
382static HRESULT WINAPI
383IVideoWindow_fnget_FullScreenMode(IVideoWindow* iface,long* plMode)
384{
385 CFilterGraph_THIS(iface,vidwin);
386
387 FIXME("(%p)->() stub!\n",This);
388
389 return E_NOTIMPL;
390}
391
392static HRESULT WINAPI
393IVideoWindow_fnput_FullScreenMode(IVideoWindow* iface,long lMode)
394{
395 CFilterGraph_THIS(iface,vidwin);
396
397 FIXME("(%p)->() stub!\n",This);
398
399 return E_NOTIMPL;
400}
401
402static HRESULT WINAPI
403IVideoWindow_fnSetWindowForeground(IVideoWindow* iface,long lFocus)
404{
405 CFilterGraph_THIS(iface,vidwin);
406
407 FIXME("(%p)->() stub!\n",This);
408
409 return E_NOTIMPL;
410}
411
412static HRESULT WINAPI
413IVideoWindow_fnNotifyOwnerMessage(IVideoWindow* iface,OAHWND hwnd,long message,LONG_PTR wParam,LONG_PTR lParam)
414{
415 CFilterGraph_THIS(iface,vidwin);
416
417 FIXME("(%p)->() stub!\n",This);
418
419 return E_NOTIMPL;
420}
421
422static HRESULT WINAPI
423IVideoWindow_fnSetWindowPosition(IVideoWindow* iface,long lLeft,long lTop,long lWidth,long lHeight)
424{
425 CFilterGraph_THIS(iface,vidwin);
426
427 FIXME("(%p)->() stub!\n",This);
428
429 return E_NOTIMPL;
430}
431
432static HRESULT WINAPI
433IVideoWindow_fnGetWindowPosition(IVideoWindow* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
434{
435 CFilterGraph_THIS(iface,vidwin);
436
437 FIXME("(%p)->() stub!\n",This);
438
439 return E_NOTIMPL;
440}
441
442static HRESULT WINAPI
443IVideoWindow_fnGetMinIdealImageSize(IVideoWindow* iface,long* plWidth,long* plHeight)
444{
445 CFilterGraph_THIS(iface,vidwin);
446
447 FIXME("(%p)->() stub!\n",This);
448
449 return E_NOTIMPL;
450}
451
452static HRESULT WINAPI
453IVideoWindow_fnGetMaxIdealImageSize(IVideoWindow* iface,long* plWidth,long* plHeight)
454{
455 CFilterGraph_THIS(iface,vidwin);
456
457 FIXME("(%p)->() stub!\n",This);
458
459 return E_NOTIMPL;
460}
461
462static HRESULT WINAPI
463IVideoWindow_fnGetRestorePosition(IVideoWindow* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
464{
465 CFilterGraph_THIS(iface,vidwin);
466
467 FIXME("(%p)->() stub!\n",This);
468
469 return E_NOTIMPL;
470}
471
472static HRESULT WINAPI
473IVideoWindow_fnHideCursor(IVideoWindow* iface,long lHide)
474{
475 CFilterGraph_THIS(iface,vidwin);
476
477 FIXME("(%p)->() stub!\n",This);
478
479 return E_NOTIMPL;
480}
481
482static HRESULT WINAPI
483IVideoWindow_fnIsCursorHidden(IVideoWindow* iface,long* plHide)
484{
485 CFilterGraph_THIS(iface,vidwin);
486
487 FIXME("(%p)->() stub!\n",This);
488
489 return E_NOTIMPL;
490}
491
492
493
494
495static ICOM_VTABLE(IVideoWindow) ivideowindow =
496{
497 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
498 /* IUnknown fields */
499 IVideoWindow_fnQueryInterface,
500 IVideoWindow_fnAddRef,
501 IVideoWindow_fnRelease,
502 /* IDispatch fields */
503 IVideoWindow_fnGetTypeInfoCount,
504 IVideoWindow_fnGetTypeInfo,
505 IVideoWindow_fnGetIDsOfNames,
506 IVideoWindow_fnInvoke,
507 /* IVideoWindow fields */
508 IVideoWindow_fnput_Caption,
509 IVideoWindow_fnget_Caption,
510 IVideoWindow_fnput_WindowStyle,
511 IVideoWindow_fnget_WindowStyle,
512 IVideoWindow_fnput_WindowStyleEx,
513 IVideoWindow_fnget_WindowStyleEx,
514 IVideoWindow_fnput_AutoShow,
515 IVideoWindow_fnget_AutoShow,
516 IVideoWindow_fnput_WindowState,
517 IVideoWindow_fnget_WindowState,
518 IVideoWindow_fnput_BackgroundPalette,
519 IVideoWindow_fnget_BackgroundPalette,
520 IVideoWindow_fnput_Visible,
521 IVideoWindow_fnget_Visible,
522 IVideoWindow_fnput_Left,
523 IVideoWindow_fnget_Left,
524 IVideoWindow_fnput_Width,
525 IVideoWindow_fnget_Width,
526 IVideoWindow_fnput_Top,
527 IVideoWindow_fnget_Top,
528 IVideoWindow_fnput_Height,
529 IVideoWindow_fnget_Height,
530 IVideoWindow_fnput_Owner,
531 IVideoWindow_fnget_Owner,
532 IVideoWindow_fnput_MessageDrain,
533 IVideoWindow_fnget_MessageDrain,
534 IVideoWindow_fnget_BorderColor,
535 IVideoWindow_fnput_BorderColor,
536 IVideoWindow_fnget_FullScreenMode,
537 IVideoWindow_fnput_FullScreenMode,
538 IVideoWindow_fnSetWindowForeground,
539 IVideoWindow_fnNotifyOwnerMessage,
540 IVideoWindow_fnSetWindowPosition,
541 IVideoWindow_fnGetWindowPosition,
542 IVideoWindow_fnGetMinIdealImageSize,
543 IVideoWindow_fnGetMaxIdealImageSize,
544 IVideoWindow_fnGetRestorePosition,
545 IVideoWindow_fnHideCursor,
546 IVideoWindow_fnIsCursorHidden,
547
548};
549
550
551void CFilterGraph_InitIVideoWindow( CFilterGraph* pfg )
552{
553 TRACE("(%p)\n",pfg);
554 ICOM_VTBL(&pfg->vidwin) = &ivideowindow;
555}
Note: See TracBrowser for help on using the repository browser.