From bcfaed7c3e59e73fa550a61c00d6bc550a060311 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sat, 8 Aug 2026 22:41:42 +1000 Subject: [PATCH] Update AotCompilerTools.cs --- src/ImageSharp/Advanced/AotCompilerTools.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Advanced/AotCompilerTools.cs b/src/ImageSharp/Advanced/AotCompilerTools.cs index 2d893e406..d22f7b717 100644 --- a/src/ImageSharp/Advanced/AotCompilerTools.cs +++ b/src/ImageSharp/Advanced/AotCompilerTools.cs @@ -6,6 +6,7 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; using System.Runtime.CompilerServices; using SixLabors.ImageSharp.Formats; +using SixLabors.ImageSharp.Formats.Ani; using SixLabors.ImageSharp.Formats.Bmp; using SixLabors.ImageSharp.Formats.Cur; using SixLabors.ImageSharp.Formats.Exr; @@ -235,7 +236,7 @@ internal static class AotCompilerTools PixelOperations operations = PixelOperations.Instance; _ = operations.GetPixelTypeInfo(); - _ = operations.GetPixelBlender(default(GraphicsOptions)); + _ = operations.GetPixelBlender(default); _ = operations.GetPixelBlender(default, default); operations.FromVector4Destructive(default, default, default); operations.FromVector4Destructive(default, default, default, default); @@ -289,7 +290,7 @@ internal static class AotCompilerTools /// /// The pixel format. [Preserve] - private static unsafe void AotCompileImage() + private static void AotCompileImage() where TPixel : unmanaged, IPixel { Image img = default; @@ -354,6 +355,7 @@ internal static class AotCompilerTools private static void AotCompileImageEncoderInternals() where TPixel : unmanaged, IPixel { + default(AniEncoderCore).Encode(default, default, default); default(BmpEncoderCore).Encode(default, default, default); default(CurEncoderCore).Encode(default, default, default); default(ExrEncoderCore).Encode(default, default, default); @@ -376,6 +378,7 @@ internal static class AotCompilerTools private static void AotCompileImageDecoderInternals() where TPixel : unmanaged, IPixel { + default(AniDecoderCore).Decode(default, default, default); default(BmpDecoderCore).Decode(default, default, default); default(CurDecoderCore).Decode(default, default, default); default(ExrDecoderCore).Decode(default, default, default);