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