1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

LibVideo/VP9: Store tile counts in FrameContext

The log2 of tile counts in the horizontal and vertical dimensions are
now stored in the FrameContext struct to be kept only as long as they
are needed.
This commit is contained in:
Zaggy1024 2022-11-25 05:05:00 -06:00 committed by Andreas Kling
parent 6533c5f6a8
commit 368687a74f
3 changed files with 33 additions and 33 deletions

View file

@ -69,9 +69,7 @@ private:
DecoderErrorOr<i8> read_delta_q();
DecoderErrorOr<void> segmentation_params();
DecoderErrorOr<u8> read_prob();
DecoderErrorOr<void> tile_info(FrameContext&);
u16 calc_min_log2_tile_cols(u32 superblock_columns);
u16 calc_max_log2_tile_cols(u32 superblock_columns);
DecoderErrorOr<void> parse_tile_counts(FrameContext&);
void setup_past_independence();
/* (6.3) Compressed Header Syntax */
@ -156,8 +154,6 @@ private:
bool m_segmentation_update_map { false };
bool m_segmentation_temporal_update { false };
bool m_segmentation_abs_or_delta_update { false };
u16 m_tile_cols_log2 { 0 };
u16 m_tile_rows_log2 { 0 };
// FIXME: Move above and left contexts to structs
Array<Vector<bool>, 3> m_above_nonzero_context;