summaryrefslogtreecommitdiffstats
path: root/src/video_core/host1x/codecs/vp9.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-06-25 03:58:23 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-07-01 03:49:59 +0200
commit310b6cf4af940fa07666400426bbcca815c5375c (patch)
treed3de4ddab952c5404be38035ece48773c0be41ac /src/video_core/host1x/codecs/vp9.h
parentring_buffer: Fix const usage on std::span (diff)
downloadyuzu-310b6cf4af940fa07666400426bbcca815c5375c.tar
yuzu-310b6cf4af940fa07666400426bbcca815c5375c.tar.gz
yuzu-310b6cf4af940fa07666400426bbcca815c5375c.tar.bz2
yuzu-310b6cf4af940fa07666400426bbcca815c5375c.tar.lz
yuzu-310b6cf4af940fa07666400426bbcca815c5375c.tar.xz
yuzu-310b6cf4af940fa07666400426bbcca815c5375c.tar.zst
yuzu-310b6cf4af940fa07666400426bbcca815c5375c.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/host1x/codecs/vp9.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/host1x/codecs/vp9.h b/src/video_core/host1x/codecs/vp9.h
index d4083e8d3..f1ed19508 100644
--- a/src/video_core/host1x/codecs/vp9.h
+++ b/src/video_core/host1x/codecs/vp9.h
@@ -4,9 +4,11 @@
#pragma once
#include <array>
+#include <span>
#include <vector>
#include "common/common_types.h"
+#include "common/scratch_buffer.h"
#include "common/stream.h"
#include "video_core/host1x/codecs/vp9_types.h"
#include "video_core/host1x/nvdec_common.h"
@@ -128,8 +130,8 @@ public:
return !current_frame_info.show_frame;
}
- /// Returns a const reference to the composed frame data.
- [[nodiscard]] const std::vector<u8>& GetFrameBytes() const {
+ /// Returns a const span to the composed frame data.
+ [[nodiscard]] std::span<const u8> GetFrameBytes() const {
return frame;
}
@@ -181,7 +183,7 @@ private:
[[nodiscard]] VpxBitStreamWriter ComposeUncompressedHeader();
Host1x::Host1x& host1x;
- std::vector<u8> frame;
+ Common::ScratchBuffer<u8> frame;
std::array<s8, 4> loop_filter_ref_deltas{};
std::array<s8, 2> loop_filter_mode_deltas{};