fn unpack_pixels_for_display(packed: u8, unpacked: &mut [u8]) {
  let mut pixel_group = packed;
  for i in 0..4 {
    let l = if (pixel_group & 0x80) != 0 { 0xF0 } else { 0x00 };
    let r = if (pixel_group & 0x40) != 0 { 0x0F } else { 0x00 };
    unpacked[i] = l | r;
    pixel_group <<= 2;
  }
}
/// Converts a `0bABCDEFGH` packed monochrome binary bitmap byte sequence into
/// a group of 4 display-pixels of the form `[0bAAAABBBB, 0bCCCCDDDD, 0bEEEEFFFF, 0bGGGGHHHH]`.
/// The `unpacked` slice must be at least 4 bytes long.
Converts a `0bABCDEFGH` packed monochrome binary bitmap byte sequence into
a group of 4 display-pixels of the form `[0bAAAABBBB, 0bCCCCDDDD, 0bEEEEFFFF, 0bGGGGHHHH]`.
The `unpacked` slice must be at least 4 bytes long.
Converts a ` 0bABCDEFGH ` packed monochrome binary bitmap byte sequence into a group of 4 display - pixels of the form ` [ 0bAAAABBBB 0bCCCCDDDD 0bEEEEFFFF 0bGGGGHHHH ] ` . The ` unpacked ` slice must be at least 4 bytes long .
fn unpack_pixels_for_display(packed: u8, unpacked: &mut [u8]) {
  let mut pixel_group = packed;
  for i in 0..4 {
    let l = if (pixel_group & 0x80) != 0 { 0xF0 } else { 0x00 };
    let r = if (pixel_group & 0x40) != 0 { 0x0F } else { 0x00 };
    unpacked[i] = l | r;
    pixel_group <<= 2;
  }
}
fn unpack_pixels_for_display ( packed : u8 , unpacked : & mut [ u8 ] ) { let mut pixel_group = packed ; for i in 0 .. 4 { let l = if ( pixel_group & 0x80 ) != 0 { 0xF0 } else { 0x00 } ; let r = if ( pixel_group & 0x40 ) != 0 { 0x0F } else { 0x00 } ; unpacked [ i ] = l | r ; pixel_group <<= 2 ; } }
Converts a `0bABCDEFGH` packed monochrome binary bitmap byte sequence into
a group of 4 display-pixels of the form `[0bAAAABBBB, 0bCCCCDDDD, 0bEEEEFFFF, 0bGGGGHHHH]`.
Converts a ` 0bABCDEFGH ` packed monochrome binary bitmap byte sequence into a group of 4 display - pixels of the form ` [ 0bAAAABBBB 0bCCCCDDDD 0bEEEEFFFF 0bGGGGHHHH ] ` .
packed
u8
unpacked
&mut [u8]
packed
u8
unpacked
&mut [u8]