pub fn compress<S: Data<Elem = f32>, D: Dimension>(
data: ArrayBase<S, D>,
residual: EbccResidualType,
base_cr: Positive<f32>,
) -> Result<Vec<u8>, EbccCodecError>Expand description
Compress the data array using EBCC with the provided residual and
base_cr.
ยงErrors
Errors with
EbccCodecError::HeaderEncodeFailedif encoding the header failedEbccCodecError::InsufficientDimensionsif thedatahas fewer than two dimensions or the last two dimensions are not at least 32x32EbccCodecError::EbccEncodeFailedif encoding with EBCC failedEbccCodecError::SliceEncodeFailedif encoding a 3D slice failed