Browse Source

Added playground benchmarks

pull/2076/head
Dmitry Pentin 4 years ago
parent
commit
5cca3148df
  1. 6
      src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConversion/JpegComponentPostProcessor8.cs
  2. 3
      src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConversion/ResizingSpectralConverter{TPixel}.cs

6
src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConversion/JpegComponentPostProcessor8.cs

@ -43,10 +43,12 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
this.frame = frame;
this.dcDequantizer = this.rawJpeg.QuantizationTables[this.component.QuantizationTableIndex][0];
this.component = component;
this.rawJpeg = rawJpeg;
this.dcDequantizer = rawJpeg.QuantizationTables[this.component.QuantizationTableIndex][0];
this.blockAreaSize = this.component.SubSamplingDivisors * blockSize;
this.ColorBuffer = memoryAllocator.Allocate2DOveraligned<float>(
postProcessorBufferSize.Width,

3
src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConversion/ResizingSpectralConverter{TPixel}.cs

@ -195,6 +195,9 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
cpp.Dispose();
}
}
this.rgbBuffer?.Dispose();
this.paddedProxyPixelRow?.Dispose();
}
// TODO: docs, code formatting

Loading…
Cancel
Save