libwebm: added GetLacing selector function for Block

Change-Id: I77bff875919f7a57a8c838beb05bc9a992cadacd
This commit is contained in:
matthewjheaney 2011-04-05 07:25:56 -07:00
parent a9c65fbbc0
commit ffe5a8e548
2 changed files with 10 additions and 0 deletions

View File

@ -8193,6 +8193,13 @@ bool Block::IsInvisible() const
}
Block::Lacing Block::GetLacing() const
{
const int value = int(m_flags & 0x06) >> 1;
return static_cast<Lacing>(value);
}
int Block::GetFrameCount() const
{
return m_frame_count;

View File

@ -83,6 +83,9 @@ public:
void SetKey(bool);
bool IsInvisible() const;
enum Lacing { kLacingNone, kLacingXiph, kLacingFixed, kLacingEbml };
Lacing GetLacing() const;
int GetFrameCount() const; //to index frames: [0, count)
struct Frame