AJA NTV2 SDK  17.6.0.2675
NTV2 SDK 17.6.0.2675
CSource Class Reference

#include <source.h>

Inheritance diagram for CSource:
[legend]
Collaboration diagram for CSource:
[legend]

Public Member Functions

 CSource (__in_opt LPCTSTR pName, __inout_opt LPUNKNOWN lpunk, CLSID clsid, __inout HRESULT *phr)
 
 CSource (__in_opt LPCTSTR pName, __inout_opt LPUNKNOWN lpunk, CLSID clsid)
 
 ~CSource ()
 
int GetPinCount (void)
 
CBasePinGetPin (int n)
 
CCritSecpStateLock (void)
 
HRESULT AddPin (__in CSourceStream *)
 
HRESULT RemovePin (__in CSourceStream *)
 
STDMETHODIMP FindPin (LPCWSTR Id, __deref_out IPin **ppPin)
 
int FindPinNumber (__in IPin *iPin)
 
- Public Member Functions inherited from CBaseFilter
 CBaseFilter (__in_opt LPCTSTR pName, __inout_opt LPUNKNOWN pUnk, __in CCritSec *pLock, REFCLSID clsid)
 
 CBaseFilter (__in_opt LPCTSTR pName, __in_opt LPUNKNOWN pUnk, __in CCritSec *pLock, REFCLSID clsid, __inout HRESULT *phr)
 
 ~CBaseFilter ()
 
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, __deref_out void **ppv)
 
STDMETHODIMP GetClassID (__out CLSID *pClsID)
 
STDMETHODIMP GetState (DWORD dwMSecs, __out FILTER_STATE *State)
 
STDMETHODIMP SetSyncSource (__in_opt IReferenceClock *pClock)
 
STDMETHODIMP GetSyncSource (__deref_out_opt IReferenceClock **pClock)
 
STDMETHODIMP Stop ()
 
STDMETHODIMP Pause ()
 
STDMETHODIMP Run (REFERENCE_TIME tStart)
 
virtual HRESULT StreamTime (CRefTime &rtStream)
 
BOOL IsActive ()
 
BOOL IsStopped ()
 
STDMETHODIMP EnumPins (__deref_out IEnumPins **ppEnum)
 
STDMETHODIMP FindPin (LPCWSTR Id, __deref_out IPin **ppPin)
 
STDMETHODIMP QueryFilterInfo (__out FILTER_INFO *pInfo)
 
STDMETHODIMP JoinFilterGraph (__inout_opt IFilterGraph *pGraph, __in_opt LPCWSTR pName)
 
STDMETHODIMP QueryVendorInfo (__deref_out LPWSTR *pVendorInfo)
 
HRESULT NotifyEvent (long EventCode, LONG_PTR EventParam1, LONG_PTR EventParam2)
 
__out_opt IFilterGraph * GetFilterGraph ()
 
HRESULT ReconnectPin (IPin *pPin, __in_opt AM_MEDIA_TYPE const *pmt)
 
virtual LONG GetPinVersion ()
 
void IncrementPinVersion ()
 
STDMETHODIMP Register ()
 
STDMETHODIMP Unregister ()
 
virtual __out_opt LPAMOVIESETUP_FILTER GetSetupData ()
 
- Public Member Functions inherited from CUnknown
 CUnknown (__in_opt LPCTSTR pName, __in_opt LPUNKNOWN pUnk)
 
virtual ~CUnknown ()
 
 CUnknown (__in_opt LPCTSTR Name, __in_opt LPUNKNOWN pUnk, __inout_opt HRESULT *phr)
 
LPUNKNOWN GetOwner () const
 
STDMETHODIMP NonDelegatingQueryInterface (REFIID, __deref_out void **)
 
 STDMETHODIMP_ (ULONG) NonDelegatingAddRef()
 
 STDMETHODIMP_ (ULONG) NonDelegatingRelease()
 
- Public Member Functions inherited from CBaseObject
 CBaseObject (__in_opt LPCTSTR pName)
 
 ~CBaseObject ()
 

Protected Attributes

int m_iPins
 
CSourceStream ** m_paStreams
 
CCritSec m_cStateLock
 
- Protected Attributes inherited from CBaseFilter
FILTER_STATE m_State
 
IReferenceClock * m_pClock
 
CRefTime m_tStart
 
CLSID m_clsid
 
CCritSecm_pLock
 
WCHAR * m_pName
 
IFilterGraph * m_pGraph
 
IMediaEventSink * m_pSink
 
LONG m_PinVersion
 
- Protected Attributes inherited from CUnknown
volatile LONG m_cRef
 

Additional Inherited Members

- Static Public Member Functions inherited from CBaseObject
static LONG ObjectsActive ()
 

Detailed Description

Definition at line 43 of file source.h.

Constructor & Destructor Documentation

◆ CSource() [1/2]

CSource::CSource ( __in_opt LPCTSTR  pName,
__inout_opt LPUNKNOWN  lpunk,
CLSID  clsid,
__inout HRESULT *  phr 
)

Definition at line 36 of file source.cpp.

◆ CSource() [2/2]

CSource::CSource ( __in_opt LPCTSTR  pName,
__inout_opt LPUNKNOWN  lpunk,
CLSID  clsid 
)

Definition at line 29 of file source.cpp.

◆ ~CSource()

CSource::~CSource ( )

Definition at line 64 of file source.cpp.

Member Function Documentation

◆ AddPin()

HRESULT CSource::AddPin ( __in CSourceStream pStream)

Definition at line 79 of file source.cpp.

◆ FindPin()

STDMETHODIMP CSource::FindPin ( LPCWSTR  Id,
__deref_out IPin **  ppPin 
)

Definition at line 128 of file source.cpp.

◆ FindPinNumber()

int CSource::FindPinNumber ( __in IPin *  iPin)

Definition at line 148 of file source.cpp.

◆ GetPin()

CBasePin * CSource::GetPin ( int  n)
virtual

Reimplemented from CBaseFilter.

Definition at line 174 of file source.cpp.

◆ GetPinCount()

int CSource::GetPinCount ( void  )
virtual

Reimplemented from CBaseFilter.

Definition at line 162 of file source.cpp.

◆ pStateLock()

CCritSec* CSource::pStateLock ( void  )
inline

Definition at line 59 of file source.h.

◆ RemovePin()

HRESULT CSource::RemovePin ( __in CSourceStream pStream)

Definition at line 103 of file source.cpp.

Member Data Documentation

◆ m_cStateLock

CCritSec CSource::m_cStateLock
protected

Definition at line 77 of file source.h.

◆ m_iPins

int CSource::m_iPins
protected

Definition at line 73 of file source.h.

◆ m_paStreams

CSourceStream** CSource::m_paStreams
protected

Definition at line 75 of file source.h.


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