diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2021-06-29 06:54:54 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2021-07-01 07:22:05 +0200 |
commit | 208a04dcffe8142070bd8136b42def6a3233bb0f (patch) | |
tree | 60814ffb191978100a259ee230989a6f255a4460 /src/video_core/command_classes/nvdec.h | |
parent | Merge pull request #6529 from ReinUsesLisp/reaper-fixups (diff) | |
download | yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.tar yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.tar.gz yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.tar.bz2 yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.tar.lz yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.tar.xz yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.tar.zst yuzu-208a04dcffe8142070bd8136b42def6a3233bb0f.zip |
Diffstat (limited to 'src/video_core/command_classes/nvdec.h')
-rw-r--r-- | src/video_core/command_classes/nvdec.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/video_core/command_classes/nvdec.h b/src/video_core/command_classes/nvdec.h index e66be80b8..6e1da0b04 100644 --- a/src/video_core/command_classes/nvdec.h +++ b/src/video_core/command_classes/nvdec.h @@ -14,16 +14,11 @@ class GPU; class Nvdec { public: - enum class Method : u32 { - SetVideoCodec = 0x80, - Execute = 0xc0, - }; - explicit Nvdec(GPU& gpu); ~Nvdec(); /// Writes the method into the state, Invoke Execute() if encountered - void ProcessMethod(Method method, u32 argument); + void ProcessMethod(u32 method, u32 argument); /// Return most recently decoded frame [[nodiscard]] AVFramePtr GetFrame(); @@ -33,6 +28,7 @@ private: void Execute(); GPU& gpu; + NvdecCommon::NvdecRegisters state; std::unique_ptr<Codec> codec; }; } // namespace Tegra |