Function image::utils::expand_bits
source · pub(crate) fn expand_bits(bit_depth: u8, row_size: u32, buf: &[u8]) -> Vec<u8>
Expand description
Expand a buffer of packed 1, 2, or 4 bits integers into u8’s. Assumes that
every row_size
entries there are padding bits up to the next byte boundary.