diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 02:46:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 02:46:46 +0200 |
commit | f183668a872bc127da3f605a44e2f33174b3294e (patch) | |
tree | 9ef9f561b3001e5241d4bccf90591f4caab2f2dd /src/video_core/command_classes/codecs/vp9.h | |
parent | Merge pull request #6822 from yzct12345/clion-assert (diff) | |
parent | nvhost_nvdec_common: Remove BufferMap (diff) | |
download | yuzu-f183668a872bc127da3f605a44e2f33174b3294e.tar yuzu-f183668a872bc127da3f605a44e2f33174b3294e.tar.gz yuzu-f183668a872bc127da3f605a44e2f33174b3294e.tar.bz2 yuzu-f183668a872bc127da3f605a44e2f33174b3294e.tar.lz yuzu-f183668a872bc127da3f605a44e2f33174b3294e.tar.xz yuzu-f183668a872bc127da3f605a44e2f33174b3294e.tar.zst yuzu-f183668a872bc127da3f605a44e2f33174b3294e.zip |
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 |