libwebm: added GetLacing selector function for Block
Change-Id: I77bff875919f7a57a8c838beb05bc9a992cadacd
This commit is contained in:
parent
a9c65fbbc0
commit
ffe5a8e548
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user