OggStream Class Reference

#include <OggStream.h>

Inheritance diagram for OggStream:

Inheritance graph
[legend]
Collaboration diagram for OggStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OggStream (OggPage *inBOSPage, OggDemuxSourceFilter *inOwningFilter, bool inAllowSeek)
virtual ~OggStream (void)
virtual void setLastEndGranPos (__int64 inGranPos)
unsigned long serialNo ()
void setSerialNo (unsigned long inSerialNo)
virtual bool InitCodec (StampedOggPacket *inOggPacket)=0
virtual BYTE * getFormatBlock ()=0
virtual unsigned long getFormatBlockSize ()=0
virtual GUID getMajorTypeGUID ()=0
virtual GUID getFormatGUID ()=0
virtual GUID getSubtypeGUID ()=0
virtual wstring getPinName ()=0
virtual bool createFormatBlock ()=0
virtual LONGLONG getCurrentPos ()=0
virtual unsigned long getNumBuffers ()=0
virtual unsigned long getBufferSize ()=0
virtual unsigned long numCodecHeaders ()
void setSendExcess (bool inSendExcess)
virtual CMediaType * createMediaType (GUID inMajorType, GUID inSubType, GUID inFormatType, unsigned long inFormatSize, BYTE *inFormatBlock)
virtual bool dispatchPacket (StampedOggPacket *inPacket)
virtual bool deliverCodecHeaders ()
virtual bool acceptOggPage (OggPage *inOggPage)
virtual OggDemuxSourcePingetPin ()
virtual bool AddPin ()
void setAllowDispatch (bool inAllowDispatch)
bool streamReady ()
void flush ()
void flush (unsigned short inNumPacketsToIgnore)

Protected Member Functions

virtual bool acceptStampedOggPacket (StampedOggPacket *inPacket)
virtual bool processHeaderPacket (StampedOggPacket *inPacket)
virtual bool processDataPacket (StampedOggPacket *inPacket)

Protected Attributes

OggPacketiser mPacketiser
StreamHeadersmCodecHeaders
vector< StampedOggPacket * > mExcessPackets
unsigned long mSerialNo
signed long mNumHeadersNeeded
bool mStreamReady
bool mFirstRun
bool mSendExcess
bool mAllowSeek
bool mAllowDispatch
__int64 mLastEndGranulePos
__int64 mLastStartGranulePos
OggDemuxSourcePinmSourcePin
OggDemuxSourceFiltermOwningFilter
CCritSec * mStreamLock

Constructor & Destructor Documentation

OggStream::OggStream OggPage inBOSPage,
OggDemuxSourceFilter inOwningFilter,
bool  inAllowSeek
 

Definition at line 34 of file OggStream.cpp.

References false, OggPage::header(), mPacketiser, mSerialNo, mStreamLock, OggPacketiser::setPacketSink(), OggPageHeader::StreamSerialNo(), and true.

Here is the call graph for this function:

OggStream::~OggStream void   )  [virtual]
 

Definition at line 65 of file OggStream.cpp.


Member Function Documentation

bool OggStream::acceptOggPage OggPage inOggPage  )  [virtual]
 

All callers to acceptOggPage give away their pointer to this function. All methods implementing this interface are responsible for deleting this page. All callers should NULL their pointer immediately after calling to avoid reusing them.

Implements IOggCallback.

Definition at line 228 of file OggStream.cpp.

References OggPacketiser::acceptOggPage(), OggPageHeader::GranulePos(), OggPage::header(), OggPageHeader::isBOS(), mLastEndGranulePos, mLastStartGranulePos, mOwningFilter, mPacketiser, and OggDemuxSourceFilter::mSeekTimeBase.

Here is the call graph for this function:

bool OggStream::acceptStampedOggPacket StampedOggPacket inPacket  )  [protected, virtual]
 

All callers to acceptStampedOggPacket give away their pointer to this function. All methods implementing this interface are responsible for deleting this page. All callers should NULL their pointer immediately after calling to avoid reusing them.

Implements IStampedOggPacketSink.

Definition at line 89 of file OggStream.cpp.

References AddPin(), deliverCodecHeaders(), mFirstRun, mNumHeadersNeeded, processDataPacket(), and processHeaderPacket().

Here is the call graph for this function:

bool OggStream::AddPin  )  [virtual]
 

Reimplemented in CMMLStream.

Definition at line 197 of file OggStream.cpp.

References createFormatBlock(), createMediaType(), getBufferSize(), getFormatBlock(), getFormatBlockSize(), getFormatGUID(), getMajorTypeGUID(), getNumBuffers(), getPinName(), getSubtypeGUID(), mAllowSeek, mCodecHeaders, mOwningFilter, mSourcePin, and mStreamReady.

Referenced by acceptStampedOggPacket().

Here is the call graph for this function:

virtual bool OggStream::createFormatBlock  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

CMediaType * OggStream::createMediaType GUID  inMajorType,
GUID  inSubType,
GUID  inFormatType,
unsigned long  inFormatSize,
BYTE *  inFormatBlock
[virtual]
 

Definition at line 159 of file OggStream.cpp.

Referenced by AddPin(), and CMMLStream::AddPin().

bool OggStream::deliverCodecHeaders  )  [virtual]
 

Reimplemented in FFDShowVideoStream, FLACStream, and OggFLAC_1_0_Stream.

Definition at line 263 of file OggStream.cpp.

References dispatchPacket(), StreamHeaders::getPacket(), mCodecHeaders, and StreamHeaders::numPackets().

Referenced by acceptStampedOggPacket().

Here is the call graph for this function:

bool OggStream::dispatchPacket StampedOggPacket inPacket  )  [virtual]
 

Reimplemented in FFDShowVideoStream.

Definition at line 274 of file OggStream.cpp.

References OggDemuxSourcePin::deliverOggPacket(), and mSourcePin.

Referenced by deliverCodecHeaders(), OggFLAC_1_0_Stream::deliverCodecHeaders(), FLACStream::deliverCodecHeaders(), FFDShowVideoStream::dispatchPacket(), and processDataPacket().

Here is the call graph for this function:

void OggStream::flush unsigned short  inNumPacketsToIgnore  ) 
 

Definition at line 187 of file OggStream.cpp.

References mPacketiser, mStreamLock, OggPacketiser::reset(), and OggPacketiser::setNumIgnorePackets().

Here is the call graph for this function:

void OggStream::flush  ) 
 

Definition at line 179 of file OggStream.cpp.

References mPacketiser, mStreamLock, and OggPacketiser::reset().

Referenced by OggDemuxSourceFilter::DeliverEndFlush(), and OggStreamMapper::toStartOfData().

Here is the call graph for this function:

virtual unsigned long OggStream::getBufferSize  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual LONGLONG OggStream::getCurrentPos  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

virtual BYTE* OggStream::getFormatBlock  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual unsigned long OggStream::getFormatBlockSize  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual GUID OggStream::getFormatGUID  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual GUID OggStream::getMajorTypeGUID  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual unsigned long OggStream::getNumBuffers  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

OggDemuxSourcePin * OggStream::getPin  )  [virtual]
 

Definition at line 154 of file OggStream.cpp.

Referenced by OggDemuxSourceFilter::DeliverBeginFlush(), OggDemuxSourceFilter::DeliverEndFlush(), OggDemuxSourceFilter::DeliverEOS(), OggDemuxSourceFilter::DeliverNewSegment(), and OggDemuxSourceFilter::GetPin().

virtual wstring OggStream::getPinName  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual GUID OggStream::getSubtypeGUID  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Referenced by AddPin().

virtual bool OggStream::InitCodec StampedOggPacket inOggPacket  )  [pure virtual]
 

Implemented in CMMLStream, FFDShowVideoStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

unsigned long OggStream::numCodecHeaders  )  [virtual]
 

Definition at line 174 of file OggStream.cpp.

References mCodecHeaders, and StreamHeaders::numPackets().

Here is the call graph for this function:

bool OggStream::processDataPacket StampedOggPacket inPacket  )  [protected, virtual]
 

Definition at line 141 of file OggStream.cpp.

References dispatchPacket().

Referenced by acceptStampedOggPacket().

Here is the call graph for this function:

bool OggStream::processHeaderPacket StampedOggPacket inPacket  )  [protected, virtual]
 

Reimplemented in FLACStream, and OggFLAC_1_0_Stream.

Definition at line 126 of file OggStream.cpp.

References StreamHeaders::addPacket(), mCodecHeaders, and mNumHeadersNeeded.

Referenced by acceptStampedOggPacket().

Here is the call graph for this function:

unsigned long OggStream::serialNo  ) 
 

Definition at line 83 of file OggStream.cpp.

void OggStream::setAllowDispatch bool  inAllowDispatch  ) 
 

Definition at line 86 of file OggStream.cpp.

References mAllowDispatch.

Referenced by OggStreamMapper::setAllowDispatch().

void OggStream::setLastEndGranPos __int64  inGranPos  )  [virtual]
 

Reimplemented in CMMLStream, FLACStream, OggFLAC_1_0_Stream, SpeexStream, TheoraStream, and VorbisStream.

Definition at line 223 of file OggStream.cpp.

References mLastEndGranulePos.

Referenced by OggDemuxSourceFilter::SetPositions().

void OggStream::setSendExcess bool  inSendExcess  ) 
 

Definition at line 259 of file OggStream.cpp.

References mSendExcess.

Referenced by OggDemuxSourceFilter::resetStream(), and OggDemuxSourceFilter::SetPositions().

void OggStream::setSerialNo unsigned long  inSerialNo  ) 
 

Definition at line 279 of file OggStream.cpp.

References mSerialNo.

bool OggStream::streamReady  ) 
 

Definition at line 78 of file OggStream.cpp.

Referenced by OggStreamMapper::isReady().


Member Data Documentation

bool OggStream::mAllowDispatch [protected]
 

Definition at line 116 of file OggStream.h.

Referenced by setAllowDispatch().

bool OggStream::mAllowSeek [protected]
 

Definition at line 115 of file OggStream.h.

Referenced by AddPin().

StreamHeaders* OggStream::mCodecHeaders [protected]
 

Definition at line 108 of file OggStream.h.

Referenced by AddPin(), deliverCodecHeaders(), numCodecHeaders(), and processHeaderPacket().

vector<StampedOggPacket*> OggStream::mExcessPackets [protected]
 

Definition at line 109 of file OggStream.h.

bool OggStream::mFirstRun [protected]
 

Definition at line 113 of file OggStream.h.

Referenced by acceptStampedOggPacket().

__int64 OggStream::mLastEndGranulePos [protected]
 

Definition at line 118 of file OggStream.h.

Referenced by acceptOggPage(), and setLastEndGranPos().

__int64 OggStream::mLastStartGranulePos [protected]
 

Definition at line 119 of file OggStream.h.

Referenced by acceptOggPage().

signed long OggStream::mNumHeadersNeeded [protected]
 

Definition at line 111 of file OggStream.h.

Referenced by acceptStampedOggPacket(), and processHeaderPacket().

OggDemuxSourceFilter* OggStream::mOwningFilter [protected]
 

Definition at line 122 of file OggStream.h.

Referenced by acceptOggPage(), and AddPin().

OggPacketiser OggStream::mPacketiser [protected]
 

Definition at line 106 of file OggStream.h.

Referenced by acceptOggPage(), flush(), and OggStream().

bool OggStream::mSendExcess [protected]
 

Definition at line 114 of file OggStream.h.

Referenced by setSendExcess().

unsigned long OggStream::mSerialNo [protected]
 

Definition at line 110 of file OggStream.h.

Referenced by OggStream(), and setSerialNo().

OggDemuxSourcePin* OggStream::mSourcePin [protected]
 

Definition at line 121 of file OggStream.h.

Referenced by AddPin(), and dispatchPacket().

CCritSec* OggStream::mStreamLock [protected]
 

Definition at line 123 of file OggStream.h.

Referenced by flush(), and OggStream().

bool OggStream::mStreamReady [protected]
 

Definition at line 112 of file OggStream.h.

Referenced by AddPin().


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