From da7bca3786d56b54bd9ca526883a958dca56e35f Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Sun, 11 Jul 2021 13:07:08 +0300 Subject: [PATCH] Moved SpectralConverter to the separate file --- .../Jpeg/Components/Decoder/SpectralConverter.cs | 16 ++++++++++++++++ .../Decoder/SpectralConverter{TPixel}.cs | 9 --------- 2 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs diff --git a/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs b/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs new file mode 100644 index 000000000..35a879082 --- /dev/null +++ b/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter.cs @@ -0,0 +1,16 @@ +// 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 + { + public abstract void InjectFrameData(JpegFrame frame, IRawJpegData jpegData); + + public abstract void ConvertStrideBaseline(); + + public abstract void Dispose(); + } +} diff --git a/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs b/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs index 441745e53..a25e756c7 100644 --- a/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs +++ b/src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs @@ -13,15 +13,6 @@ using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder { - internal abstract class SpectralConverter : IDisposable - { - public abstract void InjectFrameData(JpegFrame frame, IRawJpegData jpegData); - - public abstract void ConvertStrideBaseline(); - - public abstract void Dispose(); - } - internal sealed class SpectralConverter : SpectralConverter where TPixel : unmanaged, IPixel {