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

LibVideo/VP9: Choose whether/how to show new frames using an enum

There are three mutually exclusive frame-showing states:
- Show no new frame, only store the frame as a reference.
- Show a newly decoded frame.
- Show frame from the reference frame store.
Since they are mutually exclusive, using an enum rather than two bools
makes more sense.
This commit is contained in:
Zaggy1024 2022-11-22 21:36:36 -06:00 committed by Andreas Kling
parent befcd479ae
commit 3259c99cab
4 changed files with 24 additions and 9 deletions

View file

@ -149,7 +149,6 @@ private:
bool m_loop_filter_delta_enabled { false };
FrameType m_frame_type { FrameType::KeyFrame };
FrameType m_last_frame_type { FrameType::KeyFrame };
bool m_show_frame { false };
bool m_error_resilient_mode { false };
bool m_frame_is_intra { false };
u8 m_reset_frame_context { 0 };