OggSeekTable Class Reference

#include <OggSeekTable.h>

Inheritance diagram for OggSeekTable:

Inheritance graph
[legend]
List of all members.

Public Types

typedef pair< LOOG_INT64,
unsigned long > 
tSeekPair
typedef map< LOOG_INT64, unsigned
long > 
tSeekMap

Public Member Functions

 OggSeekTable (void)
virtual ~OggSeekTable (void)
tSeekMap getSeekMap ()
 Returns a copy of the seek table.
bool addSeekPoint (LOOG_INT64 inTime, unsigned long inStartPos)
 Add a seek point (which consists of a time in DirectShow units, and a byte offset corresponding to that time) to the seek table.
tSeekPair getStartPos (LOOG_INT64 inTime)
 Given a requested seek time in DirectShow units, returns the closest time and byte to the seek time.
bool enabled ()
 Returns whether this table is enabled or disabled.

Protected Attributes

tSeekMap mSeekMap
tSeekMap::value_type mSeekValue
LOOG_INT64 mRealStartPos
bool mEnabled

Private Member Functions

 OggSeekTable (const OggSeekTable &)
OggSeekTableoperator= (const OggSeekTable &)

Member Typedef Documentation

typedef map<LOOG_INT64, unsigned long> OggSeekTable::tSeekMap
 

Definition at line 49 of file OggSeekTable.h.

Referenced by getSeekMap(), and main().

typedef pair<LOOG_INT64, unsigned long> OggSeekTable::tSeekPair
 

Definition at line 48 of file OggSeekTable.h.

Referenced by getStartPos(), OggBinarySeeker::getStartPos(), main(), and OggDemuxSourceFilter::SetPositions().


Constructor & Destructor Documentation

OggSeekTable::OggSeekTable void   ) 
 

Definition at line 35 of file OggSeekTable.cpp.

References mSeekMap, and true.

OggSeekTable::~OggSeekTable void   )  [virtual]
 

Definition at line 44 of file OggSeekTable.cpp.

OggSeekTable::OggSeekTable const OggSeekTable  )  [private]
 


Member Function Documentation

bool OggSeekTable::addSeekPoint LOOG_INT64  inTime,
unsigned long  inStartPos
 

Add a seek point (which consists of a time in DirectShow units, and a byte offset corresponding to that time) to the seek table.

Definition at line 52 of file OggSeekTable.cpp.

References mSeekMap.

Referenced by AutoOggSeekTable::acceptOggPage(), AutoOggSeekTable::buildTable(), AutoOggSeekTable::buildTableFromBuffer(), AutoOggSeekTable::buildTableFromFile(), and main().

bool OggSeekTable::enabled  ) 
 

Returns whether this table is enabled or disabled.

Definition at line 49 of file OggSeekTable.cpp.

Referenced by OggDemuxSourceFilter::GetAvailable(), OggDemuxSourceFilter::GetCapabilities(), OggDemuxSourceFilter::GetDuration(), OggDemuxSourceFilter::GetStopPosition(), and OggDemuxSourceFilter::SetPositions().

OggSeekTable::tSeekMap OggSeekTable::getSeekMap  ) 
 

Returns a copy of the seek table.

Note that this method returns a copy of the seek table, not the actual seek table used by the class. So, feel free to corrupt your copy to your heart's leisure.

Definition at line 80 of file OggSeekTable.cpp.

References tSeekMap.

Referenced by main().

OggSeekTable::tSeekPair OggSeekTable::getStartPos LOOG_INT64  inTime  ) 
 

Given a requested seek time in DirectShow units, returns the closest time and byte to the seek time.

Returns a tSeekPair whose first element is the actual closest possible time that can be seeked to (which will always be either before or at the requested seek position). The second element is the number of bytes into the stream where the first page of the actual seek time occurs.

Reimplemented in OggBinarySeeker.

Definition at line 67 of file OggSeekTable.cpp.

References mSeekMap, and tSeekPair.

Referenced by main(), AnnodexRecomposer::recomposeStreamFrom(), and OggDemuxSourceFilter::SetPositions().

OggSeekTable& OggSeekTable::operator= const OggSeekTable  )  [private]
 


Member Data Documentation

bool OggSeekTable::mEnabled [protected]
 

Definition at line 69 of file OggSeekTable.h.

LOOG_INT64 OggSeekTable::mRealStartPos [protected]
 

Definition at line 66 of file OggSeekTable.h.

tSeekMap OggSeekTable::mSeekMap [protected]
 

Definition at line 64 of file OggSeekTable.h.

Referenced by addSeekPoint(), getStartPos(), and OggSeekTable().

tSeekMap::value_type OggSeekTable::mSeekValue [protected]
 

Definition at line 65 of file OggSeekTable.h.


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