Skip to content

Commit e61585a

Browse files
Remove IImageEncoderInternals interface
1 parent cf3faaa commit e61585a

File tree

10 files changed

+15
-36
lines changed

10 files changed

+15
-36
lines changed

src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.Buffers;
55
using System.Buffers.Binary;
66
using System.Runtime.InteropServices;
7-
using SixLabors.ImageSharp.Advanced;
87
using SixLabors.ImageSharp.Common.Helpers;
98
using SixLabors.ImageSharp.Memory;
109
using SixLabors.ImageSharp.Metadata;
@@ -17,7 +16,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp;
1716
/// <summary>
1817
/// Image encoder for writing an image to a stream as a Windows bitmap.
1918
/// </summary>
20-
internal sealed class BmpEncoderCore : IImageEncoderInternals
19+
internal sealed class BmpEncoderCore
2120
{
2221
/// <summary>
2322
/// The amount to pad each row by.

src/ImageSharp/Formats/IImageEncoderInternals.cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/ImageSharp/Formats/ImageEncoder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using SixLabors.ImageSharp.Advanced;
54
using SixLabors.ImageSharp.IO;
65
using SixLabors.ImageSharp.PixelFormats;
76

src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg;
1818
/// <summary>
1919
/// Image encoder for writing an image to a stream as a jpeg.
2020
/// </summary>
21-
internal sealed unsafe partial class JpegEncoderCore : IImageEncoderInternals
21+
internal sealed unsafe partial class JpegEncoderCore
2222
{
2323
/// <summary>
2424
/// The available encodable frame configs.

src/ImageSharp/Formats/Pbm/PbmEncoderCore.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
// Licensed under the Six Labors Split License.
33

44
using System.Buffers.Text;
5-
using SixLabors.ImageSharp.Advanced;
65
using SixLabors.ImageSharp.PixelFormats;
76

87
namespace SixLabors.ImageSharp.Formats.Pbm;
98

109
/// <summary>
1110
/// Image encoder for writing an image to a stream as a PGM, PBM, PPM or PAM bitmap.
1211
/// </summary>
13-
internal sealed class PbmEncoderCore : IImageEncoderInternals
12+
internal sealed class PbmEncoderCore
1413
{
1514
private const byte NewLine = (byte)'\n';
1615
private const byte Space = (byte)' ';

src/ImageSharp/Formats/Png/PngEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace SixLabors.ImageSharp.Formats.Png;
2222
/// <summary>
2323
/// Performs the png encoding operation.
2424
/// </summary>
25-
internal sealed class PngEncoderCore : IImageEncoderInternals, IDisposable
25+
internal sealed class PngEncoderCore : IDisposable
2626
{
2727
/// <summary>
2828
/// The maximum block size, defaults at 64k for uncompressed blocks.

src/ImageSharp/Formats/Qoi/QoiEncoderCore.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace SixLabors.ImageSharp.Formats.Qoi;
1212
/// <summary>
1313
/// Image encoder for writing an image to a stream as a QOi image
1414
/// </summary>
15-
internal class QoiEncoderCore : IImageEncoderInternals
15+
internal class QoiEncoderCore
1616
{
1717
/// <summary>
1818
/// The encoder with options
@@ -41,7 +41,13 @@ public QoiEncoderCore(QoiEncoder encoder, Configuration configuration)
4141
this.memoryAllocator = configuration.MemoryAllocator;
4242
}
4343

44-
/// <inheritdoc />
44+
/// <summary>
45+
/// Encodes the image to the specified stream from the <see cref="ImageFrame{TPixel}"/>.
46+
/// </summary>
47+
/// <typeparam name="TPixel">The pixel format.</typeparam>
48+
/// <param name="image">The <see cref="ImageFrame{TPixel}"/> to encode from.</param>
49+
/// <param name="stream">The <see cref="Stream"/> to encode the image data to.</param>
50+
/// <param name="cancellationToken">The token to request cancellation.</param>
4551
public void Encode<TPixel>(Image<TPixel> image, Stream stream, CancellationToken cancellationToken)
4652
where TPixel : unmanaged, IPixel<TPixel>
4753
{

src/ImageSharp/Formats/Tga/TgaEncoderCore.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Buffers.Binary;
66
using System.Numerics;
77
using System.Runtime.CompilerServices;
8-
using SixLabors.ImageSharp.Advanced;
98
using SixLabors.ImageSharp.Memory;
109
using SixLabors.ImageSharp.Metadata;
1110
using SixLabors.ImageSharp.PixelFormats;
@@ -15,7 +14,7 @@ namespace SixLabors.ImageSharp.Formats.Tga;
1514
/// <summary>
1615
/// Image encoder for writing an image to a stream as a truevision targa image.
1716
/// </summary>
18-
internal sealed class TgaEncoderCore : IImageEncoderInternals
17+
internal sealed class TgaEncoderCore
1918
{
2019
/// <summary>
2120
/// Used for allocating memory during processing operations.

src/ImageSharp/Formats/Tiff/TiffEncoderCore.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Six Labors Split License.
33
#nullable disable
44

5-
using SixLabors.ImageSharp.Advanced;
65
using SixLabors.ImageSharp.Compression.Zlib;
76
using SixLabors.ImageSharp.Formats.Tiff.Compression;
87
using SixLabors.ImageSharp.Formats.Tiff.Constants;
@@ -19,7 +18,7 @@ namespace SixLabors.ImageSharp.Formats.Tiff;
1918
/// <summary>
2019
/// Performs the TIFF encoding operation.
2120
/// </summary>
22-
internal sealed class TiffEncoderCore : IImageEncoderInternals
21+
internal sealed class TiffEncoderCore
2322
{
2423
private static readonly ushort ByteOrderMarker = BitConverter.IsLittleEndian
2524
? TiffConstants.ByteOrderLittleEndianShort

src/ImageSharp/Formats/Webp/WebpEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace SixLabors.ImageSharp.Formats.Webp;
1212
/// <summary>
1313
/// Image encoder for writing an image to a stream in the Webp format.
1414
/// </summary>
15-
internal sealed class WebpEncoderCore : IImageEncoderInternals
15+
internal sealed class WebpEncoderCore
1616
{
1717
/// <summary>
1818
/// Used for allocating memory during processing operations.

0 commit comments

Comments
 (0)