pub fn encode_chunk(
block: &mut [u8],
predictor: Predictor,
stride: usize,
) -> Result<()>Available on crate feature
encoder only.Expand description
The stored bytes of one chunk, in place.
RAW leaves the codes alone — the only encoding precipitation tolerates. PREVIOUS keeps the first frame whole and replaces every later frame with its modulo-256 difference against the frame before it in the same chunk, which is the preceding frame on the axis because a group is contiguous.