Skip to main content

decode

Function decode 

Source
pub fn decode(
    src: &[u8],
    spec: &PackedSpec,
    out: &mut [u16],
    stride: usize,
    parallel: bool,
    simd: bool,
    lenient: bool,
) -> Result<()>
Expand description

Decode src into out (rows of stride samples). Truncated input is an error (decoding aborts at the first row that starts past EOF) unless lenient (recovering truncated data): then every complete sample is decoded and the rest are left zero (out must be zeroed).