CBaseMediaFilter Class Reference

#include <amfilter.h>

Inheritance diagram for CBaseMediaFilter:

CUnknown CBaseObject

List of all members.

Public Member Functions

 CBaseMediaFilter (const TCHAR *pName, LPUNKNOWN pUnk, CCritSec *pLock, REFCLSID clsid)
virtual ~CBaseMediaFilter ()
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
STDMETHODIMP GetClassID (CLSID *pClsID)
STDMETHODIMP GetState (DWORD dwMSecs, FILTER_STATE *State)
STDMETHODIMP SetSyncSource (IReferenceClock *pClock)
STDMETHODIMP GetSyncSource (IReferenceClock **pClock)
STDMETHODIMP Stop ()
STDMETHODIMP Pause ()
STDMETHODIMP Run (REFERENCE_TIME tStart)
virtual HRESULT StreamTime (CRefTime &rtStream)
BOOL IsActive ()

Protected Attributes

FILTER_STATE m_State
IReferenceClock * m_pClock
CRefTime m_tStart
CLSID m_clsid
CCritSecm_pLock


Detailed Description

Definition at line 23 of file amfilter.h.


Constructor & Destructor Documentation

CBaseMediaFilter::CBaseMediaFilter ( const TCHAR pName,
LPUNKNOWN  pUnk,
CCritSec pLock,
REFCLSID  clsid 
)

Definition at line 54 of file amfilter.cpp.

CBaseMediaFilter::~CBaseMediaFilter (  )  [virtual]

Definition at line 66 of file amfilter.cpp.

References m_pClock, and NULL.


Member Function Documentation

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

Reimplemented from CUnknown.

Definition at line 76 of file amfilter.cpp.

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

STDMETHODIMP CBaseMediaFilter::GetClassID ( CLSID pClsID  ) 

Definition at line 90 of file amfilter.cpp.

References CheckPointer, m_clsid, and ValidateReadWritePtr.

STDMETHODIMP CBaseMediaFilter::GetState ( DWORD  dwMSecs,
FILTER_STATE *  State 
)

Definition at line 99 of file amfilter.cpp.

References CheckPointer, m_State, S_OK, and ValidateReadWritePtr.

STDMETHODIMP CBaseMediaFilter::SetSyncSource ( IReferenceClock *  pClock  ) 

Definition at line 110 of file amfilter.cpp.

References m_pClock, and m_pLock.

STDMETHODIMP CBaseMediaFilter::GetSyncSource ( IReferenceClock **  pClock  ) 

Definition at line 128 of file amfilter.cpp.

References CheckPointer, m_pClock, m_pLock, and ValidateReadWritePtr.

STDMETHODIMP CBaseMediaFilter::Stop (  ) 

Definition at line 143 of file amfilter.cpp.

References m_pLock, m_State, and S_OK.

STDMETHODIMP CBaseMediaFilter::Pause (  ) 

Definition at line 152 of file amfilter.cpp.

References m_pLock, m_State, and S_OK.

Referenced by Run().

STDMETHODIMP CBaseMediaFilter::Run ( REFERENCE_TIME  tStart  ) 

Definition at line 161 of file amfilter.cpp.

References FAILED, hr, HRESULT, m_pLock, m_State, m_tStart, Pause(), and S_OK.

HRESULT CBaseMediaFilter::StreamTime ( CRefTime rtStream  )  [virtual]

Definition at line 180 of file amfilter.cpp.

References FAILED, hr, HRESULT, m_pClock, m_tStart, NULL, and S_OK.

BOOL CBaseMediaFilter::IsActive (  )  [inline]

Definition at line 89 of file amfilter.h.


Member Data Documentation

FILTER_STATE CBaseMediaFilter::m_State [protected]

Definition at line 29 of file amfilter.h.

Referenced by GetState(), Pause(), Run(), and Stop().

IReferenceClock* CBaseMediaFilter::m_pClock [protected]

Definition at line 30 of file amfilter.h.

Referenced by GetSyncSource(), SetSyncSource(), StreamTime(), and ~CBaseMediaFilter().

Definition at line 34 of file amfilter.h.

Referenced by Run(), and StreamTime().

Definition at line 36 of file amfilter.h.

Referenced by GetClassID().

Definition at line 38 of file amfilter.h.

Referenced by GetSyncSource(), Pause(), Run(), SetSyncSource(), and Stop().


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

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