diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-04 01:34:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 01:34:07 +0100 |
commit | 4bfa411ddcf3b5454c85ada70f28438feaaae93e (patch) | |
tree | bf7e27c7e5ba36ace45e36b93cc533835d7cfb91 /src/video_core/command_classes/codecs/h264.h | |
parent | Merge pull request #4887 from lioncash/common-build (diff) | |
parent | nvdec: Make use of [[nodiscard]] where applicable (diff) | |
download | yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.gz yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.bz2 yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.lz yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.xz yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.zst yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.zip |
Diffstat (limited to 'src/video_core/command_classes/codecs/h264.h')
-rw-r--r-- | src/video_core/command_classes/codecs/h264.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/command_classes/codecs/h264.h b/src/video_core/command_classes/codecs/h264.h index f2292fd2f..273449495 100644 --- a/src/video_core/command_classes/codecs/h264.h +++ b/src/video_core/command_classes/codecs/h264.h @@ -51,14 +51,14 @@ public: void WriteScalingList(const std::vector<u8>& list, s32 start, s32 count); /// Return the bitstream as a vector. - std::vector<u8>& GetByteArray(); - const std::vector<u8>& GetByteArray() const; + [[nodiscard]] std::vector<u8>& GetByteArray(); + [[nodiscard]] const std::vector<u8>& GetByteArray() const; private: void WriteBits(s32 value, s32 bit_count); void WriteExpGolombCodedInt(s32 value); void WriteExpGolombCodedUInt(u32 value); - s32 GetFreeBufferBits(); + [[nodiscard]] s32 GetFreeBufferBits(); void Flush(); s32 buffer_size{8}; @@ -74,8 +74,8 @@ public: ~H264(); /// Compose the H264 header of the frame for FFmpeg decoding - std::vector<u8>& ComposeFrameHeader(NvdecCommon::NvdecRegisters& state, - bool is_first_frame = false); + [[nodiscard]] const std::vector<u8>& ComposeFrameHeader(NvdecCommon::NvdecRegisters& state, + bool is_first_frame = false); private: struct H264ParameterSet { |