mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:17:34 +00:00
LibVideo/VP9: Refactor how TreeParser accesses decoder data
The TreeParser requires information about a lot of the decoder's current state in order to parse syntax tree elements correctly, so there has to be some communication between the Decoder and the TreeParser. Previously, the Decoder would copy its state to the TreeParser when it changed, however, this was a poor choice. Now, the TreeParser simply has a reference to its owning Decoder, and accesses its state directly.
This commit is contained in:
parent
375dbad144
commit
741677b992
4 changed files with 47 additions and 88 deletions
|
@ -17,6 +17,8 @@
|
|||
namespace Video::VP9 {
|
||||
|
||||
class Decoder {
|
||||
friend class TreeParser;
|
||||
|
||||
public:
|
||||
Decoder();
|
||||
~Decoder();
|
||||
|
@ -158,6 +160,13 @@ private:
|
|||
bool m_available_l { false };
|
||||
int m_segment_id { 0 };
|
||||
int m_skip { false };
|
||||
u8 m_num_8x8 { 0 };
|
||||
bool m_has_rows { false };
|
||||
bool m_has_cols { false };
|
||||
TXSize m_max_tx_size { TX_4x4 };
|
||||
u8 m_block_subsize { 0 };
|
||||
u32 m_row { 0 };
|
||||
u32 m_col { 0 };
|
||||
|
||||
bool m_use_hp { false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue