summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs/vp9.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-11-13 01:28:21 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-11-13 01:49:45 +0100
commitb39b33b1fe1a396bb2f9841d48a1cb45cbfde806 (patch)
tree75517c706c67c3329c0cd6436a2a6397f3dddf24 /src/video_core/command_classes/codecs/vp9.h
parentMerge pull request #7320 from OatmealDome/homebrew-capabilities (diff)
downloadyuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.tar
yuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.tar.gz
yuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.tar.bz2
yuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.tar.lz
yuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.tar.xz
yuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.tar.zst
yuzu-b39b33b1fe1a396bb2f9841d48a1cb45cbfde806.zip
Diffstat (limited to 'src/video_core/command_classes/codecs/vp9.h')
-rw-r--r--src/video_core/command_classes/codecs/vp9.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.h b/src/video_core/command_classes/codecs/vp9.h
index e6e9fc17e..6ab9ef5b5 100644
--- a/src/video_core/command_classes/codecs/vp9.h
+++ b/src/video_core/command_classes/codecs/vp9.h
@@ -116,16 +116,19 @@ public:
VP9(VP9&&) = default;
VP9& operator=(VP9&&) = delete;
- /// Composes the VP9 frame from the GPU state information. Based on the official VP9 spec
- /// documentation
- [[nodiscard]] const std::vector<u8>& ComposeFrameHeader(
- const NvdecCommon::NvdecRegisters& state);
+ /// Composes the VP9 frame from the GPU state information.
+ /// Based on the official VP9 spec documentation
+ void ComposeFrameHeader(const NvdecCommon::NvdecRegisters& state);
/// Returns true if the most recent frame was a hidden frame.
[[nodiscard]] bool WasFrameHidden() const {
return !current_frame_info.show_frame;
}
+ [[nodiscard]] const std::vector<u8>& GetFrameBytes() const {
+ return frame;
+ }
+
private:
/// Generates compressed header probability updates in the bitstream writer
template <typename T, std::size_t N>