diff --git a/src/ImageSharp/Formats/Ani/AniDecoder.cs b/src/ImageSharp/Formats/Ani/AniDecoder.cs index 9794867fe..5cc06ae15 100644 --- a/src/ImageSharp/Formats/Ani/AniDecoder.cs +++ b/src/ImageSharp/Formats/Ani/AniDecoder.cs @@ -4,7 +4,10 @@ using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp.Formats.Ani; -internal sealed class AniDecoder : ImageDecoder +/// +/// Decoder for generating an image out of an ani encoded stream. +/// +public sealed class AniDecoder : ImageDecoder { private AniDecoder() { @@ -15,6 +18,7 @@ internal sealed class AniDecoder : ImageDecoder /// public static AniDecoder Instance { get; } = new(); + /// protected override Image Decode(DecoderOptions options, Stream stream, CancellationToken cancellationToken) { Guard.NotNull(options, nameof(options)); @@ -24,8 +28,10 @@ internal sealed class AniDecoder : ImageDecoder return image; } + /// protected override Image Decode(DecoderOptions options, Stream stream, CancellationToken cancellationToken) => this.Decode(options, stream, cancellationToken); + /// protected override ImageInfo Identify(DecoderOptions options, Stream stream, CancellationToken cancellationToken) { Guard.NotNull(options, nameof(options));