SpeexEncodeInputPin Class Reference

#include <SpeexEncodeInputPin.h>

Inheritance diagram for SpeexEncodeInputPin:

Inheritance graph
[legend]
Collaboration diagram for SpeexEncodeInputPin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SpeexEncodeInputPin (AbstractTransformFilter *inFilter, CCritSec *inFilterLock, AbstractTransformOutputPin *inOutputPin, vector< CMediaType * > inAcceptableMediaTypes)
virtual ~SpeexEncodeInputPin (void)
virtual HRESULT SetMediaType (const CMediaType *inMediaType)
DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
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 ()
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)

Static Public Member Functions

int __cdecl SpeexEncoded (FishSound *inFishSound, unsigned char *inPacketData, long inNumBytes, void *inThisPointer)

Protected Member Functions

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

Protected Attributes

HRESULT mHR
WAVEFORMATEX * mWaveFormat
__int64 mUptoFrame
FishSoundmFishSound
FishSoundInfo mFishInfo
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

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

Definition at line 35 of file SpeexEncodeInputPin.cpp.

SpeexEncodeInputPin::~SpeexEncodeInputPin void   )  [virtual]
 

Definition at line 45 of file SpeexEncodeInputPin.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 SpeexEncodeInputPin::ConstructCodec  )  [protected, virtual]
 

Implements AbstractTransformInputPin.

Definition at line 86 of file SpeexEncodeInputPin.cpp.

References FishSoundInfo::channels, fish_sound_command(), fish_sound_new(), fish_sound_set_encoded_callback(), FishSoundInfo::format, mFishInfo, mFishSound, mWaveFormat, FishSoundInfo::samplerate, and SpeexEncoded().

Referenced by SetMediaType().

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 SpeexEncodeInputPin::DestroyCodec  )  [protected, virtual]
 

Implements AbstractTransformInputPin.

Definition at line 108 of file SpeexEncodeInputPin.cpp.

References fish_sound_delete(), and mFishSound.

Referenced by ~SpeexEncodeInputPin().

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

Reimplemented in FLACDecodeInputPin, SpeexDecodeInputPin, and VorbisDecodeInputPin.

Definition at line 162 of file AbstractTransformInputPin.cpp.

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

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

Definition at line 100 of file AbstractTransformInputPin.cpp.

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

Referenced by SpeexDecodeInputPin::SpeexDecoded(), 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(), 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 SpeexEncodeInputPin::SetMediaType const CMediaType *  inMediaType  )  [virtual]
 

Implements AbstractTransformInputPin.

Definition at line 178 of file SpeexEncodeInputPin.cpp.

References ConstructCodec(), and mWaveFormat.

Here is the call graph for this function:

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(), 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.

int SpeexEncodeInputPin::SpeexEncoded FishSound inFishSound,
unsigned char *  inPacketData,
long  inNumBytes,
void *  inThisPointer
[static]
 

Definition at line 115 of file SpeexEncodeInputPin.cpp.

References fish_sound_get_frameno(), FishSound, mFishSound, AbstractTransformInputPin::mOutputPin, mUptoFrame, AbstractTransformInputPin::Receive(), and AbstractTransformInputPin::SetSampleParams().

Referenced by ConstructCodec().

Here is the call graph for this function:

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

Implements AbstractTransformInputPin.

Definition at line 53 of file SpeexEncodeInputPin.cpp.

References FishSoundInfo::channels, fish_sound_encode(), mFishInfo, and mFishSound.

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().

FishSoundInfo SpeexEncodeInputPin::mFishInfo [protected]
 

Definition at line 71 of file SpeexEncodeInputPin.h.

Referenced by ConstructCodec(), and TransformData().

FishSound* SpeexEncodeInputPin::mFishSound [protected]
 

Definition at line 70 of file SpeexEncodeInputPin.h.

Referenced by ConstructCodec(), DestroyCodec(), SpeexEncoded(), and TransformData().

HRESULT SpeexEncodeInputPin::mHR [protected]
 

Reimplemented from AbstractTransformInputPin.

Definition at line 59 of file SpeexEncodeInputPin.h.

AbstractTransformOutputPin* AbstractTransformInputPin::mOutputPin [protected, inherited]
 

Definition at line 101 of file AbstractTransformInputPin.h.

Referenced by SpeexDecodeInputPin::SpeexDecoded(), SpeexEncoded(), VorbisDecodeInputPin::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().

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().

__int64 SpeexEncodeInputPin::mUptoFrame [protected]
 

Definition at line 67 of file SpeexEncodeInputPin.h.

Referenced by SpeexEncoded().

WAVEFORMATEX* SpeexEncodeInputPin::mWaveFormat [protected]
 

Definition at line 66 of file SpeexEncodeInputPin.h.

Referenced by ConstructCodec(), and SetMediaType().

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:04:55 2005 for oggdsf by  doxygen 1.3.9