source: trunk/src/quartz/impos.c@ 6666

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

Added $Id:$ keyword.

File size: 5.2 KB
Line 
1/* $Id: impos.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */
2/*
3 * Implementation of IMediaPosition 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
30IMediaPosition_fnQueryInterface(IMediaPosition* iface,REFIID riid,void** ppobj)
31{
32 CFilterGraph_THIS(iface,mediaposition);
33
34 TRACE("(%p)->()\n",This);
35
36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
37}
38
39static ULONG WINAPI
40IMediaPosition_fnAddRef(IMediaPosition* iface)
41{
42 CFilterGraph_THIS(iface,mediaposition);
43
44 TRACE("(%p)->()\n",This);
45
46 return IUnknown_AddRef(This->unk.punkControl);
47}
48
49static ULONG WINAPI
50IMediaPosition_fnRelease(IMediaPosition* iface)
51{
52 CFilterGraph_THIS(iface,mediaposition);
53
54 TRACE("(%p)->()\n",This);
55
56 return IUnknown_Release(This->unk.punkControl);
57}
58
59static HRESULT WINAPI
60IMediaPosition_fnGetTypeInfoCount(IMediaPosition* iface,UINT* pcTypeInfo)
61{
62 CFilterGraph_THIS(iface,mediaposition);
63
64 FIXME("(%p)->()\n",This);
65
66 return E_NOTIMPL;
67}
68
69static HRESULT WINAPI
70IMediaPosition_fnGetTypeInfo(IMediaPosition* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
71{
72 CFilterGraph_THIS(iface,mediaposition);
73
74 FIXME("(%p)->()\n",This);
75
76 return E_NOTIMPL;
77}
78
79static HRESULT WINAPI
80IMediaPosition_fnGetIDsOfNames(IMediaPosition* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
81{
82 CFilterGraph_THIS(iface,mediaposition);
83
84 FIXME("(%p)->()\n",This);
85
86 return E_NOTIMPL;
87}
88
89static HRESULT WINAPI
90IMediaPosition_fnInvoke(IMediaPosition* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
91{
92 CFilterGraph_THIS(iface,mediaposition);
93
94 FIXME("(%p)->()\n",This);
95
96 return E_NOTIMPL;
97}
98
99
100static HRESULT WINAPI
101IMediaPosition_fnget_Duration(IMediaPosition* iface,REFTIME* prefTime)
102{
103 CFilterGraph_THIS(iface,mediaposition);
104
105 FIXME("(%p)->() stub!\n",This);
106
107 return E_NOTIMPL;
108}
109
110static HRESULT WINAPI
111IMediaPosition_fnput_CurrentPosition(IMediaPosition* iface,REFTIME refTime)
112{
113 CFilterGraph_THIS(iface,mediaposition);
114
115 FIXME("(%p)->() stub!\n",This);
116
117 return E_NOTIMPL;
118}
119
120static HRESULT WINAPI
121IMediaPosition_fnget_CurrentPosition(IMediaPosition* iface,REFTIME* prefTime)
122{
123 CFilterGraph_THIS(iface,mediaposition);
124
125 FIXME("(%p)->() stub!\n",This);
126
127 return E_NOTIMPL;
128}
129
130static HRESULT WINAPI
131IMediaPosition_fnget_StopTime(IMediaPosition* iface,REFTIME* prefTime)
132{
133 CFilterGraph_THIS(iface,mediaposition);
134
135 FIXME("(%p)->() stub!\n",This);
136
137 return E_NOTIMPL;
138}
139
140static HRESULT WINAPI
141IMediaPosition_fnput_StopTime(IMediaPosition* iface,REFTIME refTime)
142{
143 CFilterGraph_THIS(iface,mediaposition);
144
145 FIXME("(%p)->() stub!\n",This);
146
147 return E_NOTIMPL;
148}
149
150static HRESULT WINAPI
151IMediaPosition_fnget_PrerollTime(IMediaPosition* iface,REFTIME* prefTime)
152{
153 CFilterGraph_THIS(iface,mediaposition);
154
155 FIXME("(%p)->() stub!\n",This);
156
157 return E_NOTIMPL;
158}
159
160static HRESULT WINAPI
161IMediaPosition_fnput_PrerollTime(IMediaPosition* iface,REFTIME refTime)
162{
163 CFilterGraph_THIS(iface,mediaposition);
164
165 FIXME("(%p)->() stub!\n",This);
166
167 return E_NOTIMPL;
168}
169
170static HRESULT WINAPI
171IMediaPosition_fnput_Rate(IMediaPosition* iface,double dblRate)
172{
173 CFilterGraph_THIS(iface,mediaposition);
174
175 FIXME("(%p)->() stub!\n",This);
176
177 return E_NOTIMPL;
178}
179
180static HRESULT WINAPI
181IMediaPosition_fnget_Rate(IMediaPosition* iface,double* pdblRate)
182{
183 CFilterGraph_THIS(iface,mediaposition);
184
185 FIXME("(%p)->() stub!\n",This);
186
187 return E_NOTIMPL;
188}
189
190static HRESULT WINAPI
191IMediaPosition_fnCanSeekForward(IMediaPosition* iface,LONG* pCanSeek)
192{
193 CFilterGraph_THIS(iface,mediaposition);
194
195 FIXME("(%p)->() stub!\n",This);
196
197 return E_NOTIMPL;
198}
199
200static HRESULT WINAPI
201IMediaPosition_fnCanSeekBackward(IMediaPosition* iface,LONG* pCanSeek)
202{
203 CFilterGraph_THIS(iface,mediaposition);
204
205 FIXME("(%p)->() stub!\n",This);
206
207 return E_NOTIMPL;
208}
209
210
211static ICOM_VTABLE(IMediaPosition) imediaposition =
212{
213 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
214 /* IUnknown fields */
215 IMediaPosition_fnQueryInterface,
216 IMediaPosition_fnAddRef,
217 IMediaPosition_fnRelease,
218 /* IDispatch fields */
219 IMediaPosition_fnGetTypeInfoCount,
220 IMediaPosition_fnGetTypeInfo,
221 IMediaPosition_fnGetIDsOfNames,
222 IMediaPosition_fnInvoke,
223 /* IMediaPosition fields */
224 IMediaPosition_fnget_Duration,
225 IMediaPosition_fnput_CurrentPosition,
226 IMediaPosition_fnget_CurrentPosition,
227 IMediaPosition_fnget_StopTime,
228 IMediaPosition_fnput_StopTime,
229 IMediaPosition_fnget_PrerollTime,
230 IMediaPosition_fnput_PrerollTime,
231 IMediaPosition_fnput_Rate,
232 IMediaPosition_fnget_Rate,
233 IMediaPosition_fnCanSeekForward,
234 IMediaPosition_fnCanSeekBackward,
235};
236
237
238void CFilterGraph_InitIMediaPosition( CFilterGraph* pfg )
239{
240 TRACE("(%p)\n",pfg);
241 ICOM_VTBL(&pfg->mediaposition) = &imediaposition;
242}
Note: See TracBrowser for help on using the repository browser.