#include <source.h>

Public Member Functions | |
| CSource (TCHAR *pName, LPUNKNOWN lpunk, CLSID clsid, HRESULT *phr) | |
| CSource (TCHAR *pName, LPUNKNOWN lpunk, CLSID clsid) | |
| ~CSource () | |
| int | GetPinCount (void) |
| CBasePin * | GetPin (int n) |
| CCritSec * | pStateLock (void) |
| HRESULT | AddPin (CSourceStream *) |
| HRESULT | RemovePin (CSourceStream *) |
| STDMETHODIMP | FindPin (LPCWSTR Id, IPin **ppPin) |
| int | FindPinNumber (IPin *iPin) |
Protected Attributes | |
| int | m_iPins |
| CSourceStream ** | m_paStreams |
| CCritSec | m_cStateLock |
Definition at line 11 of file source.h.
Definition at line 15 of file source.cpp.
Definition at line 8 of file source.cpp.
| CSource::~CSource | ( | ) |
| int CSource::GetPinCount | ( | void | ) | [virtual] |
Reimplemented from CBaseFilter.
Definition at line 118 of file source.cpp.
References m_cStateLock, and m_iPins.
| CBasePin * CSource::GetPin | ( | int | n | ) | [virtual] |
Reimplemented from CBaseFilter.
Definition at line 124 of file source.cpp.
References ASSERT, m_cStateLock, m_iPins, m_paStreams, and NULL.
Referenced by FindPin().
| CCritSec* CSource::pStateLock | ( | void | ) | [inline] |
Definition at line 25 of file source.h.
References m_cStateLock.
Referenced by CSourceStream::Active(), CSourceStream::CheckMediaType(), CSourceStream::GetMediaType(), and CSourceStream::Inactive().
| HRESULT CSource::AddPin | ( | CSourceStream * | pStream | ) |
Definition at line 51 of file source.cpp.
References E_OUTOFMEMORY, m_cStateLock, m_iPins, m_paStreams, NULL, and S_OK.
Referenced by CSourceStream::CSourceStream().
| HRESULT CSource::RemovePin | ( | CSourceStream * | pStream | ) |
Definition at line 72 of file source.cpp.
References m_iPins, m_paStreams, NULL, S_FALSE, and S_OK.
Referenced by CSourceStream::~CSourceStream().
| STDMETHODIMP CSource::FindPin | ( | LPCWSTR | Id, | |
| IPin ** | ppPin | |||
| ) |
Reimplemented from CBaseFilter.
Definition at line 92 of file source.cpp.
References CheckPointer, GetPin(), NULL, ValidateReadWritePtr, and WstrToInt.
| int CSource::FindPinNumber | ( | IPin * | iPin | ) |
Definition at line 108 of file source.cpp.
References m_iPins, and m_paStreams.
Referenced by CSourceStream::QueryId().
int CSource::m_iPins [protected] |
Definition at line 39 of file source.h.
Referenced by AddPin(), FindPinNumber(), GetPin(), GetPinCount(), RemovePin(), and ~CSource().
CSourceStream** CSource::m_paStreams [protected] |
Definition at line 41 of file source.h.
Referenced by AddPin(), FindPinNumber(), GetPin(), RemovePin(), and ~CSource().
CCritSec CSource::m_cStateLock [protected] |
Definition at line 43 of file source.h.
Referenced by AddPin(), GetPin(), GetPinCount(), and pStateLock().
1.5.6