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

LibVideo/VP9: Retain adjacent block contexts storage between frames

Re-allocating the storage is unnecessary, since the size will rarely
change during playback.
This commit is contained in:
Zaggy1024 2022-11-24 21:53:24 -06:00 committed by Andreas Kling
parent ea7a6f343b
commit 396972bb69
3 changed files with 11 additions and 2 deletions

View file

@ -175,6 +175,7 @@ private:
ReferenceFramePair m_comp_var_ref;
bool m_use_prev_frame_mvs;
Vector2D<FrameBlockContext> m_reusable_frame_block_contexts;
Vector2D<PersistentBlockContext> m_previous_block_contexts;
// Indexed by ReferenceFrame enum.
u8 m_mode_context[4] { INVALID_CASE };