moved seek function from segment to track

Change-Id: Ie34549cea4c5d961b6cc04ef229a3eadc1f0ee3b
This commit is contained in:
matthewjheaney
2010-11-22 15:57:25 -05:00
parent 9203d2dcd1
commit fd1d8006f0
2 changed files with 185 additions and 2 deletions

View File

@@ -244,6 +244,7 @@ public:
long GetFirst(const BlockEntry*&) const;
long GetNext(const BlockEntry* pCurr, const BlockEntry*& pNext) const;
virtual bool VetEntry(const BlockEntry*) const = 0;
virtual long Seek(long long time_ns, const BlockEntry*&) const = 0;
protected:
Track(Segment*, const Info&);
@@ -278,6 +279,7 @@ public:
double GetFrameRate() const;
bool VetEntry(const BlockEntry*) const;
long Seek(long long time_ns, const BlockEntry*&) const;
private:
long long m_width;
@@ -298,6 +300,7 @@ public:
long long GetChannels() const;
long long GetBitDepth() const;
bool VetEntry(const BlockEntry*) const;
long Seek(long long time_ns, const BlockEntry*&) const;
private:
double m_rate;
@@ -506,6 +509,8 @@ private:
class Segment
{
friend class Cues;
friend class VideoTrack;
friend class AudioTrack;
Segment(const Segment&);
Segment& operator=(const Segment&);
@@ -546,7 +551,7 @@ public:
const Cluster* GetNext(const Cluster*);
const Cluster* FindCluster(long long time_nanoseconds) const;
const BlockEntry* Seek(long long time_nanoseconds, const Track*) const;
//const BlockEntry* Seek(long long time_nanoseconds, const Track*) const;
private: