libwebm: added BlockEntry::GetKind op
Change-Id: I7d7daac0d3b8be1b8839f96503250170f675e34d
This commit is contained in:
@@ -5145,11 +5145,18 @@ long Track::GetNext(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Track::EOSBlock::EOSBlock() : BlockEntry(NULL, LONG_MIN)
|
Track::EOSBlock::EOSBlock() :
|
||||||
|
BlockEntry(NULL, LONG_MIN)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BlockEntry::Kind Track::EOSBlock::GetKind() const
|
||||||
|
{
|
||||||
|
return kBlockEOS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Block* Track::EOSBlock::GetBlock() const
|
const Block* Track::EOSBlock::GetBlock() const
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -7802,6 +7809,12 @@ SimpleBlock::SimpleBlock(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BlockEntry::Kind SimpleBlock::GetKind() const
|
||||||
|
{
|
||||||
|
return kBlockSimple;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Block* SimpleBlock::GetBlock() const
|
const Block* SimpleBlock::GetBlock() const
|
||||||
{
|
{
|
||||||
return &m_block;
|
return &m_block;
|
||||||
@@ -7841,6 +7854,12 @@ void BlockGroup::ParseBlock(long long start, long long size)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
BlockEntry::Kind BlockGroup::GetKind() const
|
||||||
|
{
|
||||||
|
return kBlockGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Block* BlockGroup::GetBlock() const
|
const Block* BlockGroup::GetBlock() const
|
||||||
{
|
{
|
||||||
return &m_block;
|
return &m_block;
|
||||||
|
|||||||
@@ -121,6 +121,9 @@ public:
|
|||||||
long GetIndex() const;
|
long GetIndex() const;
|
||||||
virtual const Block* GetBlock() const = 0;
|
virtual const Block* GetBlock() const = 0;
|
||||||
|
|
||||||
|
enum Kind { kBlockEOS, kBlockSimple, kBlockGroup };
|
||||||
|
virtual Kind GetKind() const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Cluster* const m_pCluster;
|
Cluster* const m_pCluster;
|
||||||
const long m_index;
|
const long m_index;
|
||||||
@@ -139,6 +142,7 @@ public:
|
|||||||
//bool EOS() const;
|
//bool EOS() const;
|
||||||
//const Cluster* GetCluster() const;
|
//const Cluster* GetCluster() const;
|
||||||
//long GetIndex() const;
|
//long GetIndex() const;
|
||||||
|
Kind GetKind() const;
|
||||||
const Block* GetBlock() const;
|
const Block* GetBlock() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -164,6 +168,7 @@ public:
|
|||||||
//bool EOS() const;
|
//bool EOS() const;
|
||||||
//const Cluster* GetCluster() const;
|
//const Cluster* GetCluster() const;
|
||||||
//long GetIndex() const;
|
//long GetIndex() const;
|
||||||
|
Kind GetKind() const;
|
||||||
const Block* GetBlock() const;
|
const Block* GetBlock() const;
|
||||||
|
|
||||||
short GetPrevTimeCode() const; //relative to block's time
|
short GetPrevTimeCode() const; //relative to block's time
|
||||||
@@ -246,6 +251,7 @@ protected:
|
|||||||
//bool EOS() const;
|
//bool EOS() const;
|
||||||
//const Cluster* GetCluster() const;
|
//const Cluster* GetCluster() const;
|
||||||
//long GetIndex() const;
|
//long GetIndex() const;
|
||||||
|
Kind GetKind() const;
|
||||||
const Block* GetBlock() const;
|
const Block* GetBlock() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user