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| {