|
|
|
@ -7,6 +7,7 @@ using System.Numerics; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using SixLabors.ImageSharp.Formats; |
|
|
|
using SixLabors.ImageSharp.Formats.Bmp; |
|
|
|
using SixLabors.ImageSharp.Formats.Experimental.Webp; |
|
|
|
using SixLabors.ImageSharp.Formats.Gif; |
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg.Components; |
|
|
|
@ -194,6 +195,7 @@ namespace SixLabors.ImageSharp.Advanced |
|
|
|
private static void AotCompileImageEncoderInternals<TPixel>() |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
default(WebpEncoderCore).Encode<TPixel>(default, default, default); |
|
|
|
default(BmpEncoderCore).Encode<TPixel>(default, default, default); |
|
|
|
default(GifEncoderCore).Encode<TPixel>(default, default, default); |
|
|
|
default(JpegEncoderCore).Encode<TPixel>(default, default, default); |
|
|
|
@ -209,6 +211,7 @@ namespace SixLabors.ImageSharp.Advanced |
|
|
|
private static void AotCompileImageDecoderInternals<TPixel>() |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
default(WebpDecoderCore).Decode<TPixel>(default, default, default); |
|
|
|
default(BmpDecoderCore).Decode<TPixel>(default, default, default); |
|
|
|
default(GifDecoderCore).Decode<TPixel>(default, default, default); |
|
|
|
default(JpegDecoderCore).Decode<TPixel>(default, default, default); |
|
|
|
@ -224,6 +227,7 @@ namespace SixLabors.ImageSharp.Advanced |
|
|
|
private static void AotCompileImageEncoders<TPixel>() |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
AotCompileImageEncoder<TPixel, WebpEncoder>(); |
|
|
|
AotCompileImageEncoder<TPixel, BmpEncoder>(); |
|
|
|
AotCompileImageEncoder<TPixel, GifEncoder>(); |
|
|
|
AotCompileImageEncoder<TPixel, JpegEncoder>(); |
|
|
|
@ -239,6 +243,7 @@ namespace SixLabors.ImageSharp.Advanced |
|
|
|
private static void AotCompileImageDecoders<TPixel>() |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
AotCompileImageDecoder<TPixel, WebpDecoder>(); |
|
|
|
AotCompileImageDecoder<TPixel, BmpDecoder>(); |
|
|
|
AotCompileImageDecoder<TPixel, GifDecoder>(); |
|
|
|
AotCompileImageDecoder<TPixel, JpegDecoder>(); |
|
|
|
|