Skip to main content

encode_with_restarts

Function encode_with_restarts 

Source
pub fn encode_with_restarts(
    width: usize,
    height: usize,
    comps: usize,
    bits: u32,
    psv: u32,
    samples: &[u16],
    restart: usize,
) -> Vec<u8> ⓘ
Expand description

encode with a restart interval of restart MCUs (0: none). Intervals must start at row starts; each one resets the first-column predictors, and other predictors keep reading the row above (as the decoder does).