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

Last change on this file since 6578 was 6578, checked in by sandervl, 24 years ago

wine updates

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