source: trunk/src/quartz/ibasvid.c@ 6707

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

Added $Id:$ keyword.

File size: 10.0 KB
Line 
1/* $Id: ibasvid.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */
2/*
3 * Implementation of IBasicVideo2 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
29static HRESULT WINAPI
30IBasicVideo2_fnQueryInterface(IBasicVideo2* iface,REFIID riid,void** ppobj)
31{
32 CFilterGraph_THIS(iface,basvid);
33
34 TRACE("(%p)->()\n",This);
35
36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
37}
38
39static ULONG WINAPI
40IBasicVideo2_fnAddRef(IBasicVideo2* iface)
41{
42 CFilterGraph_THIS(iface,basvid);
43
44 TRACE("(%p)->()\n",This);
45
46 return IUnknown_AddRef(This->unk.punkControl);
47}
48
49static ULONG WINAPI
50IBasicVideo2_fnRelease(IBasicVideo2* iface)
51{
52 CFilterGraph_THIS(iface,basvid);
53
54 TRACE("(%p)->()\n",This);
55
56 return IUnknown_Release(This->unk.punkControl);
57}
58
59static HRESULT WINAPI
60IBasicVideo2_fnGetTypeInfoCount(IBasicVideo2* iface,UINT* pcTypeInfo)
61{
62 CFilterGraph_THIS(iface,basvid);
63
64 FIXME("(%p)->()\n",This);
65
66 return E_NOTIMPL;
67}
68
69static HRESULT WINAPI
70IBasicVideo2_fnGetTypeInfo(IBasicVideo2* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
71{
72 CFilterGraph_THIS(iface,basvid);
73
74 FIXME("(%p)->()\n",This);
75
76 return E_NOTIMPL;
77}
78
79static HRESULT WINAPI
80IBasicVideo2_fnGetIDsOfNames(IBasicVideo2* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
81{
82 CFilterGraph_THIS(iface,basvid);
83
84 FIXME("(%p)->()\n",This);
85
86 return E_NOTIMPL;
87}
88
89static HRESULT WINAPI
90IBasicVideo2_fnInvoke(IBasicVideo2* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
91{
92 CFilterGraph_THIS(iface,basvid);
93
94 FIXME("(%p)->()\n",This);
95
96 return E_NOTIMPL;
97}
98
99
100static HRESULT WINAPI
101IBasicVideo2_fnget_AvgTimePerFrame(IBasicVideo2* iface,REFTIME* prefTime)
102{
103 CFilterGraph_THIS(iface,basvid);
104
105 FIXME("(%p)->()\n",This);
106
107 return E_NOTIMPL;
108}
109
110static HRESULT WINAPI
111IBasicVideo2_fnget_BitRate(IBasicVideo2* iface,long* plRate)
112{
113 CFilterGraph_THIS(iface,basvid);
114
115 FIXME("(%p)->()\n",This);
116
117 return E_NOTIMPL;
118}
119
120static HRESULT WINAPI
121IBasicVideo2_fnget_BitErrorRate(IBasicVideo2* iface,long* plRate)
122{
123 CFilterGraph_THIS(iface,basvid);
124
125 FIXME("(%p)->()\n",This);
126
127 return E_NOTIMPL;
128}
129
130static HRESULT WINAPI
131IBasicVideo2_fnget_VideoWidth(IBasicVideo2* iface,long* plWidth)
132{
133 CFilterGraph_THIS(iface,basvid);
134
135 FIXME("(%p)->()\n",This);
136
137 return E_NOTIMPL;
138}
139
140static HRESULT WINAPI
141IBasicVideo2_fnget_VideoHeight(IBasicVideo2* iface,long* plHeight)
142{
143 CFilterGraph_THIS(iface,basvid);
144
145 FIXME("(%p)->()\n",This);
146
147 return E_NOTIMPL;
148}
149
150static HRESULT WINAPI
151IBasicVideo2_fnput_SourceLeft(IBasicVideo2* iface,long lLeft)
152{
153 CFilterGraph_THIS(iface,basvid);
154
155 FIXME("(%p)->()\n",This);
156
157 return E_NOTIMPL;
158}
159
160static HRESULT WINAPI
161IBasicVideo2_fnget_SourceLeft(IBasicVideo2* iface,long* plLeft)
162{
163 CFilterGraph_THIS(iface,basvid);
164
165 FIXME("(%p)->()\n",This);
166
167 return E_NOTIMPL;
168}
169
170static HRESULT WINAPI
171IBasicVideo2_fnput_SourceWidth(IBasicVideo2* iface,long lWidth)
172{
173 CFilterGraph_THIS(iface,basvid);
174
175 FIXME("(%p)->()\n",This);
176
177 return E_NOTIMPL;
178}
179
180static HRESULT WINAPI
181IBasicVideo2_fnget_SourceWidth(IBasicVideo2* iface,long* plWidth)
182{
183 CFilterGraph_THIS(iface,basvid);
184
185 FIXME("(%p)->()\n",This);
186
187 return E_NOTIMPL;
188}
189
190static HRESULT WINAPI
191IBasicVideo2_fnput_SourceTop(IBasicVideo2* iface,long lTop)
192{
193 CFilterGraph_THIS(iface,basvid);
194
195 FIXME("(%p)->()\n",This);
196
197 return E_NOTIMPL;
198}
199
200static HRESULT WINAPI
201IBasicVideo2_fnget_SourceTop(IBasicVideo2* iface,long* plTop)
202{
203 CFilterGraph_THIS(iface,basvid);
204
205 FIXME("(%p)->()\n",This);
206
207 return E_NOTIMPL;
208}
209
210static HRESULT WINAPI
211IBasicVideo2_fnput_SourceHeight(IBasicVideo2* iface,long lHeight)
212{
213 CFilterGraph_THIS(iface,basvid);
214
215 FIXME("(%p)->()\n",This);
216
217 return E_NOTIMPL;
218}
219
220static HRESULT WINAPI
221IBasicVideo2_fnget_SourceHeight(IBasicVideo2* iface,long* plHeight)
222{
223 CFilterGraph_THIS(iface,basvid);
224
225 FIXME("(%p)->()\n",This);
226
227 return E_NOTIMPL;
228}
229
230static HRESULT WINAPI
231IBasicVideo2_fnput_DestinationLeft(IBasicVideo2* iface,long lLeft)
232{
233 CFilterGraph_THIS(iface,basvid);
234
235 FIXME("(%p)->()\n",This);
236
237 return E_NOTIMPL;
238}
239
240static HRESULT WINAPI
241IBasicVideo2_fnget_DestinationLeft(IBasicVideo2* iface,long* plLeft)
242{
243 CFilterGraph_THIS(iface,basvid);
244
245 FIXME("(%p)->()\n",This);
246
247 return E_NOTIMPL;
248}
249
250static HRESULT WINAPI
251IBasicVideo2_fnput_DestinationWidth(IBasicVideo2* iface,long lWidth)
252{
253 CFilterGraph_THIS(iface,basvid);
254
255 FIXME("(%p)->()\n",This);
256
257 return E_NOTIMPL;
258}
259
260static HRESULT WINAPI
261IBasicVideo2_fnget_DestinationWidth(IBasicVideo2* iface,long* plWidth)
262{
263 CFilterGraph_THIS(iface,basvid);
264
265 FIXME("(%p)->()\n",This);
266
267 return E_NOTIMPL;
268}
269
270static HRESULT WINAPI
271IBasicVideo2_fnput_DestinationTop(IBasicVideo2* iface,long lTop)
272{
273 CFilterGraph_THIS(iface,basvid);
274
275 FIXME("(%p)->()\n",This);
276
277 return E_NOTIMPL;
278}
279
280static HRESULT WINAPI
281IBasicVideo2_fnget_DestinationTop(IBasicVideo2* iface,long* plTop)
282{
283 CFilterGraph_THIS(iface,basvid);
284
285 FIXME("(%p)->()\n",This);
286
287 return E_NOTIMPL;
288}
289
290static HRESULT WINAPI
291IBasicVideo2_fnput_DestinationHeight(IBasicVideo2* iface,long lHeight)
292{
293 CFilterGraph_THIS(iface,basvid);
294
295 FIXME("(%p)->()\n",This);
296
297 return E_NOTIMPL;
298}
299
300static HRESULT WINAPI
301IBasicVideo2_fnget_DestinationHeight(IBasicVideo2* iface,long* plHeight)
302{
303 CFilterGraph_THIS(iface,basvid);
304
305 FIXME("(%p)->()\n",This);
306
307 return E_NOTIMPL;
308}
309
310static HRESULT WINAPI
311IBasicVideo2_fnSetSourcePosition(IBasicVideo2* iface,long lLeft,long lTop,long lWidth,long lHeight)
312{
313 CFilterGraph_THIS(iface,basvid);
314
315 FIXME("(%p)->()\n",This);
316
317 return E_NOTIMPL;
318}
319
320static HRESULT WINAPI
321IBasicVideo2_fnGetSourcePosition(IBasicVideo2* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
322{
323 CFilterGraph_THIS(iface,basvid);
324
325 FIXME("(%p)->()\n",This);
326
327 return E_NOTIMPL;
328}
329
330static HRESULT WINAPI
331IBasicVideo2_fnSetDefaultSourcePosition(IBasicVideo2* iface)
332{
333 CFilterGraph_THIS(iface,basvid);
334
335 FIXME("(%p)->()\n",This);
336
337 return E_NOTIMPL;
338}
339
340static HRESULT WINAPI
341IBasicVideo2_fnSetDestinationPosition(IBasicVideo2* iface,long lLeft,long lTop,long lWidth,long lHeight)
342{
343 CFilterGraph_THIS(iface,basvid);
344
345 FIXME("(%p)->()\n",This);
346
347 return E_NOTIMPL;
348}
349
350static HRESULT WINAPI
351IBasicVideo2_fnGetDestinationPosition(IBasicVideo2* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
352{
353 CFilterGraph_THIS(iface,basvid);
354
355 FIXME("(%p)->()\n",This);
356
357 return E_NOTIMPL;
358}
359
360static HRESULT WINAPI
361IBasicVideo2_fnSetDefaultDestinationPosition(IBasicVideo2* iface)
362{
363 CFilterGraph_THIS(iface,basvid);
364
365 FIXME("(%p)->()\n",This);
366
367 return E_NOTIMPL;
368}
369
370static HRESULT WINAPI
371IBasicVideo2_fnGetVideoSize(IBasicVideo2* iface,long* plWidth,long* plHeight)
372{
373 CFilterGraph_THIS(iface,basvid);
374
375 FIXME("(%p)->()\n",This);
376
377 return E_NOTIMPL;
378}
379
380static HRESULT WINAPI
381IBasicVideo2_fnGetVideoPaletteEntries(IBasicVideo2* iface,long lStart,long lCount,long* plRet,long* plPaletteEntry)
382{
383 CFilterGraph_THIS(iface,basvid);
384
385 FIXME("(%p)->()\n",This);
386
387 return E_NOTIMPL;
388}
389
390static HRESULT WINAPI
391IBasicVideo2_fnGetCurrentImage(IBasicVideo2* iface,long* plBufferSize,long* plDIBBuffer)
392{
393 CFilterGraph_THIS(iface,basvid);
394
395 FIXME("(%p)->()\n",This);
396
397 return E_NOTIMPL;
398}
399
400static HRESULT WINAPI
401IBasicVideo2_fnIsUsingDefaultSource(IBasicVideo2* iface)
402{
403 CFilterGraph_THIS(iface,basvid);
404
405 FIXME("(%p)->()\n",This);
406
407 return E_NOTIMPL;
408}
409
410static HRESULT WINAPI
411IBasicVideo2_fnIsUsingDefaultDestination(IBasicVideo2* iface)
412{
413 CFilterGraph_THIS(iface,basvid);
414
415 FIXME("(%p)->()\n",This);
416
417 return E_NOTIMPL;
418}
419
420static HRESULT WINAPI
421IBasicVideo2_fnGetPreferredAspectRatio(IBasicVideo2* iface,long* plRateX,long* plRateY)
422{
423 CFilterGraph_THIS(iface,basvid);
424
425 FIXME("(%p)->()\n",This);
426
427 return E_NOTIMPL;
428}
429
430
431
432
433static ICOM_VTABLE(IBasicVideo2) ibasicvideo =
434{
435 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
436 /* IUnknown fields */
437 IBasicVideo2_fnQueryInterface,
438 IBasicVideo2_fnAddRef,
439 IBasicVideo2_fnRelease,
440 /* IDispatch fields */
441 IBasicVideo2_fnGetTypeInfoCount,
442 IBasicVideo2_fnGetTypeInfo,
443 IBasicVideo2_fnGetIDsOfNames,
444 IBasicVideo2_fnInvoke,
445 /* IBasicVideo fields */
446 IBasicVideo2_fnget_AvgTimePerFrame,
447 IBasicVideo2_fnget_BitRate,
448 IBasicVideo2_fnget_BitErrorRate,
449 IBasicVideo2_fnget_VideoWidth,
450 IBasicVideo2_fnget_VideoHeight,
451 IBasicVideo2_fnput_SourceLeft,
452 IBasicVideo2_fnget_SourceLeft,
453 IBasicVideo2_fnput_SourceWidth,
454 IBasicVideo2_fnget_SourceWidth,
455 IBasicVideo2_fnput_SourceTop,
456 IBasicVideo2_fnget_SourceTop,
457 IBasicVideo2_fnput_SourceHeight,
458 IBasicVideo2_fnget_SourceHeight,
459 IBasicVideo2_fnput_DestinationLeft,
460 IBasicVideo2_fnget_DestinationLeft,
461 IBasicVideo2_fnput_DestinationWidth,
462 IBasicVideo2_fnget_DestinationWidth,
463 IBasicVideo2_fnput_DestinationTop,
464 IBasicVideo2_fnget_DestinationTop,
465 IBasicVideo2_fnput_DestinationHeight,
466 IBasicVideo2_fnget_DestinationHeight,
467 IBasicVideo2_fnSetSourcePosition,
468 IBasicVideo2_fnGetSourcePosition,
469 IBasicVideo2_fnSetDefaultSourcePosition,
470 IBasicVideo2_fnSetDestinationPosition,
471 IBasicVideo2_fnGetDestinationPosition,
472 IBasicVideo2_fnSetDefaultDestinationPosition,
473 IBasicVideo2_fnGetVideoSize,
474 IBasicVideo2_fnGetVideoPaletteEntries,
475 IBasicVideo2_fnGetCurrentImage,
476 IBasicVideo2_fnIsUsingDefaultSource,
477 IBasicVideo2_fnIsUsingDefaultDestination,
478 /* IBasicVideo2 fields */
479 IBasicVideo2_fnGetPreferredAspectRatio,
480};
481
482
483void CFilterGraph_InitIBasicVideo2( CFilterGraph* pfg )
484{
485 TRACE("(%p)\n",pfg);
486 ICOM_VTBL(&pfg->basvid) = &ibasicvideo;
487}
488
Note: See TracBrowser for help on using the repository browser.