diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-05 22:06:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 22:06:09 +0200 |
commit | c770fa9823185fd2878310546311b528d421e31c (patch) | |
tree | 1b2cd25a36cc9b770635174f0a0c38132436f3a2 /src/video_core/command_classes/nvdec.h | |
parent | Merge pull request #6561 from german77/analog_fix (diff) | |
parent | Slightly refactor NVDEC and codecs for readability and safety (diff) | |
download | yuzu-c770fa9823185fd2878310546311b528d421e31c.tar yuzu-c770fa9823185fd2878310546311b528d421e31c.tar.gz yuzu-c770fa9823185fd2878310546311b528d421e31c.tar.bz2 yuzu-c770fa9823185fd2878310546311b528d421e31c.tar.lz yuzu-c770fa9823185fd2878310546311b528d421e31c.tar.xz yuzu-c770fa9823185fd2878310546311b528d421e31c.tar.zst yuzu-c770fa9823185fd2878310546311b528d421e31c.zip |
Diffstat (limited to '')
-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 |