changed qtable gen minimum
This commit is contained in:
parent
288a2bcc2d
commit
c53efc58a3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
var ret: @Vector(64, f16) = [_]f32{0.0} ** 64;
|
||||||
const band_range = step_stop_band - step_start_band;
|
const band_range = step_stop_band - step_start_band;
|
||||||
const q_max: usize = @intFromFloat(255 - 235 * q);
|
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 step = (q_max - q_min) / band_range;
|
||||||
var idx: usize = 0;
|
var idx: usize = 0;
|
||||||
for (0..16) |band_i| {
|
for (0..16) |band_i| {
|
||||||
|
|
Loading…
Reference in a new issue