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"
|
---|
23 | DEFAULT_DEBUG_CHANNEL(quartz);
|
---|
24 |
|
---|
25 | #include "quartz_private.h"
|
---|
26 | #include "fgraph.h"
|
---|
27 |
|
---|
28 |
|
---|
29 | static HRESULT WINAPI
|
---|
30 | IMediaPosition_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 |
|
---|
39 | static ULONG WINAPI
|
---|
40 | IMediaPosition_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 |
|
---|
49 | static ULONG WINAPI
|
---|
50 | IMediaPosition_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 |
|
---|
59 | static HRESULT WINAPI
|
---|
60 | IMediaPosition_fnGetTypeInfoCount(IMediaPosition* iface,UINT* pcTypeInfo)
|
---|
61 | {
|
---|
62 | CFilterGraph_THIS(iface,mediaposition);
|
---|
63 |
|
---|
64 | FIXME("(%p)->()\n",This);
|
---|
65 |
|
---|
66 | return E_NOTIMPL;
|
---|
67 | }
|
---|
68 |
|
---|
69 | static HRESULT WINAPI
|
---|
70 | IMediaPosition_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 |
|
---|
79 | static HRESULT WINAPI
|
---|
80 | IMediaPosition_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 |
|
---|
89 | static HRESULT WINAPI
|
---|
90 | IMediaPosition_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 |
|
---|
100 | static HRESULT WINAPI
|
---|
101 | IMediaPosition_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 |
|
---|
110 | static HRESULT WINAPI
|
---|
111 | IMediaPosition_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 |
|
---|
120 | static HRESULT WINAPI
|
---|
121 | IMediaPosition_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 |
|
---|
130 | static HRESULT WINAPI
|
---|
131 | IMediaPosition_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 |
|
---|
140 | static HRESULT WINAPI
|
---|
141 | IMediaPosition_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 |
|
---|
150 | static HRESULT WINAPI
|
---|
151 | IMediaPosition_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 |
|
---|
160 | static HRESULT WINAPI
|
---|
161 | IMediaPosition_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 |
|
---|
170 | static HRESULT WINAPI
|
---|
171 | IMediaPosition_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 |
|
---|
180 | static HRESULT WINAPI
|
---|
181 | IMediaPosition_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 |
|
---|
190 | static HRESULT WINAPI
|
---|
191 | IMediaPosition_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 |
|
---|
200 | static HRESULT WINAPI
|
---|
201 | IMediaPosition_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 |
|
---|
211 | static 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 |
|
---|
238 | void CFilterGraph_InitIMediaPosition( CFilterGraph* pfg )
|
---|
239 | {
|
---|
240 | TRACE("(%p)\n",pfg);
|
---|
241 | ICOM_VTBL(&pfg->mediaposition) = &imediaposition;
|
---|
242 | }
|
---|