diff options
| author | bunnei <bunneidev@gmail.com> | 2021-08-06 17:46:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-06 17:46:46 -0700 |
| commit | f183668a872bc127da3f605a44e2f33174b3294e (patch) | |
| tree | 9ef9f561b3001e5241d4bccf90591f4caab2f2dd /src/video_core/command_classes/codecs/vp9.h | |
| parent | 42d8e08f7847af3b8e8ceea14ad7193fdbdf53ef (diff) | |
| parent | 156ea746a3459cb8db676946b532d0c6363f0b52 (diff) | |
Merge pull request #6799 from ameerj/vp9-fixes
nvdec: Fix VP9 reference frame refreshes
Diffstat (limited to 'src/video_core/command_classes/codecs/vp9.h')
| -rw-r--r-- | src/video_core/command_classes/codecs/vp9.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.h b/src/video_core/command_classes/codecs/vp9.h index 8396c8105..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{}; - bool swap_next_golden{}; + 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 |
