fn unpack_bits<F>( input: &[u8], output: &mut [u8], channels: usize, bit_depth: u8, func: F, )where F: Fn(u8, &mut [u8]),