VorbisDecodeInputPin Class Reference

#include <VorbisDecodeInputPin.h>

Inheritance diagram for VorbisDecodeInputPin:

Inheritance graph
[legend]
Collaboration diagram for VorbisDecodeInputPin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
 VorbisDecodeInputPin (AbstractTransformFilter *inFilter, CCritSec *inFilterLock, AbstractTransformOutputPin *inOutputPin, vector< CMediaType * > inAcceptableMediaTypes)
virtual ~VorbisDecodeInputPin (void)
virtual HRESULT SetMediaType (const CMediaType *inMediaType)
virtual STDMETHODIMP NewSegment (REFERENCE_TIME inStartTime, REFERENCE_TIME inStopTime, double inRate)
virtual HRESULT BreakConnect ()
virtual HRESULT CompleteConnect (IPin *inReceivePin)
virtual HRESULT CheckMediaType (const CMediaType *inMediaType)
virtual HRESULT GetMediaType (int inPosition, CMediaType *outMediaType)
virtual STDMETHODIMP Receive (IMediaSample *pSample)
virtual STDMETHODIMP EndOfStream (void)
virtual STDMETHODIMP BeginFlush ()
virtual STDMETHODIMP EndFlush ()
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)

Static Public Member Functions

int __cdecl VorbisDecoded (FishSound *inFishSound, float **inPCM, long inFrames, void *inThisPointer)

Protected Member Functions

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

Protected Attributes

HRESULT mHR
bool mBegun
FishSoundmFishSound
FishSoundInfo mFishInfo
int mNumChannels
int mFrameSize
int mSampleRate
unsigned int mUptoFrame
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

VorbisDecodeInputPin::VorbisDecodeInputPin AbstractTransformFilter inFilter,
CCritSec *  inFilterLock,
AbstractTransformOutputPin inOutputPin,
vector< CMediaType * >  inAcceptableMediaTypes
 

Definition at line 37 of file VorbisDecodeInputPin.cpp.

References ConstructCodec(), and false.

Here is the call graph for this function:

VorbisDecodeInputPin::~VorbisDecodeInputPin void   )  [virtual]
 

Definition at line 62 of file VorbisDecodeInputPin.cpp.

References DestroyCodec().

Here is the call graph for this function:


Member Function Documentation

STDMETHODIMP AbstractTransformInputPin::BeginFlush  )  [virtual, inherited]
 

Reimplemented in FLACDecodeInputPin.

Definition at line 149 of file AbstractTransformInputPin.cpp.

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

Referenced by FLACDecodeInputPin::BeginFlush().

Here is the call graph for this function:

HRESULT AbstractTransformInputPin::BreakConnect  )  [virtual, inherited]
 

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, inherited]
 

Definition at line 127 of file AbstractTransformInputPin.cpp.

References AbstractTransformInputPin::mAcceptableMediaTypes.

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

Definition at line 68 of file AbstractTransformInputPin.cpp.

References BasicSeekPassThrough::SetDelegate().

Here is the call graph for this function:

bool VorbisDecodeInputPin::ConstructCodec  )  [protected, virtual]
 

Implements AbstractTransformInputPin.

Definition at line 78 of file VorbisDecodeInputPin.cpp.

References fish_sound_command(), fish_sound_new(), fish_sound_set_decoded_callback(), mFishInfo, mFishSound, and VorbisDecoded().

Referenced by VorbisDecodeInputPin().

Here is the call graph for this function:

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.

void VorbisDecodeInputPin::DestroyCodec  )  [protected, virtual]
 

Implements AbstractTransformInputPin.

Definition at line 90 of file VorbisDecodeInputPin.cpp.

References fish_sound_delete(), and mFishSound.

Referenced by ~VorbisDecodeInputPin().

Here is the call graph for this function:

STDMETHODIMP AbstractTransformInputPin::EndFlush  )  [virtual, inherited]
 

Definition at line 155 of file AbstractTransformInputPin.cpp.

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

Here is the call graph for this function:

STDMETHODIMP AbstractTransformInputPin::EndOfStream void   )  [virtual, inherited]
 

Reimplemented in FLACDecodeInputPin, and FLACEncodeInputPin.

Definition at line 143 of file AbstractTransformInputPin.cpp.

References AbstractTransformOutputPin::DeliverEndOfStream(), AbstractTransformFilter::mOutputPin, AbstractTransformInputPin::mParentFilter, and AbstractTransformInputPin::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, inherited]
 

Definition at line 170 of file AbstractTransformInputPin.cpp.

References AbstractTransformInputPin::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 VorbisDecodeInputPin::NewSegment REFERENCE_TIME  inStartTime,
REFERENCE_TIME  inStopTime,
double  inRate
[virtual]
 

Reimplemented from AbstractTransformInputPin.

Definition at line 97 of file VorbisDecodeInputPin.cpp.

References mUptoFrame, and AbstractTransformInputPin::NewSegment().

Here is the call graph for this function:

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

Reimplemented from AbstractTransformInputPin.

Definition at line 68 of file VorbisDecodeInputPin.cpp.

References AbstractTransformInputPin::NonDelegatingQueryInterface().

Here is the call graph for this function:

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, inherited]
 

Definition at line 100 of file AbstractTransformInputPin.cpp.

References AbstractTransformInputPin::mStreamLock, and AbstractTransformInputPin::TransformData().

Referenced by SpeexDecodeInputPin::SpeexDecoded(), SpeexEncodeInputPin::SpeexEncoded(), 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(), AbstractTransformInputPin::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(), AbstractTransformInputPin::CompleteConnect(), OggMuxInputPin::CompleteConnect(), AnxMuxInputPin::CompleteConnect(), TheoraDecodeOutputPin::CompleteConnect(), TheoraDecodeInputPin::CompleteConnect(), NativeFLACSourcePin::NativeFLACSourcePin(), OggDemuxSourcePin::OggDemuxSourcePin(), OggMuxFilter::OggMuxFilter(), NativeFLACSourcePin::~NativeFLACSourcePin(), and OggMuxFilter::~OggMuxFilter().

HRESULT VorbisDecodeInputPin::SetMediaType const CMediaType *  inMediaType  )  [virtual]
 

Implements AbstractTransformInputPin.

Definition at line 231 of file VorbisDecodeInputPin.cpp.

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, inherited]
 

Definition at line 88 of file AbstractTransformInputPin.cpp.

References FALSE, and TRUE.

Referenced by TheoraEncodeInputPin::deliverData(), SpeexDecodeInputPin::SpeexDecoded(), SpeexEncodeInputPin::SpeexEncoded(), 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 VorbisDecodeInputPin::TransformData unsigned char *  inBuf,
long  inNumBytes
[protected, virtual]
 

Implements AbstractTransformInputPin.

int __cdecl VorbisDecodeInputPin::VorbisDecoded FishSound inFishSound,
float **  inPCM,
long  inFrames,
void *  inThisPointer
[static]
 

Definition at line 106 of file VorbisDecodeInputPin.cpp.

References FishSoundInfo::channels, fish_sound_command(), FishSound, mBegun, mFishInfo, mFishSound, mFrameSize, mNumChannels, AbstractTransformInputPin::mOutputPin, mSampleRate, mUptoFrame, AbstractTransformInputPin::Receive(), FishSoundInfo::samplerate, and AbstractTransformInputPin::SetSampleParams().

Referenced by ConstructCodec().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class AbstractTransformOutputPin [friend, inherited]
 

Definition at line 57 of file AbstractTransformInputPin.h.


Member Data Documentation

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

Definition at line 103 of file AbstractTransformInputPin.h.

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

bool VorbisDecodeInputPin::mBegun [protected]
 

Definition at line 76 of file VorbisDecodeInputPin.h.

Referenced by VorbisDecoded().

FishSoundInfo VorbisDecodeInputPin::mFishInfo [protected]
 

Definition at line 79 of file VorbisDecodeInputPin.h.

Referenced by ConstructCodec(), and VorbisDecoded().

FishSound* VorbisDecodeInputPin::mFishSound [protected]
 

Definition at line 78 of file VorbisDecodeInputPin.h.

Referenced by ConstructCodec(), DestroyCodec(), and VorbisDecoded().

int VorbisDecodeInputPin::mFrameSize [protected]
 

Definition at line 82 of file VorbisDecodeInputPin.h.

Referenced by VorbisDecoded().

HRESULT VorbisDecodeInputPin::mHR [protected]
 

Reimplemented from AbstractTransformInputPin.

Definition at line 75 of file VorbisDecodeInputPin.h.

int VorbisDecodeInputPin::mNumChannels [protected]
 

Definition at line 81 of file VorbisDecodeInputPin.h.

Referenced by VorbisDecoded().

AbstractTransformOutputPin* AbstractTransformInputPin::mOutputPin [protected, inherited]
 

Definition at line 101 of file AbstractTransformInputPin.h.

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

AbstractTransformFilter* AbstractTransformInputPin::mParentFilter [protected, inherited]
 

Definition at line 102 of file AbstractTransformInputPin.h.

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

int VorbisDecodeInputPin::mSampleRate [protected]
 

Definition at line 83 of file VorbisDecodeInputPin.h.

Referenced by VorbisDecoded().

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, inherited]
 

Definition at line 106 of file AbstractTransformInputPin.h.

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

unsigned int VorbisDecodeInputPin::mUptoFrame [protected]
 

Definition at line 84 of file VorbisDecodeInputPin.h.

Referenced by NewSegment(), and VorbisDecoded().

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

Definition at line 88 of file AbstractTransformInputPin.h.

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

Definition at line 89 of file AbstractTransformInputPin.h.

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

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:05:22 2005 for oggdsf by  doxygen 1.3.9