OggBinarySeeker Class Reference

#include <OggBinarySeeker.h>

Inheritance diagram for OggBinarySeeker:

Inheritance graph
[legend]
Collaboration diagram for OggBinarySeeker:

Collaboration 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

 OggBinarySeeker (void)
virtual ~OggBinarySeeker (void)
tSeekPair getStartPos (LOOG_INT64 inTime)
 Given a requested seek time in DirectShow units, returns the closest time and byte to the seek time.
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.
bool enabled ()
 Returns whether this table is enabled or disabled.

Protected Attributes

tSeekMap mSeekMap
tSeekMap::value_type mSeekValue
LOOG_INT64 mRealStartPos
bool mEnabled

Member Typedef Documentation

typedef map<LOOG_INT64, unsigned long> OggSeekTable::tSeekMap [inherited]
 

Definition at line 49 of file OggSeekTable.h.

Referenced by OggSeekTable::getSeekMap(), and main().

typedef pair<LOOG_INT64, unsigned long> OggSeekTable::tSeekPair [inherited]
 

Definition at line 48 of file OggSeekTable.h.

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


Constructor & Destructor Documentation

OggBinarySeeker::OggBinarySeeker void   ) 
 

Definition at line 4 of file OggBinarySeeker.cpp.

OggBinarySeeker::~OggBinarySeeker void   )  [virtual]
 

Definition at line 8 of file OggBinarySeeker.cpp.


Member Function Documentation

bool OggSeekTable::addSeekPoint LOOG_INT64  inTime,
unsigned long  inStartPos
[inherited]
 

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 OggSeekTable::mSeekMap.

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

bool OggSeekTable::enabled  )  [inherited]
 

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  )  [inherited]
 

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 OggSeekTable::tSeekMap.

Referenced by main().

OggSeekTable::tSeekPair OggBinarySeeker::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 from OggSeekTable.

Definition at line 12 of file OggBinarySeeker.cpp.

References OggSeekTable::tSeekPair.


Member Data Documentation

bool OggSeekTable::mEnabled [protected, inherited]
 

Definition at line 69 of file OggSeekTable.h.

LOOG_INT64 OggSeekTable::mRealStartPos [protected, inherited]
 

Definition at line 66 of file OggSeekTable.h.

tSeekMap OggSeekTable::mSeekMap [protected, inherited]
 

Definition at line 64 of file OggSeekTable.h.

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

tSeekMap::value_type OggSeekTable::mSeekValue [protected, inherited]
 

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:03:28 2005 for oggdsf by  doxygen 1.3.9