pub fn decode_g3(
    input: impl Iterator<Item = u8>,
    line_cb: impl FnMut(&[u16])
) -> Option<()>
Expand description

Decode a Group 3 encoded image.

The callback line_cb is called for each decoded line. The argument is the list of positions of color change, starting with white.

To obtain an iterator over the pixel colors, the pels function is provided.