diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2021-11-14 23:03:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-14 23:03:56 +0100 |
| commit | 720970c4c1d71c67fa8af1e86c78d9141148729b (patch) | |
| tree | d33d5f3fe85da3811932b590ebe459eb6e08a5ac /src/video_core/command_classes/codecs/vp9.h | |
| parent | 30442d8a89fd42d9b7efea86e1b2461f09219936 (diff) | |
| parent | c50f17059730dc0566e1355fead9ac00d3b60e02 (diff) | |
Merge pull request #7326 from ameerj/vp8
codecs: Implement VP8 video decoding support
Diffstat (limited to 'src/video_core/command_classes/codecs/vp9.h')
| -rw-r--r-- | src/video_core/command_classes/codecs/vp9.h | 12 |
1 files changed, 8 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..2e735c792 100644 --- a/src/video_core/command_classes/codecs/vp9.h +++ b/src/video_core/command_classes/codecs/vp9.h @@ -116,16 +116,20 @@ 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 ComposeFrame(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; } + /// Returns a const reference to the composed frame data. + [[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> |
