pub fn ebcc_encode_chunking_compat(
data: ArrayView<'_, f32, EbccDim>,
config: &EBCCConfig,
chunk_shape: EBCCCompatChunkShape,
) -> EBCCResult<Vec<u8>>Expand description
Encode a 3D data array using EBCC chunked compression in compatibility mode.
Passing Auto for chunk_shape lets EBCC
automatically choose the chunk shape. Passing an
Explicit chunk_shape uses the same
validation rules as ebcc_encode_chunking.
In EBCC compatibility mode, range-relative error bounds are converted to absolute error bounds using the input data range before chunked encoding.
ยงErrors
EBCCError::InvalidInputif thedatahas any zero-size dimensionEBCCError::InvalidInputif explicitchunk_shapehas tile dimensions that are too small or forms EBCC internal image dimensions outside the supported rangeEBCCError::InvalidConfigifconfig.validatefailsEBCCError::InvalidInputif thedatacontains any non-finite (infinite or NaN) valuesEBCCError::CompressionErrorif compression with EBCC fails