#include <OggGranuleSeekTable.h>
Public Types | |
| typedef pair< unsigned long, LOOG_INT64 > | tGranulePair |
| A Pair consitsing of a byte position and a granule pos. | |
| typedef map< LOOG_INT64, tGranulePair > | tSeekMap |
| typedef pair< LOOG_INT64, tGranulePair > | tSeekPair |
| A pair consiting of a real time, and a granule pair, making a triplet. | |
Public Member Functions | |
| bool | addSeekPoint (LOOG_INT64 inTime, unsigned long mStartPos, LOOG_INT64 inGranulePos) |
| Add a seek point (which consists of a time in DirectShow units, and a byte offset corresponding to that time, and a granule pos) to the seek table. | |
| bool | enabled () |
| Returns whether this table is enabled or disabled. | |
| tSeekMap | getSeekMap () |
| Returns a copy of 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. | |
| OggGranuleSeekTable (void) | |
| virtual | ~OggGranuleSeekTable (void) |
Protected Attributes | |
| bool | mEnabled |
| LOOG_INT64 | mRealStartPos |
| tSeekMap | mSeekMap |
| tSeekMap::value_type | mSeekValue |
Private Member Functions | |
| OggGranuleSeekTable (const OggGranuleSeekTable &) | |
| OggGranuleSeekTable & | operator= (const OggGranuleSeekTable &) |
|
|
A Pair consitsing of a byte position and a granule pos.
Definition at line 52 of file OggGranuleSeekTable.h. Referenced by addSeekPoint(). |
|
|
Definition at line 56 of file OggGranuleSeekTable.h. Referenced by getSeekMap(). |
|
|
A pair consiting of a real time, and a granule pair, making a triplet.
Definition at line 55 of file OggGranuleSeekTable.h. Referenced by getStartPos(), AutoOggChainGranuleSeekTable::seekPos(), and OggDemuxPacketSourceFilter::SetPositions(). |
|
|
Definition at line 35 of file OggGranuleSeekTable.cpp. |
|
|
Definition at line 44 of file OggGranuleSeekTable.cpp. |
|
|
|
|
||||||||||||||||
|
Add a seek point (which consists of a time in DirectShow units, and a byte offset corresponding to that time, and a granule pos) to the seek table.
Definition at line 52 of file OggGranuleSeekTable.cpp. References mSeekMap, and tGranulePair. Referenced by AutoOggChainGranuleSeekTable::acceptOggPage(). |
|
|
Returns whether this table is enabled or disabled.
Definition at line 49 of file OggGranuleSeekTable.cpp. |
|
|
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 84 of file OggGranuleSeekTable.cpp. References tSeekMap. |
|
|
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. Definition at line 71 of file OggGranuleSeekTable.cpp. |
|
|
|
|
|
Definition at line 76 of file OggGranuleSeekTable.h. |
|
|
Definition at line 73 of file OggGranuleSeekTable.h. |
|
|
Definition at line 71 of file OggGranuleSeekTable.h. Referenced by addSeekPoint(), getStartPos(), and OggGranuleSeekTable(). |
|
|
Definition at line 72 of file OggGranuleSeekTable.h. |
1.3.9