CSourceSeeking Class Reference

#include <ctlutil.h>

Inheritance diagram for CSourceSeeking:

CUnknown CBaseObject

List of all members.

Public Member Functions

STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
STDMETHODIMP IsFormatSupported (const GUID *pFormat)
STDMETHODIMP QueryPreferredFormat (GUID *pFormat)
STDMETHODIMP SetTimeFormat (const GUID *pFormat)
STDMETHODIMP IsUsingTimeFormat (const GUID *pFormat)
STDMETHODIMP GetTimeFormat (GUID *pFormat)
STDMETHODIMP GetDuration (LONGLONG *pDuration)
STDMETHODIMP GetStopPosition (LONGLONG *pStop)
STDMETHODIMP GetCurrentPosition (LONGLONG *pCurrent)
STDMETHODIMP GetCapabilities (DWORD *pCapabilities)
STDMETHODIMP CheckCapabilities (DWORD *pCapabilities)
STDMETHODIMP ConvertTimeFormat (LONGLONG *pTarget, const GUID *pTargetFormat, LONGLONG Source, const GUID *pSourceFormat)
STDMETHODIMP SetPositions (LONGLONG *pCurrent, DWORD CurrentFlags, LONGLONG *pStop, DWORD StopFlags)
STDMETHODIMP GetPositions (LONGLONG *pCurrent, LONGLONG *pStop)
STDMETHODIMP GetAvailable (LONGLONG *pEarliest, LONGLONG *pLatest)
STDMETHODIMP SetRate (double dRate)
STDMETHODIMP GetRate (double *pdRate)
STDMETHODIMP GetPreroll (LONGLONG *pPreroll)

Public Attributes

 DECLARE_IUNKNOWN

Protected Member Functions

 CSourceSeeking (const TCHAR *, LPUNKNOWN, HRESULT *, CCritSec *)
virtual HRESULT ChangeStart () PURE
virtual HRESULT ChangeStop () PURE
virtual HRESULT ChangeRate () PURE

Protected Attributes

CRefTime m_rtDuration
CRefTime m_rtStart
CRefTime m_rtStop
double m_dRateSeeking
DWORD m_dwSeekingCaps
CCritSecm_pLock


Detailed Description

Definition at line 508 of file ctlutil.h.


Constructor & Destructor Documentation

CSourceSeeking::CSourceSeeking ( const TCHAR pName,
LPUNKNOWN  pUnk,
HRESULT *  phr,
CCritSec pLock 
) [protected]

Definition at line 942 of file ctlutil.cpp.

References m_dRateSeeking, m_dwSeekingCaps, m_rtDuration, and m_rtStop.


Member Function Documentation

HRESULT CSourceSeeking::NonDelegatingQueryInterface ( REFIID  riid,
void **  ppv 
)

Reimplemented from CUnknown.

Definition at line 962 of file ctlutil.cpp.

References CheckPointer, GetInterface(), and CUnknown::NonDelegatingQueryInterface().

HRESULT CSourceSeeking::IsFormatSupported ( const GUID *  pFormat  ) 

Definition at line 973 of file ctlutil.cpp.

References CheckPointer, S_FALSE, and S_OK.

HRESULT CSourceSeeking::QueryPreferredFormat ( GUID *  pFormat  ) 

Definition at line 980 of file ctlutil.cpp.

References CheckPointer, and S_OK.

HRESULT CSourceSeeking::SetTimeFormat ( const GUID *  pFormat  ) 

Definition at line 987 of file ctlutil.cpp.

References CheckPointer, E_INVALIDARG, and S_OK.

HRESULT CSourceSeeking::IsUsingTimeFormat ( const GUID *  pFormat  ) 

Definition at line 995 of file ctlutil.cpp.

References CheckPointer, S_FALSE, and S_OK.

HRESULT CSourceSeeking::GetTimeFormat ( GUID *  pFormat  ) 

Definition at line 1001 of file ctlutil.cpp.

References CheckPointer, and S_OK.

HRESULT CSourceSeeking::GetDuration ( LONGLONG pDuration  ) 

Definition at line 1008 of file ctlutil.cpp.

References CheckPointer, m_pLock, m_rtDuration, and S_OK.

HRESULT CSourceSeeking::GetStopPosition ( LONGLONG pStop  ) 

Definition at line 1016 of file ctlutil.cpp.

References CheckPointer, m_pLock, m_rtStop, and S_OK.

HRESULT CSourceSeeking::GetCurrentPosition ( LONGLONG pCurrent  ) 

Definition at line 1024 of file ctlutil.cpp.

HRESULT CSourceSeeking::GetCapabilities ( DWORD *  pCapabilities  ) 

Definition at line 1031 of file ctlutil.cpp.

References CheckPointer, m_dwSeekingCaps, and S_OK.

HRESULT CSourceSeeking::CheckCapabilities ( DWORD *  pCapabilities  ) 

Definition at line 1038 of file ctlutil.cpp.

References CheckPointer, m_dwSeekingCaps, S_FALSE, and S_OK.

HRESULT CSourceSeeking::ConvertTimeFormat ( LONGLONG pTarget,
const GUID *  pTargetFormat,
LONGLONG  Source,
const GUID *  pSourceFormat 
)

Definition at line 1046 of file ctlutil.cpp.

References CheckPointer, E_INVALIDARG, and S_OK.

HRESULT CSourceSeeking::SetPositions ( LONGLONG pCurrent,
DWORD  CurrentFlags,
LONGLONG pStop,
DWORD  StopFlags 
)

HRESULT CSourceSeeking::GetPositions ( LONGLONG pCurrent,
LONGLONG pStop 
)

Definition at line 1129 of file ctlutil.cpp.

References m_rtStart, m_rtStop, and S_OK.

HRESULT CSourceSeeking::GetAvailable ( LONGLONG pEarliest,
LONGLONG pLatest 
)

Definition at line 1141 of file ctlutil.cpp.

References m_pLock, m_rtDuration, and S_OK.

HRESULT CSourceSeeking::SetRate ( double  dRate  ) 

Definition at line 1153 of file ctlutil.cpp.

References ChangeRate(), m_dRateSeeking, and m_pLock.

HRESULT CSourceSeeking::GetRate ( double *  pdRate  ) 

Definition at line 1162 of file ctlutil.cpp.

References CheckPointer, m_dRateSeeking, m_pLock, and S_OK.

HRESULT CSourceSeeking::GetPreroll ( LONGLONG pPreroll  ) 

Definition at line 1170 of file ctlutil.cpp.

References CheckPointer, and S_OK.

virtual HRESULT CSourceSeeking::ChangeStart (  )  [protected, virtual]

Referenced by SetPositions().

virtual HRESULT CSourceSeeking::ChangeStop (  )  [protected, virtual]

Referenced by SetPositions().

virtual HRESULT CSourceSeeking::ChangeRate (  )  [protected, virtual]

Referenced by SetRate().


Member Data Documentation

Definition at line 515 of file ctlutil.h.

Definition at line 553 of file ctlutil.h.

Referenced by CSourceSeeking(), GetAvailable(), and GetDuration().

Definition at line 554 of file ctlutil.h.

Referenced by GetPositions(), and SetPositions().

Definition at line 555 of file ctlutil.h.

Referenced by CSourceSeeking(), GetPositions(), GetStopPosition(), and SetPositions().

double CSourceSeeking::m_dRateSeeking [protected]

Definition at line 556 of file ctlutil.h.

Referenced by CSourceSeeking(), GetRate(), and SetRate().

Definition at line 559 of file ctlutil.h.

Referenced by CheckCapabilities(), CSourceSeeking(), and GetCapabilities().

Definition at line 561 of file ctlutil.h.

Referenced by GetAvailable(), GetDuration(), GetRate(), GetStopPosition(), SetPositions(), and SetRate().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:54 2008 by  doxygen 1.5.6