pub fn decode(input: &[u8]) -> Result<Vec<u8>, DecodeError>Expand description
Decode JPEG (DCT) compressed data.
Returns raw pixel data (RGB or grayscale depending on the JPEG). If the input doesn’t start with an SOI marker, scans forward up to 1024 bytes to find one.