AbstractTransformInputPin Class Reference

#include <AbstractTransformInputPin.h>

Inheritance diagram for AbstractTransformInputPin:

Inheritance graph
[legend]
Collaboration diagram for AbstractTransformInputPin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
 AbstractTransformInputPin (AbstractTransformFilter *inParentFilter, CCritSec *inFilterLock, AbstractTransformOutputPin *inOutputPin, CHAR *inObjectName, LPCWSTR inPinDisplayName, vector< CMediaType * > inAcceptableMediaTypes)
virtual ~AbstractTransformInputPin (void)
virtual HRESULT BreakConnect ()
virtual HRESULT CompleteConnect (IPin *inReceivePin)
virtual HRESULT CheckMediaType (const CMediaType *inMediaType)
virtual HRESULT GetMediaType (int inPosition, CMediaType *outMediaType)
virtual HRESULT SetMediaType (const CMediaType *inMediaType)=0
virtual STDMETHODIMP Receive (IMediaSample *pSample)
virtual STDMETHODIMP EndOfStream (void)
virtual STDMETHODIMP BeginFlush ()
virtual STDMETHODIMP EndFlush ()
virtual STDMETHODIMP NewSegment (REFERENCE_TIME inStartTime, REFERENCE_TIME inStopTime, double inRate)
bool SetDelegate (IMediaSeeking *inDelegate)
bool ReleaseDelegate ()
virtual STDMETHODIMP GetCapabilities (DWORD *pCapabilities)
virtual STDMETHODIMP CheckCapabilities (DWORD *pCapabilities)
virtual STDMETHODIMP IsFormatSupported (const GUID *pFormat)
virtual STDMETHODIMP QueryPreferredFormat (GUID *pFormat)
virtual STDMETHODIMP SetTimeFormat (const GUID *pFormat)
virtual STDMETHODIMP GetTimeFormat (GUID *pFormat)
virtual STDMETHODIMP GetDuration (LONGLONG *pDuration)
virtual STDMETHODIMP GetStopPosition (LONGLONG *pStop)
virtual STDMETHODIMP GetCurrentPosition (LONGLONG *pCurrent)
virtual STDMETHODIMP ConvertTimeFormat (LONGLONG *pTarget, const GUID *pTargetFormat, LONGLONG Source, const GUID *pSourceFormat)
virtual STDMETHODIMP SetPositions (LONGLONG *pCurrent, DWORD dwCurrentFlags, LONGLONG *pStop, DWORD dwStopFlags)
virtual STDMETHODIMP GetPositions (LONGLONG *pCurrent, LONGLONG *pStop)
virtual STDMETHODIMP GetAvailable (LONGLONG *pEarliest, LONGLONG *pLatest)
virtual STDMETHODIMP SetRate (double dRate)
virtual STDMETHODIMP GetRate (double *dRate)
virtual STDMETHODIMP GetPreroll (LONGLONG *pllPreroll)
virtual STDMETHODIMP IsUsingTimeFormat (const GUID *pFormat)

Protected Member Functions

virtual HRESULT TransformData (unsigned char *inBuf, long inNumBytes)=0
virtual bool ConstructCodec ()=0
virtual void DestroyCodec ()=0
virtual bool SetSampleParams (IMediaSample *outMediaSample, unsigned long inDataSize, REFERENCE_TIME *inStartTime, REFERENCE_TIME *inEndTime)

Protected Attributes

HRESULT mHR
AbstractTransformOutputPinmOutputPin
AbstractTransformFiltermParentFilter
vector< CMediaType * > mAcceptableMediaTypes
CCritSec * mStreamLock
IMediaSeeking * mSeekDelegate
DWORD mSeekingCap

Static Protected Attributes

const short SIZE_16_BITS = 2
const signed short SINT_MAX = 32767
const signed short SINT_MIN = -32768

Friends

class AbstractTransformOutputPin

Constructor & Destructor Documentation

AbstractTransformInputPin::AbstractTransformInputPin AbstractTransformFilter inParentFilter,
CCritSec *  inFilterLock,
AbstractTransformOutputPin inOutputPin,
CHAR *  inObjectName,
LPCWSTR  inPinDisplayName,
vector< CMediaType * >  inAcceptableMediaTypes
 

Definition at line 36 of file AbstractTransformInputPin.cpp.

References mStreamLock.

AbstractTransformInputPin::~AbstractTransformInputPin void   )  [virtual]
 

Definition at line 77 of file AbstractTransformInputPin.cpp.

References mAcceptableMediaTypes.


Member Function Documentation

STDMETHODIMP AbstractTransformInputPin::BeginFlush  )  [virtual]
 

Reimplemented in FLACDecodeInputPin.

Definition at line 149 of file AbstractTransformInputPin.cpp.

References AbstractTransformOutputPin::DeliverBeginFlush(), AbstractTransformFilter::mOutputPin, and mParentFilter.

Referenced by FLACDecodeInputPin::BeginFlush().

Here is the call graph for this function:

HRESULT AbstractTransformInputPin::BreakConnect  )  [virtual]
 

Definition at line 61 of file AbstractTransformInputPin.cpp.

References BasicSeekPassThrough::ReleaseDelegate().

Here is the call graph for this function:

STDMETHODIMP BasicSeekPassThrough::CheckCapabilities DWORD *  pCapabilities  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 125 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

HRESULT AbstractTransformInputPin::CheckMediaType const CMediaType *  inMediaType  )  [virtual]
 

Definition at line 127 of file AbstractTransformInputPin.cpp.

References mAcceptableMediaTypes.

HRESULT AbstractTransformInputPin::CompleteConnect IPin *  inReceivePin  )  [virtual]
 

Definition at line 68 of file AbstractTransformInputPin.cpp.

References BasicSeekPassThrough::SetDelegate().

Here is the call graph for this function:

virtual bool AbstractTransformInputPin::ConstructCodec  )  [protected, pure virtual]
 

Implemented in FLACDecodeInputPin, FLACEncodeInputPin, SpeexDecodeInputPin, SpeexEncodeInputPin, TheoraEncodeInputPin, VorbisDecodeInputPin, and VorbisEncodeInputPin.

STDMETHODIMP BasicSeekPassThrough::ConvertTimeFormat LONGLONG *  pTarget,
const GUID *  pTargetFormat,
LONGLONG  Source,
const GUID *  pSourceFormat
[virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 246 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

virtual void AbstractTransformInputPin::DestroyCodec  )  [protected, pure virtual]
 

Implemented in FLACDecodeInputPin, FLACEncodeInputPin, SpeexDecodeInputPin, SpeexEncodeInputPin, TheoraEncodeInputPin, VorbisDecodeInputPin, and VorbisEncodeInputPin.

STDMETHODIMP AbstractTransformInputPin::EndFlush  )  [virtual]
 

Definition at line 155 of file AbstractTransformInputPin.cpp.

References AbstractTransformOutputPin::DeliverEndFlush(), AbstractTransformFilter::mOutputPin, and mParentFilter.

Here is the call graph for this function:

STDMETHODIMP AbstractTransformInputPin::EndOfStream void   )  [virtual]
 

Reimplemented in FLACDecodeInputPin, and FLACEncodeInputPin.

Definition at line 143 of file AbstractTransformInputPin.cpp.

References AbstractTransformOutputPin::DeliverEndOfStream(), AbstractTransformFilter::mOutputPin, mParentFilter, and mStreamLock.

Referenced by FLACEncodeInputPin::EndOfStream(), and FLACDecodeInputPin::EndOfStream().

Here is the call graph for this function:

STDMETHODIMP BasicSeekPassThrough::GetAvailable LONGLONG *  pEarliest,
LONGLONG *  pLatest
[virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 285 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::GetCapabilities DWORD *  pCapabilities  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 97 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::GetCurrentPosition LONGLONG *  pCurrent  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter, and OggMuxFilter.

Definition at line 234 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::GetDuration LONGLONG *  pDuration  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 211 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

HRESULT AbstractTransformInputPin::GetMediaType int  inPosition,
CMediaType *  outMediaType
[virtual]
 

Definition at line 170 of file AbstractTransformInputPin.cpp.

References mAcceptableMediaTypes.

STDMETHODIMP BasicSeekPassThrough::GetPositions LONGLONG *  pCurrent,
LONGLONG *  pStop
[virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter, and OggMuxFilter.

Definition at line 274 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

Referenced by OggMuxFilter::GetPositions().

STDMETHODIMP BasicSeekPassThrough::GetPreroll LONGLONG *  pllPreroll  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 316 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::GetRate double *  dRate  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 306 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::GetStopPosition LONGLONG *  pStop  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 223 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::GetTimeFormat GUID *  pFormat  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 201 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::IsFormatSupported const GUID *  pFormat  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 150 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::IsUsingTimeFormat const GUID *  pFormat  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 326 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP AbstractTransformInputPin::NewSegment REFERENCE_TIME  inStartTime,
REFERENCE_TIME  inStopTime,
double  inRate
[virtual]
 

Reimplemented in FLACDecodeInputPin, SpeexDecodeInputPin, and VorbisDecodeInputPin.

Definition at line 162 of file AbstractTransformInputPin.cpp.

References AbstractTransformOutputPin::DeliverNewSegment(), AbstractTransformFilter::mOutputPin, mParentFilter, and mStreamLock.

Referenced by VorbisDecodeInputPin::NewSegment(), SpeexDecodeInputPin::NewSegment(), and FLACDecodeInputPin::NewSegment().

Here is the call graph for this function:

STDMETHODIMP AbstractTransformInputPin::NonDelegatingQueryInterface REFIID  riid,
void **  ppv
 

Reimplemented in FLACDecodeInputPin, SpeexDecodeInputPin, and VorbisDecodeInputPin.

Definition at line 49 of file AbstractTransformInputPin.cpp.

Referenced by AbstractTransformOutputPin::CompleteConnect(), and VorbisDecodeInputPin::NonDelegatingQueryInterface().

STDMETHODIMP BasicSeekPassThrough::QueryPreferredFormat GUID *  pFormat  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 171 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP AbstractTransformInputPin::Receive IMediaSample *  pSample  )  [virtual]
 

Definition at line 100 of file AbstractTransformInputPin.cpp.

References mStreamLock, and TransformData().

Referenced by SpeexDecodeInputPin::SpeexDecoded(), SpeexEncodeInputPin::SpeexEncoded(), VorbisDecodeInputPin::VorbisDecoded(), and VorbisEncodeInputPin::VorbisEncoded().

Here is the call graph for this function:

bool BasicSeekPassThrough::ReleaseDelegate  )  [inherited]
 

Definition at line 75 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

Referenced by AbstractTransformOutputPin::BreakConnect(), BreakConnect(), OggMuxInputPin::BreakConnect(), TheoraDecodeOutputPin::BreakConnect(), TheoraDecodeInputPin::BreakConnect(), and AbstractTransformOutputPin::~AbstractTransformOutputPin().

bool BasicSeekPassThrough::SetDelegate IMediaSeeking *  inDelegate  )  [inherited]
 

Definition at line 83 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

Referenced by AnxMuxFilter::AnxMuxFilter(), AbstractTransformOutputPin::CompleteConnect(), CompleteConnect(), OggMuxInputPin::CompleteConnect(), AnxMuxInputPin::CompleteConnect(), TheoraDecodeOutputPin::CompleteConnect(), TheoraDecodeInputPin::CompleteConnect(), NativeFLACSourcePin::NativeFLACSourcePin(), OggDemuxSourcePin::OggDemuxSourcePin(), OggMuxFilter::OggMuxFilter(), NativeFLACSourcePin::~NativeFLACSourcePin(), and OggMuxFilter::~OggMuxFilter().

virtual HRESULT AbstractTransformInputPin::SetMediaType const CMediaType *  inMediaType  )  [pure virtual]
 

Implemented in FLACDecodeInputPin, FLACEncodeInputPin, SpeexDecodeInputPin, SpeexEncodeInputPin, TheoraEncodeInputPin, VorbisDecodeInputPin, and VorbisEncodeInputPin.

STDMETHODIMP BasicSeekPassThrough::SetPositions LONGLONG *  pCurrent,
DWORD  dwCurrentFlags,
LONGLONG *  pStop,
DWORD  dwStopFlags
[virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 257 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

STDMETHODIMP BasicSeekPassThrough::SetRate double  dRate  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 295 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

bool AbstractTransformInputPin::SetSampleParams IMediaSample *  outMediaSample,
unsigned long  inDataSize,
REFERENCE_TIME *  inStartTime,
REFERENCE_TIME *  inEndTime
[protected, virtual]
 

Definition at line 88 of file AbstractTransformInputPin.cpp.

References FALSE, and TRUE.

Referenced by TheoraEncodeInputPin::deliverData(), SpeexDecodeInputPin::SpeexDecoded(), SpeexEncodeInputPin::SpeexEncoded(), VorbisDecodeInputPin::VorbisDecoded(), VorbisEncodeInputPin::VorbisEncoded(), and FLACEncodeInputPin::write_callback().

STDMETHODIMP BasicSeekPassThrough::SetTimeFormat const GUID *  pFormat  )  [virtual, inherited]
 

Reimplemented in OggDemuxSourceFilter.

Definition at line 189 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

virtual HRESULT AbstractTransformInputPin::TransformData unsigned char *  inBuf,
long  inNumBytes
[protected, pure virtual]
 

Implemented in FLACDecodeInputPin, FLACEncodeInputPin, SpeexDecodeInputPin, SpeexEncodeInputPin, TheoraEncodeInputPin, VorbisDecodeInputPin, and VorbisEncodeInputPin.

Referenced by Receive().


Friends And Related Function Documentation

friend class AbstractTransformOutputPin [friend]
 

Definition at line 57 of file AbstractTransformInputPin.h.


Member Data Documentation

vector<CMediaType*> AbstractTransformInputPin::mAcceptableMediaTypes [protected]
 

Definition at line 103 of file AbstractTransformInputPin.h.

Referenced by CheckMediaType(), GetMediaType(), and ~AbstractTransformInputPin().

HRESULT AbstractTransformInputPin::mHR [protected]
 

Reimplemented from BasicSeekPassThrough.

Reimplemented in FLACEncodeInputPin, SpeexEncodeInputPin, TheoraEncodeInputPin, VorbisDecodeInputPin, and VorbisEncodeInputPin.

Definition at line 98 of file AbstractTransformInputPin.h.

AbstractTransformOutputPin* AbstractTransformInputPin::mOutputPin [protected]
 

Definition at line 101 of file AbstractTransformInputPin.h.

Referenced by SpeexDecodeInputPin::SpeexDecoded(), SpeexEncodeInputPin::SpeexEncoded(), VorbisDecodeInputPin::VorbisDecoded(), and VorbisEncodeInputPin::VorbisEncoded().

AbstractTransformFilter* AbstractTransformInputPin::mParentFilter [protected]
 

Definition at line 102 of file AbstractTransformInputPin.h.

Referenced by BeginFlush(), EndFlush(), EndOfStream(), and NewSegment().

IMediaSeeking* BasicSeekPassThrough::mSeekDelegate [protected, inherited]
 

Definition at line 75 of file BasicSeekPassThrough.h.

Referenced by BasicSeekPassThrough::BasicSeekPassThrough(), BasicSeekPassThrough::CheckCapabilities(), BasicSeekPassThrough::ConvertTimeFormat(), BasicSeekPassThrough::GetAvailable(), BasicSeekPassThrough::GetCapabilities(), BasicSeekPassThrough::GetCurrentPosition(), BasicSeekPassThrough::GetDuration(), BasicSeekPassThrough::GetPositions(), BasicSeekPassThrough::GetPreroll(), BasicSeekPassThrough::GetRate(), BasicSeekPassThrough::GetStopPosition(), BasicSeekPassThrough::GetTimeFormat(), BasicSeekPassThrough::IsFormatSupported(), BasicSeekPassThrough::IsUsingTimeFormat(), BasicSeekPassThrough::QueryPreferredFormat(), BasicSeekPassThrough::ReleaseDelegate(), BasicSeekPassThrough::SetDelegate(), BasicSeekPassThrough::SetPositions(), BasicSeekPassThrough::SetRate(), BasicSeekPassThrough::SetTimeFormat(), and BasicSeekPassThrough::~BasicSeekPassThrough().

DWORD BasicSeekPassThrough::mSeekingCap [protected, inherited]
 

Definition at line 77 of file BasicSeekPassThrough.h.

Referenced by BasicSeekPassThrough::BasicSeekPassThrough().

CCritSec* AbstractTransformInputPin::mStreamLock [protected]
 

Definition at line 106 of file AbstractTransformInputPin.h.

Referenced by AbstractTransformInputPin(), EndOfStream(), NewSegment(), and Receive().

const signed short AbstractTransformInputPin::SINT_MAX = 32767 [static, protected]
 

Definition at line 88 of file AbstractTransformInputPin.h.

const signed short AbstractTransformInputPin::SINT_MIN = -32768 [static, protected]
 

Definition at line 89 of file AbstractTransformInputPin.h.

const short AbstractTransformInputPin::SIZE_16_BITS = 2 [static, protected]
 

Definition at line 87 of file AbstractTransformInputPin.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 15 15:00:59 2005 for oggdsf by  doxygen 1.3.9