pub fn extract_lsb_pattern(pixel_bytes: &[u8]) -> BytesExpand description
Extract the LSB bit pattern from raw pixel bytes.
For each byte of pixel data, extracts the least significant bit and packs
8 bits into one output byte. The result length is ceil(pixel_bytes.len() / 8).