Skip to main content

decode

Function decode 

Source
pub fn decode(data: &[u8], limits: &Limits) -> Result<Decoded8>
Expand description

Decode a baseline/progressive JPEG to 8-bit samples, keeping the native colour components (1 for grey, 3 for RGB). The declared dimensions are checked against limits before the decoder allocates its output.