|
|
@ -8,20 +8,20 @@ using SixLabors.Memory; |
|
|
namespace SixLabors.ImageSharp.Processing.Processors.Transforms |
|
|
namespace SixLabors.ImageSharp.Processing.Processors.Transforms |
|
|
{ |
|
|
{ |
|
|
/// <content>
|
|
|
/// <content>
|
|
|
/// Contains <see cref="MosaicKernelMap"/>
|
|
|
/// Contains <see cref="PeriodicKernelMap"/>
|
|
|
/// </content>
|
|
|
/// </content>
|
|
|
internal partial class ResizeKernelMap |
|
|
internal partial class ResizeKernelMap |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Memory-optimized <see cref="ResizeKernelMap"/> where repeating rows are stored only once.
|
|
|
/// Memory-optimized <see cref="ResizeKernelMap"/> where repeating rows are stored only once.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private sealed class MosaicKernelMap : ResizeKernelMap |
|
|
private sealed class PeriodicKernelMap : ResizeKernelMap |
|
|
{ |
|
|
{ |
|
|
private readonly int period; |
|
|
private readonly int period; |
|
|
|
|
|
|
|
|
private readonly int cornerInterval; |
|
|
private readonly int cornerInterval; |
|
|
|
|
|
|
|
|
public MosaicKernelMap( |
|
|
public PeriodicKernelMap( |
|
|
MemoryAllocator memoryAllocator, |
|
|
MemoryAllocator memoryAllocator, |
|
|
IResampler sampler, |
|
|
IResampler sampler, |
|
|
int sourceLength, |
|
|
int sourceLength, |