mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 17:00:17 +00:00
Address comments
This commit is contained in:
parent
9bebd5d522
commit
2a9b82a9f4
3 changed files with 6 additions and 7 deletions
|
@ -2,13 +2,13 @@
|
|||
{
|
||||
public readonly struct FrameDecodedEventArgs
|
||||
{
|
||||
public ApplicationId CodecId { get; }
|
||||
public ApplicationId ApplicationId { get; }
|
||||
public uint LumaOffset { 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;
|
||||
ChromaOffset = chromaOffset;
|
||||
}
|
||||
|
|
|
@ -61,9 +61,9 @@ namespace Ryujinx.Graphics.Nvdec
|
|||
Decode((ApplicationId)_state.State.SetApplicationId);
|
||||
}
|
||||
|
||||
private void Decode(ApplicationId codecId)
|
||||
private void Decode(ApplicationId applicationId)
|
||||
{
|
||||
switch (codecId)
|
||||
switch (applicationId)
|
||||
{
|
||||
case ApplicationId.H264:
|
||||
H264Decoder.Decode(_currentContext, _rm, ref _state.State);
|
||||
|
@ -75,7 +75,7 @@ namespace Ryujinx.Graphics.Nvdec
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Nvdec
|
||||
{
|
||||
// Note: Most of those names are not official.
|
||||
struct NvdecRegisters
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
|
|
Loading…
Reference in a new issue