changed qtable gen minimum

This commit is contained in:
Muaz Ahmad 2023-12-19 12:30:52 +05:00
parent 288a2bcc2d
commit c53efc58a3

View file

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