fn halve_plane(
src: &[u8],
sw: usize,
sh: usize,
sstride: usize,
dst: &mut Vec<u8>,
) -> (usize, usize)Expand description
Average 2x2 blocks: exact halving, used before bilinear when the ratio exceeds 2 so strong downscales do not alias.