From c53efc58a36efec7d4e814a95b211b1232dda798 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 19 Dec 2023 12:30:52 +0500 Subject: [PATCH] changed qtable gen minimum --- src/util.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.zig b/src/util.zig index 5de3159..5ec8329 100644 --- a/src/util.zig +++ b/src/util.zig @@ -142,7 +142,7 @@ pub fn gen_qtable(q: f16, step_start_band: usize, step_stop_band: usize) @Vector var ret: @Vector(64, f16) = [_]f32{0.0} ** 64; const band_range = step_stop_band - step_start_band; const q_max: usize = @intFromFloat(255 - 235 * q); - const q_min = 8; + const q_min: usize = @intFromFloat(58 - 50 * q); var step = (q_max - q_min) / band_range; var idx: usize = 0; for (0..16) |band_i| {