Skip to content

API: CPP API: SPERR Compression and Decompression

Samuel Li edited this page Oct 7, 2023 · 1 revision

3D Volumes

The C++ class SPERR3D_OMP_C and SPERR3D_OMP_D provide 3D compression and decompression abilities respectively. The source file for sperr3d is the best place to see their usage.

In specialized scenarios where 1) a large number of small volumes to be compressed, and 2) the dimensions of these small volumes are known, one might use class SPECK3D_FLT instead. The major benefit is a smaller header (~20 byte difference) for each volume.

2D Slices

The C++ class SPECK2D_FLT is responsible for 2D SPERR compression and decompression. The source file for sperr2d is the best place to see its usage.