Address comments

This commit is contained in:
Mary 2023-01-01 16:03:14 +01:00
parent 9bebd5d522
commit 2a9b82a9f4
3 changed files with 6 additions and 7 deletions

View file

@ -2,13 +2,13 @@
{ {
public readonly struct FrameDecodedEventArgs public readonly struct FrameDecodedEventArgs
{ {
public ApplicationId CodecId { get; } public ApplicationId ApplicationId { get; }
public uint LumaOffset { get; } public uint LumaOffset { get; }
public uint ChromaOffset { get; } public uint ChromaOffset { get; }
internal FrameDecodedEventArgs(ApplicationId codecId, uint lumaOffset, uint chromaOffset) internal FrameDecodedEventArgs(ApplicationId applicationId, uint lumaOffset, uint chromaOffset)
{ {
CodecId = codecId; ApplicationId = applicationId;
LumaOffset = lumaOffset; LumaOffset = lumaOffset;
ChromaOffset = chromaOffset; ChromaOffset = chromaOffset;
} }

View file

@ -61,9 +61,9 @@ namespace Ryujinx.Graphics.Nvdec
Decode((ApplicationId)_state.State.SetApplicationId); Decode((ApplicationId)_state.State.SetApplicationId);
} }
private void Decode(ApplicationId codecId) private void Decode(ApplicationId applicationId)
{ {
switch (codecId) switch (applicationId)
{ {
case ApplicationId.H264: case ApplicationId.H264:
H264Decoder.Decode(_currentContext, _rm, ref _state.State); H264Decoder.Decode(_currentContext, _rm, ref _state.State);
@ -75,7 +75,7 @@ namespace Ryujinx.Graphics.Nvdec
Vp9Decoder.Decode(_rm, ref _state.State); Vp9Decoder.Decode(_rm, ref _state.State);
break; break;
default: default:
Logger.Error?.Print(LogClass.Nvdec, $"Unsupported codec \"{codecId}\"."); Logger.Error?.Print(LogClass.Nvdec, $"Unsupported codec \"{applicationId}\".");
break; break;
} }
} }

View file

@ -2,7 +2,6 @@
namespace Ryujinx.Graphics.Nvdec namespace Ryujinx.Graphics.Nvdec
{ {
// Note: Most of those names are not official.
struct NvdecRegisters struct NvdecRegisters
{ {
#pragma warning disable CS0649 #pragma warning disable CS0649