NativeFLACSourcePin Class Reference

#include <NativeFLACSourcePin.h>

Inheritance diagram for NativeFLACSourcePin:

Inheritance graph
[legend]
Collaboration diagram for NativeFLACSourcePin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLARE_IUNKNOWN STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)
 NativeFLACSourcePin (NativeFLACSourceFilter *inParentFilter, CCritSec *inFilterLock)
virtual ~NativeFLACSourcePin (void)
virtual HRESULT GetMediaType (int inPosition, CMediaType *outMediaType)
virtual HRESULT CheckMediaType (const CMediaType *inMediaType)
virtual HRESULT DecideBufferSize (IMemAllocator *inoutAllocator, ALLOCATOR_PROPERTIES *inoutInputRequest)
virtual HRESULT CompleteConnect (IPin *inReceivePin)
virtual HRESULT BreakConnect (void)
virtual HRESULT DeliverNewSegment (REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate)
virtual HRESULT DeliverEndOfStream (void)
virtual HRESULT DeliverEndFlush (void)
virtual HRESULT DeliverBeginFlush (void)
HRESULT deliverData (unsigned char *inBuff, unsigned long inBuffSize, __int64 inStart, __int64 inEnd)
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 Attributes

const unsigned long BUFFER_SIZE = 65536
const unsigned long NUM_BUFFERS = 10

Protected Attributes

HRESULT mFilterHR
COutputQueue * mDataQueue
NativeFLACSourceFiltermParentFilter
IMediaSeeking * mSeekDelegate
HRESULT mHR
DWORD mSeekingCap

Constructor & Destructor Documentation

NativeFLACSourcePin::NativeFLACSourcePin NativeFLACSourceFilter inParentFilter,
CCritSec *  inFilterLock
 

Definition at line 34 of file NativeFLACSourcePin.cpp.

References BasicSeekPassThrough::SetDelegate().

Here is the call graph for this function:

NativeFLACSourcePin::~NativeFLACSourcePin void   )  [virtual]
 

Definition at line 47 of file NativeFLACSourcePin.cpp.

References mDataQueue, and BasicSeekPassThrough::SetDelegate().

Here is the call graph for this function:


Member Function Documentation

HRESULT NativeFLACSourcePin::BreakConnect void   )  [virtual]
 

Definition at line 101 of file NativeFLACSourcePin.cpp.

References mDataQueue.

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

Reimplemented in OggDemuxSourceFilter.

Definition at line 125 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

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

Definition at line 131 of file NativeFLACSourcePin.cpp.

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

Definition at line 88 of file NativeFLACSourcePin.cpp.

References FALSE, mDataQueue, mFilterHR, NUM_BUFFERS, and TRUE.

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.

HRESULT NativeFLACSourcePin::DecideBufferSize IMemAllocator *  inoutAllocator,
ALLOCATOR_PROPERTIES *  inoutInputRequest
[virtual]
 

Definition at line 138 of file NativeFLACSourcePin.cpp.

HRESULT NativeFLACSourcePin::DeliverBeginFlush void   )  [virtual]
 

Definition at line 82 of file NativeFLACSourcePin.cpp.

References mDataQueue.

Referenced by NativeFLACSourceFilter::SetPositions(), and NativeFLACSourceFilter::Stop().

HRESULT NativeFLACSourcePin::deliverData unsigned char *  inBuff,
unsigned long  inBuffSize,
__int64  inStart,
__int64  inEnd
 

Definition at line 161 of file NativeFLACSourcePin.cpp.

References mDataQueue, and TRUE.

Referenced by NativeFLACSourceFilter::write_callback().

HRESULT NativeFLACSourcePin::DeliverEndFlush void   )  [virtual]
 

Definition at line 76 of file NativeFLACSourcePin.cpp.

References mDataQueue.

Referenced by NativeFLACSourceFilter::SetPositions(), and NativeFLACSourceFilter::Stop().

HRESULT NativeFLACSourcePin::DeliverEndOfStream void   )  [virtual]
 

Definition at line 70 of file NativeFLACSourcePin.cpp.

References mDataQueue.

Referenced by NativeFLACSourceFilter::DataProcessLoop().

HRESULT NativeFLACSourcePin::DeliverNewSegment REFERENCE_TIME  tStart,
REFERENCE_TIME  tStop,
double  dRate
[virtual]
 

Definition at line 64 of file NativeFLACSourcePin.cpp.

References mDataQueue.

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 NativeFLACSourcePin::GetMediaType int  inPosition,
CMediaType *  outMediaType
[virtual]
 

Definition at line 108 of file NativeFLACSourcePin.cpp.

References FALSE, NativeFLACSourceFilter::mBitsPerSample, NativeFLACSourceFilter::mNumChannels, mParentFilter, and NativeFLACSourceFilter::mSampleRate.

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 NativeFLACSourcePin::NonDelegatingQueryInterface REFIID  riid,
void **  ppv
 

Definition at line 54 of file NativeFLACSourcePin.cpp.

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

Reimplemented in OggDemuxSourceFilter.

Definition at line 171 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.

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(), OggDemuxSourcePin::OggDemuxSourcePin(), OggMuxFilter::OggMuxFilter(), ~NativeFLACSourcePin(), and OggMuxFilter::~OggMuxFilter().

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.

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

Reimplemented in OggDemuxSourceFilter.

Definition at line 189 of file BasicSeekPassThrough.cpp.

References BasicSeekPassThrough::mSeekDelegate.


Member Data Documentation

const unsigned long NativeFLACSourcePin::BUFFER_SIZE = 65536 [static]
 

Definition at line 57 of file NativeFLACSourcePin.h.

COutputQueue* NativeFLACSourcePin::mDataQueue [protected]
 

Definition at line 79 of file NativeFLACSourcePin.h.

Referenced by BreakConnect(), CompleteConnect(), DeliverBeginFlush(), deliverData(), DeliverEndFlush(), DeliverEndOfStream(), DeliverNewSegment(), and ~NativeFLACSourcePin().

HRESULT NativeFLACSourcePin::mFilterHR [protected]
 

Definition at line 76 of file NativeFLACSourcePin.h.

Referenced by CompleteConnect().

HRESULT BasicSeekPassThrough::mHR [protected, inherited]
 

Reimplemented in FLACEncodeInputPin, SpeexEncodeInputPin, TheoraEncodeInputPin, VorbisDecodeInputPin, VorbisEncodeInputPin, OggMuxFilter, AbstractTransformInputPin, and AbstractTransformOutputPin.

Definition at line 76 of file BasicSeekPassThrough.h.

NativeFLACSourceFilter* NativeFLACSourcePin::mParentFilter [protected]
 

Definition at line 80 of file NativeFLACSourcePin.h.

Referenced by GetMediaType().

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

const unsigned long NativeFLACSourcePin::NUM_BUFFERS = 10 [static]
 

Definition at line 58 of file NativeFLACSourcePin.h.

Referenced by CompleteConnect().


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