aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Nvdec/NvdecDevice.cs
diff options
context:
space:
mode:
authorMary-nyan <mary@mary.zone>2023-01-02 15:48:46 +0100
committerGitHub <noreply@github.com>2023-01-02 14:48:46 +0000
commit09c9686498c7c987c94f33c79732c7592045e035 (patch)
tree4fc8442ba38098b50342d193ffbb26437fc73f62 /Ryujinx.Graphics.Nvdec/NvdecDevice.cs
parentb6614c6ad5d7d19594b80f4917df27bf476e8f03 (diff)
misc: Use official names for NVDEC registers (#4192)
* misc: Uses official names for NVDEC registers * Address gdkchan's comment * Address comments
Diffstat (limited to 'Ryujinx.Graphics.Nvdec/NvdecDevice.cs')
-rw-r--r--Ryujinx.Graphics.Nvdec/NvdecDevice.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Ryujinx.Graphics.Nvdec/NvdecDevice.cs b/Ryujinx.Graphics.Nvdec/NvdecDevice.cs
index 18c2fc13..ef8185f4 100644
--- a/Ryujinx.Graphics.Nvdec/NvdecDevice.cs
+++ b/Ryujinx.Graphics.Nvdec/NvdecDevice.cs
@@ -58,24 +58,24 @@ namespace Ryujinx.Graphics.Nvdec
private void Execute(int data)
{
- Decode((CodecId)_state.State.SetCodecID);
+ Decode((ApplicationId)_state.State.SetApplicationId);
}
- private void Decode(CodecId codecId)
+ private void Decode(ApplicationId applicationId)
{
- switch (codecId)
+ switch (applicationId)
{
- case CodecId.H264:
+ case ApplicationId.H264:
H264Decoder.Decode(_currentContext, _rm, ref _state.State);
break;
- case CodecId.Vp8:
+ case ApplicationId.Vp8:
Vp8Decoder.Decode(_currentContext, _rm, ref _state.State);
break;
- case CodecId.Vp9:
+ case ApplicationId.Vp9:
Vp9Decoder.Decode(_rm, ref _state.State);
break;
default:
- Logger.Error?.Print(LogClass.Nvdec, $"Unsupported codec \"{codecId}\".");
+ Logger.Error?.Print(LogClass.Nvdec, $"Unsupported codec \"{applicationId}\".");
break;
}
}