From 083385bde44688700d2332fa1201fb205b22b88d Mon Sep 17 00:00:00 2001
From: winscripter <142818255+winscripter@users.noreply.github.com>
Date: Sat, 1 Aug 2026 23:46:24 +0400
Subject: [PATCH] Use inline arrays in quantizer
---
src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs b/src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs
index 423095286..01723479b 100644
--- a/src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs
+++ b/src/ImageSharp/Formats/Jxl/Processing/JxlQuantizer.cs
@@ -51,12 +51,12 @@ internal sealed class JxlQuantizer
///
/// Represents the multipliers for the DC coefficients.
///
- private readonly float[] mulDc = new float[4];
+ private readonly InlineArray4 mulDc;
///
/// Represents the inverse multipliers for the DC coefficients.
///
- private readonly float[] inverseMulDc = new float[4];
+ private readonly InlineArray4 inverseMulDc;
///
/// Global scale
@@ -86,7 +86,7 @@ internal sealed class JxlQuantizer
///
/// The zero bias.
///
- private readonly float[] zeroBias = new float[3];
+ private readonly InlineArray3 zeroBias;
///
/// The dequant matrices.