Skip to main content

decompress

Function decompress 

Source
pub fn decompress(
    data: &[u8],
    image: &mut [u16],
    scratch: &mut [i64],
) -> Result<(Config, usize), Error>
Expand description

Decompress a CCSDS 123.0-B-2 compressed image.

scratch must have at least scratch_len(nx, nz) elements (the header is read first to determine nx/nz, so callers should pre-allocate generously or use read_header_only).

Returns the config and number of samples written.