diff options
Diffstat (limited to 'Ryujinx.Graphics.Nvdec.FFmpeg')
| -rw-r--r-- | Ryujinx.Graphics.Nvdec.FFmpeg/H264/SpsAndPpsReconstruction.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Nvdec.FFmpeg/H264/SpsAndPpsReconstruction.cs b/Ryujinx.Graphics.Nvdec.FFmpeg/H264/SpsAndPpsReconstruction.cs index 5c16ef3d..57fb65d5 100644 --- a/Ryujinx.Graphics.Nvdec.FFmpeg/H264/SpsAndPpsReconstruction.cs +++ b/Ryujinx.Graphics.Nvdec.FFmpeg/H264/SpsAndPpsReconstruction.cs @@ -118,7 +118,7 @@ namespace Ryujinx.Graphics.Nvdec.FFmpeg.H264 } // ZigZag LUTs from libavcodec. - private static readonly byte[] ZigZagDirect = new byte[] + private static ReadOnlySpan<byte> ZigZagDirect => new byte[] { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, @@ -130,7 +130,7 @@ namespace Ryujinx.Graphics.Nvdec.FFmpeg.H264 53, 60, 61, 54, 47, 55, 62, 63 }; - private static readonly byte[] ZigZagScan = new byte[] + private static ReadOnlySpan<byte> ZigZagScan => new byte[] { 0 + 0 * 4, 1 + 0 * 4, 0 + 1 * 4, 0 + 2 * 4, 1 + 1 * 4, 2 + 0 * 4, 3 + 0 * 4, 2 + 1 * 4, @@ -140,7 +140,7 @@ namespace Ryujinx.Graphics.Nvdec.FFmpeg.H264 private static void WriteScalingList(ref H264BitStreamWriter writer, IArray<byte> list) { - byte[] scan = list.Length == 16 ? ZigZagScan : ZigZagDirect; + ReadOnlySpan<byte> scan = list.Length == 16 ? ZigZagScan : ZigZagDirect; int lastScale = 8; |
