From 6a06c60571091c7704b159564c5209feed60d2c8 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Fri, 6 Sep 2024 22:06:01 -0400 Subject: [PATCH] HFMetadata: populate full HFMult --- java/com/traneptora/jxlatte/frame/vardct/HFMetadata.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/com/traneptora/jxlatte/frame/vardct/HFMetadata.java b/java/com/traneptora/jxlatte/frame/vardct/HFMetadata.java index 1158b82..fb3c6b9 100644 --- a/java/com/traneptora/jxlatte/frame/vardct/HFMetadata.java +++ b/java/com/traneptora/jxlatte/frame/vardct/HFMetadata.java @@ -108,9 +108,10 @@ private Point placeBlock(Point lastBlock, TransformType block, int mul) throws I } } Point pos = new Point(y, x); - hfMultiplier[y][x] = mul; - for (int iy = 0; iy < block.dctSelectHeight; iy++) + for (int iy = 0; iy < block.dctSelectHeight; iy++) { Arrays.fill(dctSelect[y + iy], x, x + block.dctSelectWidth, block); + Arrays.fill(hfMultiplier[y + iy], x, x + block.dctSelectWidth, mul); + } return pos; } }