From 80f107591e29d3eb63f5869c8415820178b6ca34 Mon Sep 17 00:00:00 2001 From: winscripter <142818255+winscripter@users.noreply.github.com> Date: Tue, 1 Sep 2026 22:50:50 +0400 Subject: [PATCH] Make interface an abstract class --- .../Jxl/Processing/Encoder/JxlFastLosslessEncoder.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Formats/Jxl/Processing/Encoder/JxlFastLosslessEncoder.cs b/src/ImageSharp/Formats/Jxl/Processing/Encoder/JxlFastLosslessEncoder.cs index 3feb60c72..91263989e 100644 --- a/src/ImageSharp/Formats/Jxl/Processing/Encoder/JxlFastLosslessEncoder.cs +++ b/src/ImageSharp/Formats/Jxl/Processing/Encoder/JxlFastLosslessEncoder.cs @@ -147,8 +147,11 @@ internal sealed class JxlFastLosslessEncoder /// /// Abstracts access to a raster frame data required for encoding. /// - internal interface IFjxlFrameInputSource : IDisposable + internal abstract class IFjxlFrameInputSource : IDisposable { + /// + public abstract void Dispose(); + /// /// Returns a span that wraps over channel color data at the /// specified rectangular position. @@ -163,7 +166,7 @@ internal sealed class JxlFastLosslessEncoder /// A wrapper over the color data of the channel at the specified /// position. /// - Span GetColorChannelData(int x, int y, int width, int height, out long rowOffset) + public abstract Span GetColorChannelData(int x, int y, int width, int height, out long rowOffset) where T : unmanaged; }