Browse Source

Spectral converter base class no longer implements IDisposable interface

pull/1694/head
Dmitry Pentin 5 years ago
parent
commit
024be3b2a2
  1. 8
      src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs
  2. 4
      src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs

8
src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs

@ -1,16 +1,12 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
internal abstract class SpectralConverter : IDisposable
internal abstract class SpectralConverter
{
public abstract void InjectFrameData(JpegFrame frame, IRawJpegData jpegData);
public abstract void ConvertStrideBaseline();
public abstract void Dispose();
}
}

4
src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs

@ -11,7 +11,7 @@ using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
internal sealed class SpectralConverter<TPixel> : SpectralConverter
internal sealed class SpectralConverter<TPixel> : SpectralConverter, IDisposable
where TPixel : unmanaged, IPixel<TPixel>
{
private readonly Configuration configuration;
@ -103,7 +103,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
}
}
public override void Dispose()
public void Dispose()
{
if (this.componentProcessors != null)
{

Loading…
Cancel
Save