libwebm: liberalize handling of reference blocks

Change-Id: I3df0235e005c57507eb974ad3754b4c800a99825
This commit is contained in:
matthewjheaney
2011-08-09 16:03:50 -04:00
parent 52f0a92192
commit 1ae4335c1c
2 changed files with 66 additions and 55 deletions

View File

@@ -149,9 +149,6 @@ class SimpleBlock : public BlockEntry
public:
SimpleBlock(Cluster*, long index, long long start, long long size);
//bool EOS() const;
//const Cluster* GetCluster() const;
//long GetIndex() const;
Kind GetKind() const;
const Block* GetBlock() const;
@@ -172,25 +169,22 @@ public:
long index,
long long block_start, //absolute pos of block's payload
long long block_size, //size of block's payload
short prev,
short next);
long long prev,
long long next,
long long duration);
//bool EOS() const;
//const Cluster* GetCluster() const;
//long GetIndex() const;
Kind GetKind() const;
const Block* GetBlock() const;
short GetPrevTimeCode() const; //relative to block's time
short GetNextTimeCode() const; //as above
long long GetPrevTimeCode() const; //relative to block's time
long long GetNextTimeCode() const; //as above
long long GetDuration() const;
private:
//BlockGroup(Cluster*, size_t, unsigned long);
//void ParseBlock(long long start, long long size);
Block m_block;
const short m_prev;
const short m_next;
const long long m_prev;
const long long m_next;
const long long m_duration;
};