pub fn ebcc_encode_chunking(
data: ArrayView<'_, f32, EbccDim>,
config: &EBCCConfig,
chunk_shape: EBCCChunkShape,
) -> EBCCResult<Vec<u8>>Expand description
Encode a 3D data array using EBCC chunked compression.
chunk_shape controls the chunk shape used by EBCC.
Chunks may extend beyond the input dimensions.
EBCC pads edge chunks by repeating boundary values.
Warning: Range-relative error bounds are calculated independently for
each chunk. Use ebcc_encode_chunking_compat instead to preserve a
range-relative error bound over the entire data.
ยงErrors
EBCCError::InvalidInputif thedatahas any zero-size dimensionEBCCError::InvalidInputifchunk_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