CPosPassThru Class Reference

#include <ctlutil.h>

Inheritance diagram for CPosPassThru:

CMediaPosition CUnknown CBaseObject CRendererPosPassThru

List of all members.

Public Member Functions

 CPosPassThru (const TCHAR *, LPUNKNOWN, HRESULT *, IPin *)
DECLARE_IUNKNOWN HRESULT ForceRefresh ()
virtual HRESULT GetMediaTime (LONGLONG *pStartTime, LONGLONG *pEndTime)
STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
STDMETHODIMP GetCapabilities (DWORD *pCapabilities)
STDMETHODIMP CheckCapabilities (DWORD *pCapabilities)
STDMETHODIMP SetTimeFormat (const GUID *pFormat)
STDMETHODIMP GetTimeFormat (GUID *pFormat)
STDMETHODIMP IsUsingTimeFormat (const GUID *pFormat)
STDMETHODIMP IsFormatSupported (const GUID *pFormat)
STDMETHODIMP QueryPreferredFormat (GUID *pFormat)
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 GetCurrentPosition (LONGLONG *pCurrent)
STDMETHODIMP GetStopPosition (LONGLONG *pStop)
STDMETHODIMP SetRate (double dRate)
STDMETHODIMP GetRate (double *pdRate)
STDMETHODIMP GetDuration (LONGLONG *pDuration)
STDMETHODIMP GetAvailable (LONGLONG *pEarliest, LONGLONG *pLatest)
STDMETHODIMP GetPreroll (LONGLONG *pllPreroll)
STDMETHODIMP get_Duration (REFTIME *plength)
STDMETHODIMP put_CurrentPosition (REFTIME llTime)
STDMETHODIMP get_StopTime (REFTIME *pllTime)
STDMETHODIMP put_StopTime (REFTIME llTime)
STDMETHODIMP get_PrerollTime (REFTIME *pllTime)
STDMETHODIMP put_PrerollTime (REFTIME llTime)
STDMETHODIMP get_Rate (double *pdRate)
STDMETHODIMP put_Rate (double dRate)
STDMETHODIMP get_CurrentPosition (REFTIME *pllTime)
STDMETHODIMP CanSeekForward (LONG *pCanSeekForward)
STDMETHODIMP CanSeekBackward (LONG *pCanSeekBackward)

Private Member Functions

HRESULT GetPeer (IMediaPosition **ppMP)
HRESULT GetPeerSeeking (IMediaSeeking **ppMS)
HRESULT GetSeekingLongLong (HRESULT(__stdcall IMediaSeeking::*pMethod)(LONGLONG *), LONGLONG *pll)

Private Attributes

IPin * m_pPin


Detailed Description

Definition at line 257 of file ctlutil.h.


Constructor & Destructor Documentation

CPosPassThru::CPosPassThru ( const TCHAR pName,
LPUNKNOWN  pUnk,
HRESULT *  phr,
IPin *  pPin 
)

Definition at line 404 of file ctlutil.cpp.

References NULL.


Member Function Documentation

HRESULT CPosPassThru::GetPeer ( IMediaPosition **  ppMP  )  [private]

HRESULT CPosPassThru::GetPeerSeeking ( IMediaSeeking **  ppMS  )  [private]

DECLARE_IUNKNOWN HRESULT CPosPassThru::ForceRefresh (  )  [inline]

Definition at line 269 of file ctlutil.h.

References S_OK.

virtual HRESULT CPosPassThru::GetMediaTime ( LONGLONG pStartTime,
LONGLONG pEndTime 
) [inline, virtual]

Reimplemented in CRendererPosPassThru.

Definition at line 274 of file ctlutil.h.

References E_FAIL.

Referenced by GetCurrentPosition().

STDMETHODIMP CPosPassThru::NonDelegatingQueryInterface ( REFIID  riid,
void **  ppv 
)

STDMETHODIMP CPosPassThru::GetCapabilities ( DWORD *  pCapabilities  ) 

Definition at line 472 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::CheckCapabilities ( DWORD *  pCapabilities  ) 

Definition at line 486 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::SetTimeFormat ( const GUID *  pFormat  ) 

Definition at line 528 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::GetTimeFormat ( GUID *  pFormat  ) 

Definition at line 542 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::IsUsingTimeFormat ( const GUID *  pFormat  ) 

Definition at line 556 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::IsFormatSupported ( const GUID *  pFormat  ) 

Definition at line 500 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::QueryPreferredFormat ( GUID *  pFormat  ) 

Definition at line 514 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::ConvertTimeFormat ( LONGLONG pTarget,
const GUID *  pTargetFormat,
LONGLONG  Source,
const GUID *  pSourceFormat 
)

Definition at line 570 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

Referenced by CRendererPosPassThru::GetMediaTime().

STDMETHODIMP CPosPassThru::SetPositions ( LONGLONG pCurrent,
DWORD  CurrentFlags,
LONGLONG pStop,
DWORD  StopFlags 
)

Definition at line 585 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::GetPositions ( LONGLONG pCurrent,
LONGLONG pStop 
)

Definition at line 600 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::GetCurrentPosition ( LONGLONG pCurrent  ) 

Definition at line 630 of file ctlutil.cpp.

References GetMediaTime(), GetSeekingLongLong(), hr, HRESULT, and NULL.

STDMETHODIMP CPosPassThru::GetStopPosition ( LONGLONG pStop  ) 

Definition at line 640 of file ctlutil.cpp.

References GetSeekingLongLong().

Referenced by CRendererPosPassThru::EOS().

STDMETHODIMP CPosPassThru::SetRate ( double  dRate  ) 

Definition at line 685 of file ctlutil.cpp.

References E_INVALIDARG, FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::GetRate ( double *  pdRate  ) 

Definition at line 672 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::GetDuration ( LONGLONG pDuration  ) 

Definition at line 646 of file ctlutil.cpp.

References GetSeekingLongLong().

STDMETHODIMP CPosPassThru::GetAvailable ( LONGLONG pEarliest,
LONGLONG pLatest 
)

Definition at line 658 of file ctlutil.cpp.

References FAILED, GetPeerSeeking(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::GetPreroll ( LONGLONG pllPreroll  ) 

Definition at line 652 of file ctlutil.cpp.

References GetSeekingLongLong().

STDMETHODIMP CPosPassThru::get_Duration ( REFTIME *  plength  ) 

Definition at line 702 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::put_CurrentPosition ( REFTIME  llTime  ) 

Definition at line 729 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::get_StopTime ( REFTIME *  pllTime  ) 

Definition at line 742 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::put_StopTime ( REFTIME  llTime  ) 

Definition at line 755 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::get_PrerollTime ( REFTIME *  pllTime  ) 

Definition at line 768 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::put_PrerollTime ( REFTIME  llTime  ) 

Definition at line 781 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::get_Rate ( double *  pdRate  ) 

Definition at line 794 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::put_Rate ( double  dRate  ) 

Definition at line 807 of file ctlutil.cpp.

References E_INVALIDARG, FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::get_CurrentPosition ( REFTIME *  pllTime  ) 

Definition at line 716 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::CanSeekForward ( LONG pCanSeekForward  ) 

Definition at line 824 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

STDMETHODIMP CPosPassThru::CanSeekBackward ( LONG pCanSeekBackward  ) 

Definition at line 837 of file ctlutil.cpp.

References FAILED, GetPeer(), hr, and HRESULT.

HRESULT CPosPassThru::GetSeekingLongLong ( HRESULT(__stdcall IMediaSeeking::*)(LONGLONG *)  pMethod,
LONGLONG pll 
) [private]

Definition at line 615 of file ctlutil.cpp.

References GetPeerSeeking(), hr, and HRESULT.

Referenced by GetCurrentPosition(), GetDuration(), GetPreroll(), and GetStopPosition().


Member Data Documentation

IPin* CPosPassThru::m_pPin [private]

Definition at line 259 of file ctlutil.h.

Referenced by GetPeer(), and GetPeerSeeking().


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

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