2003-11-18 21:47:48 +01:00
|
|
|
/*
|
|
|
|
* Filter Seeking and Control Interfaces
|
|
|
|
*
|
|
|
|
* Copyright 2003 Robert Shearman
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-11-18 21:47:48 +01:00
|
|
|
*/
|
|
|
|
|
2008-04-01 22:41:25 +02:00
|
|
|
#ifndef QUARTZ_CONTROL_H
|
|
|
|
#define QUARTZ_CONTROL_H
|
|
|
|
|
2008-03-19 00:05:00 +01:00
|
|
|
typedef HRESULT (* CHANGEPROC)(IBaseFilter *pUserData);
|
2003-11-18 21:47:48 +01:00
|
|
|
|
|
|
|
typedef struct MediaSeekingImpl
|
|
|
|
{
|
|
|
|
const IMediaSeekingVtbl * lpVtbl;
|
|
|
|
|
|
|
|
ULONG refCount;
|
2008-03-19 00:05:00 +01:00
|
|
|
IBaseFilter *pUserData;
|
2003-11-18 21:47:48 +01:00
|
|
|
CHANGEPROC fnChangeStop;
|
2008-03-28 00:27:53 +01:00
|
|
|
CHANGEPROC fnChangeCurrent;
|
2003-11-18 21:47:48 +01:00
|
|
|
CHANGEPROC fnChangeRate;
|
|
|
|
DWORD dwCapabilities;
|
|
|
|
double dRate;
|
2008-03-28 00:27:53 +01:00
|
|
|
LONGLONG llCurrent, llStop, llDuration;
|
2008-03-20 02:27:07 +01:00
|
|
|
GUID timeformat;
|
|
|
|
PCRITICAL_SECTION crst;
|
2003-11-18 21:47:48 +01:00
|
|
|
} MediaSeekingImpl;
|
|
|
|
|
2008-03-28 00:27:53 +01:00
|
|
|
HRESULT MediaSeekingImpl_Init(IBaseFilter *pUserData, CHANGEPROC fnChangeStop, CHANGEPROC fnChangeCurrent, CHANGEPROC fnChangeRate, MediaSeekingImpl * pSeeking, PCRITICAL_SECTION crit_sect);
|
2003-11-18 21:47:48 +01:00
|
|
|
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetCapabilities(IMediaSeeking * iface, DWORD * pCapabilities);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_CheckCapabilities(IMediaSeeking * iface, DWORD * pCapabilities);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_IsFormatSupported(IMediaSeeking * iface, const GUID * pFormat);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_QueryPreferredFormat(IMediaSeeking * iface, GUID * pFormat);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetTimeFormat(IMediaSeeking * iface, GUID * pFormat);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_IsUsingTimeFormat(IMediaSeeking * iface, const GUID * pFormat);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_SetTimeFormat(IMediaSeeking * iface, const GUID * pFormat);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetDuration(IMediaSeeking * iface, LONGLONG * pDuration);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetStopPosition(IMediaSeeking * iface, LONGLONG * pStop);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGLONG * pCurrent);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_ConvertTimeFormat(IMediaSeeking * iface, LONGLONG * pTarget, const GUID * pTargetFormat, LONGLONG Source, const GUID * pSourceFormat);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, DWORD dwCurrentFlags, LONGLONG * pStop, DWORD dwStopFlags);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, LONGLONG * pStop);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetAvailable(IMediaSeeking * iface, LONGLONG * pEarliest, LONGLONG * pLatest);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_SetRate(IMediaSeeking * iface, double dRate);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetRate(IMediaSeeking * iface, double * dRate);
|
|
|
|
HRESULT WINAPI MediaSeekingImpl_GetPreroll(IMediaSeeking * iface, LONGLONG * pPreroll);
|
2008-04-01 22:41:25 +02:00
|
|
|
|
2010-05-22 15:19:38 +02:00
|
|
|
void MediaSeekingPassThru_RegisterMediaTime(IUnknown *iface, REFERENCE_TIME start);
|
|
|
|
void MediaSeekingPassThru_ResetMediaTime(IUnknown *iface);
|
|
|
|
void MediaSeekingPassThru_EOS(IUnknown *iface);
|
|
|
|
|
2008-04-01 22:41:25 +02:00
|
|
|
#endif /*QUARTZ_CONTROL_H*/
|