Browse Source

Use unmanaged constraint.

pull/1574/head
James Jackson-South 6 years ago
parent
commit
995f8fb478
  1. 3
      src/ImageSharp/Formats/Jpeg/Components/GenericBlock8x8.cs
  2. 1
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

3
src/ImageSharp/Formats/Jpeg/Components/GenericBlock8x8.cs

@ -4,7 +4,6 @@
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.PixelFormats;
@ -16,7 +15,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components
/// </summary> /// </summary>
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
internal unsafe partial struct GenericBlock8x8<T> internal unsafe partial struct GenericBlock8x8<T>
where T : struct where T : unmanaged
{ {
public const int Size = 64; public const int Size = 64;

1
src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

@ -6,7 +6,6 @@ using System.Buffers.Binary;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Common.Helpers; using SixLabors.ImageSharp.Common.Helpers;
using SixLabors.ImageSharp.Formats.Jpeg.Components; using SixLabors.ImageSharp.Formats.Jpeg.Components;
using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder; using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder;

Loading…
Cancel
Save