summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-30 03:45:33 +0100
committerLioncash <mathew1800@gmail.com>2020-10-30 03:57:35 +0100
commit12eeffcb7c7d9d97ee55c96a760dd1f655c1d507 (patch)
treeb5e0935b7d357421fc0f446c5427e76f1432a7dd
parentvp9: Mark functions with [[nodiscard]] where applicable (diff)
downloadyuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.tar
yuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.tar.gz
yuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.tar.bz2
yuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.tar.lz
yuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.tar.xz
yuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.tar.zst
yuzu-12eeffcb7c7d9d97ee55c96a760dd1f655c1d507.zip
-rw-r--r--src/video_core/command_classes/codecs/vp9.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.h b/src/video_core/command_classes/codecs/vp9.h
index 76b5a8283..05c9682fa 100644
--- a/src/video_core/command_classes/codecs/vp9.h
+++ b/src/video_core/command_classes/codecs/vp9.h
@@ -25,6 +25,12 @@ public:
VpxRangeEncoder();
~VpxRangeEncoder();
+ VpxRangeEncoder(const VpxRangeEncoder&) = delete;
+ VpxRangeEncoder& operator=(const VpxRangeEncoder&) = delete;
+
+ VpxRangeEncoder(VpxRangeEncoder&&) = default;
+ VpxRangeEncoder& operator=(VpxRangeEncoder&&) = default;
+
/// Writes the rightmost value_size bits from value into the stream
void Write(s32 value, s32 value_size);
@@ -59,6 +65,12 @@ public:
VpxBitStreamWriter();
~VpxBitStreamWriter();
+ VpxBitStreamWriter(const VpxBitStreamWriter&) = delete;
+ VpxBitStreamWriter& operator=(const VpxBitStreamWriter&) = delete;
+
+ VpxBitStreamWriter(VpxBitStreamWriter&&) = default;
+ VpxBitStreamWriter& operator=(VpxBitStreamWriter&&) = default;
+
/// Write an unsigned integer value
void WriteU(u32 value, u32 value_size);
@@ -99,6 +111,12 @@ public:
explicit VP9(GPU& gpu);
~VP9();
+ VP9(const VP9&) = delete;
+ VP9& operator=(const VP9&) = delete;
+
+ VP9(VP9&&) = default;
+ VP9& operator=(VP9&&) = delete;
+
/// Composes the VP9 frame from the GPU state information. Based on the official VP9 spec
/// documentation
std::vector<u8>& ComposeFrameHeader(NvdecCommon::NvdecRegisters& state);