pub fn decompress(encoded: &[u8]) -> Result<AnyArray, Jpeg2000CodecError>
Expand description
Decompress the encoded
data into an array using JPEG 2000.
ยงErrors
Errors with
Jpeg2000CodecError::HeaderDecodeFailed
if decoding the header failedJpeg2000CodecError::SliceDecodeFailed
if decoding a slice failedJpeg2000CodecError::Jpeg2000DecodeFailed
if decoding with JPEG 2000 failedJpeg2000CodecError::DecodeInvalidShape
if the encoded data decodes to an unexpected shapeJpeg2000CodecError::DecodeTooManySlices
if the encoded data contains too many slices