pub fn compress(
cfg: &Config,
image: &[u16],
out: &mut [u8],
scratch: &mut [i32],
) -> Result<usize, Error>Expand description
Compress a 2D image using CCSDS 122.0-B-2 (integer DWT).
image is row-major: image[y * width + x], unsigned 16-bit.
scratch must have at least scratch_len(width, seg_height)
elements.
Returns number of bytes written to out.