diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-08-02 00:08:41 -0400 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-08-06 20:08:11 -0400 |
| commit | e3688f0627aa460bffb9b79c7a45e4ed615a1fa7 (patch) | |
| tree | 220c85d30b56a5b30174956a1cd0ff2dea8de9f9 /src/video_core/command_classes/codecs/vp9.h | |
| parent | a3f80a97a3f82dd739febc2cee496b2016eb282a (diff) | |
vp9: Cleanup unused variables
With reference frames refreshes fix, we no longer need to buffer two frames in advance.
We can also remove other unused or otherwise unneeded variables.
Diffstat (limited to 'src/video_core/command_classes/codecs/vp9.h')
| -rw-r--r-- | src/video_core/command_classes/codecs/vp9.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.h b/src/video_core/command_classes/codecs/vp9.h index bb4d0d972..e6e9fc17e 100644 --- a/src/video_core/command_classes/codecs/vp9.h +++ b/src/video_core/command_classes/codecs/vp9.h @@ -14,7 +14,6 @@ namespace Tegra { class GPU; -enum class FrameType { KeyFrame = 0, InterFrame = 1 }; namespace Decoder { /// The VpxRangeEncoder, and VpxBitStreamWriter classes are used to compose the @@ -124,7 +123,7 @@ public: /// Returns true if the most recent frame was a hidden frame. [[nodiscard]] bool WasFrameHidden() const { - return hidden; + return !current_frame_info.show_frame; } private: @@ -178,19 +177,12 @@ private: std::array<s8, 4> loop_filter_ref_deltas{}; std::array<s8, 2> loop_filter_mode_deltas{}; - bool hidden = false; - s64 current_frame_number = -2; // since we buffer 2 frames - s32 grace_period = 6; // frame offsets need to stabilize - std::array<FrameContexts, 4> frame_ctxs{}; Vp9FrameContainer next_frame{}; - Vp9FrameContainer next_next_frame{}; + std::array<Vp9EntropyProbs, 4> frame_ctxs{}; bool swap_ref_indices{}; Vp9PictureInfo current_frame_info{}; Vp9EntropyProbs prev_frame_probs{}; - - s32 diff_update_probability = 252; - s32 frame_sync_code = 0x498342; }; } // namespace Decoder |
