diff options
| author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-05 16:06:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-05 16:06:09 -0400 |
| commit | c770fa9823185fd2878310546311b528d421e31c (patch) | |
| tree | 1b2cd25a36cc9b770635174f0a0c38132436f3a2 /src/video_core/command_classes/nvdec.h | |
| parent | 942c0d6cdd7975ded7435917ce24fdbaa4b8077d (diff) | |
| parent | 208a04dcffe8142070bd8136b42def6a3233bb0f (diff) | |
Merge pull request #6540 from Kelebek1/nvdec
Slightly refactor NVDEC and codecs for readability and safety
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 |
