Commit | Line | Data |
---|---|---|
d6254fcb RS |
1 | /* |
2 | * Filter Seeking and Control Interfaces | |
3 | * | |
4 | * Copyright 2003 Robert Shearman | |
5 | * | |
6 | * This library is free software; you can redistribute it and/or | |
7 | * modify it under the terms of the GNU Lesser General Public | |
8 | * License as published by the Free Software Foundation; either | |
9 | * version 2.1 of the License, or (at your option) any later version. | |
10 | * | |
11 | * This library is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * Lesser General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU Lesser General Public | |
17 | * License along with this library; if not, write to the Free Software | |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
19 | */ | |
20 | ||
21 | typedef HRESULT (* CHANGEPROC)(LPVOID pUserData); | |
22 | ||
23 | typedef struct MediaSeekingImpl | |
24 | { | |
25 | const IMediaSeekingVtbl * lpVtbl; | |
26 | ||
27 | ULONG refCount; | |
28 | LPVOID pUserData; | |
29 | CHANGEPROC fnChangeStop; | |
30 | CHANGEPROC fnChangeStart; | |
31 | CHANGEPROC fnChangeRate; | |
32 | DWORD dwCapabilities; | |
33 | double dRate; | |
34 | LONGLONG llStart; | |
35 | LONGLONG llStop; | |
36 | LONGLONG llDuration; /* FIXME: needed? */ | |
37 | } MediaSeekingImpl; | |
38 | ||
39 | HRESULT MediaSeekingImpl_Init(LPVOID pUserData, CHANGEPROC fnChangeStop, CHANGEPROC fnChangeStart, CHANGEPROC fnChangeRate, MediaSeekingImpl * pSeeking); | |
40 | ||
41 | HRESULT WINAPI MediaSeekingImpl_GetCapabilities(IMediaSeeking * iface, DWORD * pCapabilities); | |
42 | HRESULT WINAPI MediaSeekingImpl_CheckCapabilities(IMediaSeeking * iface, DWORD * pCapabilities); | |
43 | HRESULT WINAPI MediaSeekingImpl_IsFormatSupported(IMediaSeeking * iface, const GUID * pFormat); | |
44 | HRESULT WINAPI MediaSeekingImpl_QueryPreferredFormat(IMediaSeeking * iface, GUID * pFormat); | |
45 | HRESULT WINAPI MediaSeekingImpl_GetTimeFormat(IMediaSeeking * iface, GUID * pFormat); | |
46 | HRESULT WINAPI MediaSeekingImpl_IsUsingTimeFormat(IMediaSeeking * iface, const GUID * pFormat); | |
47 | HRESULT WINAPI MediaSeekingImpl_SetTimeFormat(IMediaSeeking * iface, const GUID * pFormat); | |
48 | HRESULT WINAPI MediaSeekingImpl_GetDuration(IMediaSeeking * iface, LONGLONG * pDuration); | |
49 | HRESULT WINAPI MediaSeekingImpl_GetStopPosition(IMediaSeeking * iface, LONGLONG * pStop); | |
50 | HRESULT WINAPI MediaSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGLONG * pCurrent); | |
51 | HRESULT WINAPI MediaSeekingImpl_ConvertTimeFormat(IMediaSeeking * iface, LONGLONG * pTarget, const GUID * pTargetFormat, LONGLONG Source, const GUID * pSourceFormat); | |
52 | HRESULT WINAPI MediaSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, DWORD dwCurrentFlags, LONGLONG * pStop, DWORD dwStopFlags); | |
53 | HRESULT WINAPI MediaSeekingImpl_GetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, LONGLONG * pStop); | |
54 | HRESULT WINAPI MediaSeekingImpl_GetAvailable(IMediaSeeking * iface, LONGLONG * pEarliest, LONGLONG * pLatest); | |
55 | HRESULT WINAPI MediaSeekingImpl_SetRate(IMediaSeeking * iface, double dRate); | |
56 | HRESULT WINAPI MediaSeekingImpl_GetRate(IMediaSeeking * iface, double * dRate); | |
57 | HRESULT WINAPI MediaSeekingImpl_GetPreroll(IMediaSeeking * iface, LONGLONG * pPreroll); |