aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Nvdec/H264Decoder.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-06-25 21:44:42 +0200
committerGitHub <noreply@github.com>2023-06-25 21:44:42 +0200
commit07fc3ded687fd1321f9ae73d0c72b2d7566c87d5 (patch)
tree6997ddb53f0194b644946a4bc92d18002865ee1e /src/Ryujinx.Graphics.Nvdec/H264Decoder.cs
parentfd01259d2b43efcb67efdb32c8879c67e96ccdfe (diff)
[Ryujinx.Graphics.Nvdec] Address dotnet-format issues (#5369)1.1.917
* dotnet format style --severity info Some changes were manually reverted. * Restore a few unused methods and variables * Address most dotnet format whitespace warnings * Apply dotnet format whitespace formatting A few of them have been manually reverted and the corresponding warning was silenced * Add previously silenced warnings back I have no clue how these disappeared * Add comments to disabled warnings * Simplify properties and array initialization, Use const when possible, Remove trailing commas * Address IDE0251 warnings * Revert "Simplify properties and array initialization, Use const when possible, Remove trailing commas" This reverts commit 9462e4136c0a2100dc28b20cf9542e06790aa67e. * dotnet format whitespace after rebase * First dotnet format pass
Diffstat (limited to 'src/Ryujinx.Graphics.Nvdec/H264Decoder.cs')
-rw-r--r--src/Ryujinx.Graphics.Nvdec/H264Decoder.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Ryujinx.Graphics.Nvdec/H264Decoder.cs b/src/Ryujinx.Graphics.Nvdec/H264Decoder.cs
index ecc7dbc7..c99d4a17 100644
--- a/src/Ryujinx.Graphics.Nvdec/H264Decoder.cs
+++ b/src/Ryujinx.Graphics.Nvdec/H264Decoder.cs
@@ -17,12 +17,12 @@ namespace Ryujinx.Graphics.Nvdec
ReadOnlySpan<byte> bitstream = rm.Gmm.DeviceGetSpan(state.SetInBufBaseOffset, (int)pictureInfo.BitstreamSize);
- int width = (int)pictureInfo.PicWidthInMbs * MbSizeInPixels;
+ int width = (int)pictureInfo.PicWidthInMbs * MbSizeInPixels;
int height = (int)pictureInfo.PicHeightInMbs * MbSizeInPixels;
int surfaceIndex = (int)pictureInfo.OutputSurfaceIndex;
- uint lumaOffset = state.SetPictureLumaOffset[surfaceIndex];
+ uint lumaOffset = state.SetPictureLumaOffset[surfaceIndex];
uint chromaOffset = state.SetPictureChromaOffset[surfaceIndex];
Decoder decoder = context.GetH264Decoder();
@@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Nvdec
SurfaceWriter.Write(
rm.Gmm,
outputSurface,
- lumaOffset + pictureInfo.LumaFrameOffset,
+ lumaOffset + pictureInfo.LumaFrameOffset,
chromaOffset + pictureInfo.ChromaFrameOffset);
}
else
@@ -44,9 +44,9 @@ namespace Ryujinx.Graphics.Nvdec
SurfaceWriter.WriteInterlaced(
rm.Gmm,
outputSurface,
- lumaOffset + pictureInfo.LumaTopFieldOffset,
+ lumaOffset + pictureInfo.LumaTopFieldOffset,
chromaOffset + pictureInfo.ChromaTopFieldOffset,
- lumaOffset + pictureInfo.LumaBottomFieldOffset,
+ lumaOffset + pictureInfo.LumaBottomFieldOffset,
chromaOffset + pictureInfo.ChromaBottomFieldOffset);
}
}