Skip to main content

dequant_4x4_scaled

Function dequant_4x4_scaled 

Source
pub fn dequant_4x4_scaled(
    block: &mut [i32; 16],
    qp: i32,
    weight_scale: &[u8; 16],
)
Expand description

4x4 残差ブロックの逆量子化(in-place、raster 順、スケーリングリスト指定)。qp は 0..=51。 LevelScale = weightScale * normAdjust4x4(qp%6, class)。ゼロ係数スキップ+ループ外シフト分岐で高速化。