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

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

wine updates

File size: 5.3 KB
Line 
1/*
2 * Implementation of IMediaSeeking 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
30IMediaSeeking_fnQueryInterface(IMediaSeeking* iface,REFIID riid,void** ppobj)
31{
32 CFilterGraph_THIS(iface,mediaseeking);
33
34 TRACE("(%p)->()\n",This);
35
36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
37}
38
39static ULONG WINAPI
40IMediaSeeking_fnAddRef(IMediaSeeking* iface)
41{
42 CFilterGraph_THIS(iface,mediaseeking);
43
44 TRACE("(%p)->()\n",This);
45
46 return IUnknown_AddRef(This->unk.punkControl);
47}
48
49static ULONG WINAPI
50IMediaSeeking_fnRelease(IMediaSeeking* iface)
51{
52 CFilterGraph_THIS(iface,mediaseeking);
53
54 TRACE("(%p)->()\n",This);
55
56 return IUnknown_Release(This->unk.punkControl);
57}
58
59
60static HRESULT WINAPI
61IMediaSeeking_fnGetCapabilities(IMediaSeeking* iface,DWORD* pdwCaps)
62{
63 CFilterGraph_THIS(iface,mediaseeking);
64
65 FIXME("(%p)->() stub!\n",This);
66
67 return E_NOTIMPL;
68}
69
70static HRESULT WINAPI
71IMediaSeeking_fnCheckCapabilities(IMediaSeeking* iface,DWORD* pdwCaps)
72{
73 CFilterGraph_THIS(iface,mediaseeking);
74
75 FIXME("(%p)->() stub!\n",This);
76
77 return E_NOTIMPL;
78}
79
80static HRESULT WINAPI
81IMediaSeeking_fnIsFormatSupported(IMediaSeeking* iface,const GUID* pidFormat)
82{
83 CFilterGraph_THIS(iface,mediaseeking);
84
85 FIXME("(%p)->() stub!\n",This);
86
87 return E_NOTIMPL;
88}
89
90static HRESULT WINAPI
91IMediaSeeking_fnQueryPreferredFormat(IMediaSeeking* iface,GUID* pidFormat)
92{
93 CFilterGraph_THIS(iface,mediaseeking);
94
95 FIXME("(%p)->() stub!\n",This);
96
97 return E_NOTIMPL;
98}
99
100static HRESULT WINAPI
101IMediaSeeking_fnGetTimeFormat(IMediaSeeking* iface,GUID* pidFormat)
102{
103 CFilterGraph_THIS(iface,mediaseeking);
104
105 FIXME("(%p)->() stub!\n",This);
106
107 return E_NOTIMPL;
108}
109
110static HRESULT WINAPI
111IMediaSeeking_fnIsUsingTimeFormat(IMediaSeeking* iface,const GUID* pidFormat)
112{
113 CFilterGraph_THIS(iface,mediaseeking);
114
115 FIXME("(%p)->() stub!\n",This);
116
117 return E_NOTIMPL;
118}
119
120static HRESULT WINAPI
121IMediaSeeking_fnSetTimeFormat(IMediaSeeking* iface,const GUID* pidFormat)
122{
123 CFilterGraph_THIS(iface,mediaseeking);
124
125 FIXME("(%p)->() stub!\n",This);
126
127 return E_NOTIMPL;
128}
129
130static HRESULT WINAPI
131IMediaSeeking_fnGetDuration(IMediaSeeking* iface,LONGLONG* pllDuration)
132{
133 CFilterGraph_THIS(iface,mediaseeking);
134
135 FIXME("(%p)->() stub!\n",This);
136
137 return E_NOTIMPL;
138}
139
140static HRESULT WINAPI
141IMediaSeeking_fnGetStopPosition(IMediaSeeking* iface,LONGLONG* pllPos)
142{
143 CFilterGraph_THIS(iface,mediaseeking);
144
145 FIXME("(%p)->() stub!\n",This);
146
147 return E_NOTIMPL;
148}
149
150static HRESULT WINAPI
151IMediaSeeking_fnGetCurrentPosition(IMediaSeeking* iface,LONGLONG* pllPos)
152{
153 CFilterGraph_THIS(iface,mediaseeking);
154
155 FIXME("(%p)->() stub!\n",This);
156
157 return E_NOTIMPL;
158}
159
160static HRESULT WINAPI
161IMediaSeeking_fnConvertTimeFormat(IMediaSeeking* iface,LONGLONG* pllOut,const GUID* pidFmtOut,LONGLONG llIn,const GUID* pidFmtIn)
162{
163 CFilterGraph_THIS(iface,mediaseeking);
164
165 FIXME("(%p)->() stub!\n",This);
166
167 return E_NOTIMPL;
168}
169
170static HRESULT WINAPI
171IMediaSeeking_fnSetPositions(IMediaSeeking* iface,LONGLONG* pllCur,DWORD dwCurFlags,LONGLONG* pllStop,DWORD dwStopFlags)
172{
173 CFilterGraph_THIS(iface,mediaseeking);
174
175 FIXME("(%p)->() stub!\n",This);
176
177 return E_NOTIMPL;
178}
179
180static HRESULT WINAPI
181IMediaSeeking_fnGetPositions(IMediaSeeking* iface,LONGLONG* pllCur,LONGLONG* pllStop)
182{
183 CFilterGraph_THIS(iface,mediaseeking);
184
185 FIXME("(%p)->() stub!\n",This);
186
187 return E_NOTIMPL;
188}
189
190static HRESULT WINAPI
191IMediaSeeking_fnGetAvailable(IMediaSeeking* iface,LONGLONG* pllFirst,LONGLONG* pllLast)
192{
193 CFilterGraph_THIS(iface,mediaseeking);
194
195 FIXME("(%p)->() stub!\n",This);
196
197 return E_NOTIMPL;
198}
199
200static HRESULT WINAPI
201IMediaSeeking_fnSetRate(IMediaSeeking* iface,double dblRate)
202{
203 CFilterGraph_THIS(iface,mediaseeking);
204
205 FIXME("(%p)->() stub!\n",This);
206
207 return E_NOTIMPL;
208}
209
210static HRESULT WINAPI
211IMediaSeeking_fnGetRate(IMediaSeeking* iface,double* pdblRate)
212{
213 CFilterGraph_THIS(iface,mediaseeking);
214
215 FIXME("(%p)->() stub!\n",This);
216
217 return E_NOTIMPL;
218}
219
220static HRESULT WINAPI
221IMediaSeeking_fnGetPreroll(IMediaSeeking* iface,LONGLONG* pllPreroll)
222{
223 CFilterGraph_THIS(iface,mediaseeking);
224
225 FIXME("(%p)->() stub!\n",This);
226
227 return E_NOTIMPL;
228}
229
230
231
232
233static ICOM_VTABLE(IMediaSeeking) imediaseeking =
234{
235 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
236 /* IUnknown fields */
237 IMediaSeeking_fnQueryInterface,
238 IMediaSeeking_fnAddRef,
239 IMediaSeeking_fnRelease,
240 /* IMediaSeeking fields */
241 IMediaSeeking_fnGetCapabilities,
242 IMediaSeeking_fnCheckCapabilities,
243 IMediaSeeking_fnIsFormatSupported,
244 IMediaSeeking_fnQueryPreferredFormat,
245 IMediaSeeking_fnGetTimeFormat,
246 IMediaSeeking_fnIsUsingTimeFormat,
247 IMediaSeeking_fnSetTimeFormat,
248 IMediaSeeking_fnGetDuration,
249 IMediaSeeking_fnGetStopPosition,
250 IMediaSeeking_fnGetCurrentPosition,
251 IMediaSeeking_fnConvertTimeFormat,
252 IMediaSeeking_fnSetPositions,
253 IMediaSeeking_fnGetPositions,
254 IMediaSeeking_fnGetAvailable,
255 IMediaSeeking_fnSetRate,
256 IMediaSeeking_fnGetRate,
257 IMediaSeeking_fnGetPreroll,
258};
259
260void CFilterGraph_InitIMediaSeeking( CFilterGraph* pfg )
261{
262 TRACE("(%p)\n",pfg);
263 ICOM_VTBL(&pfg->mediaseeking) = &imediaseeking;
264}
Note: See TracBrowser for help on using the repository browser.