pub fn decode_frame_parallel(
data: &[u8],
hdr: &LjpegHeader,
frame: &mut [u16],
) -> Result<bool>Expand description
Decode the whole frame of a restart-free scan into frame (height rows of
LjpegHeader::row_len samples) using all worker threads.
Returns Ok(false) without a usable result when the stream does not qualify or
cannot be decoded speculatively; the caller then uses crate::ljpeg::decode_rows
(which also produces the exact error for corrupt data).