pub fn compress(
cfg: &Config,
image: &[u16],
out: &mut [u8],
scratch: &mut [i64],
) -> Result<usize, Error>Expand description
Compress a 3D image using CCSDS 123.0-B-2.
image is in BSQ order: image[z * ny * nx + y * nx + x].
scratch must have at least scratch_len(nx, nz) elements.
Returns the number of bytes written to out.