pub fn decimate_codes(codes: &[u8], grid: &GridInfo, factor: usize) -> Vec<u8> ⓘAvailable on crate feature
encoder only.Expand description
Reduced copy of one quantized plane: every factor-th row and column of
the full plane from row and column 0 (rows/columns 0, 2, 4, … for the
half tier), matching the poster decimation so every tier shares the same
sample sites — sampling the full plane by 4 or 8 is the same as halving
it twice or three times. grid is the full plane’s grid.
Mirrors decimate_codes(codes, grid, factor) in xuebuild/ladder.py.