|
|
|
@ -62,7 +62,6 @@ namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors |
|
|
|
using SpectralConverter<L8> spectralConverterGray = new GrayJpegSpectralConverter<L8>(this.configuration); |
|
|
|
var scanDecoderGray = new HuffmanScanDecoder(stream, spectralConverterGray, CancellationToken.None); |
|
|
|
jpegDecoder.LoadTables(this.jpegTables, scanDecoderGray); |
|
|
|
scanDecoderGray.ResetInterval = 0; |
|
|
|
jpegDecoder.ParseStream(stream, scanDecoderGray, CancellationToken.None); |
|
|
|
|
|
|
|
// TODO: Should we pass through the CancellationToken from the tiff decoder?
|
|
|
|
@ -79,7 +78,6 @@ namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors |
|
|
|
new RgbJpegSpectralConverter<Rgb24>(this.configuration) : new SpectralConverter<Rgb24>(this.configuration); |
|
|
|
var scanDecoder = new HuffmanScanDecoder(stream, spectralConverter, CancellationToken.None); |
|
|
|
jpegDecoder.LoadTables(this.jpegTables, scanDecoder); |
|
|
|
scanDecoder.ResetInterval = 0; |
|
|
|
jpegDecoder.ParseStream(stream, scanDecoder, CancellationToken.None); |
|
|
|
|
|
|
|
// TODO: Should we pass through the CancellationToken from the tiff decoder?
|
|
|
|
|