@@ -54,7 +54,7 @@ internal static class AotCompilerTools
5454 /// <remarks>
5555 /// This method doesn't actually do anything but serves an important purpose...
5656 /// If you are running ImageSharp on iOS and try to call SaveAsGif, it will throw an exception:
57- /// "Attempting to JIT compile method... OctreeFrameQuantizer .ConstructPalette... while running in aot-only mode."
57+ /// "Attempting to JIT compile method... HexadecatreeQuantizer .ConstructPalette... while running in aot-only mode."
5858 /// The reason this happens is the SaveAsGif method makes heavy use of generics, which are too confusing for the AoT
5959 /// compiler used on Xamarin.iOS. It spins up the JIT compiler to try and figure it out, but that is an illegal op on
6060 /// iOS so it bombs out.
@@ -479,7 +479,7 @@ private static void AotCompileResampler<TPixel, TResampler>()
479479 private static void AotCompileQuantizers < TPixel > ( )
480480 where TPixel : unmanaged, IPixel < TPixel >
481481 {
482- AotCompileQuantizer < TPixel , OctreeQuantizer > ( ) ;
482+ AotCompileQuantizer < TPixel , HexadecatreeQuantizer > ( ) ;
483483 AotCompileQuantizer < TPixel , PaletteQuantizer > ( ) ;
484484 AotCompileQuantizer < TPixel , WebSafePaletteQuantizer > ( ) ;
485485 AotCompileQuantizer < TPixel , WernerPaletteQuantizer > ( ) ;
@@ -523,10 +523,8 @@ private static void AotCompilePixelSamplingStrategys<TPixel>()
523523 private static void AotCompilePixelMaps < TPixel > ( )
524524 where TPixel : unmanaged, IPixel < TPixel >
525525 {
526- default ( EuclideanPixelMap < TPixel , HybridCache > ) . GetClosestColor ( default , out _ ) ;
527526 default ( EuclideanPixelMap < TPixel , AccurateCache > ) . GetClosestColor ( default , out _ ) ;
528527 default ( EuclideanPixelMap < TPixel , CoarseCache > ) . GetClosestColor ( default , out _ ) ;
529- default ( EuclideanPixelMap < TPixel , NullCache > ) . GetClosestColor ( default , out _ ) ;
530528 }
531529
532530 /// <summary>
@@ -551,8 +549,8 @@ private static void AotCompileDither<TPixel, TDither>()
551549 where TPixel : unmanaged, IPixel < TPixel >
552550 where TDither : struct , IDither
553551 {
554- OctreeQuantizer < TPixel > octree = default ;
555- default ( TDither ) . ApplyQuantizationDither < OctreeQuantizer < TPixel > , TPixel > ( ref octree , default , default , default ) ;
552+ HexadecatreeQuantizer < TPixel > hexadecatree = default ;
553+ default ( TDither ) . ApplyQuantizationDither < HexadecatreeQuantizer < TPixel > , TPixel > ( ref hexadecatree , default , default , default ) ;
556554
557555 PaletteQuantizer < TPixel > palette = default ;
558556 default ( TDither ) . ApplyQuantizationDither < PaletteQuantizer < TPixel > , TPixel > ( ref palette , default , default , default ) ;
0 commit comments