numcodecs_wasm_qpet_sperr
Classes:
-
QpetSperr–Codec providing compression using QPET-SPERR.
QpetSperr
QpetSperr(
mode,
qoi,
qoi_pwe,
_version="0.2.0",
data_pwe=None,
high_prec=False,
qoi_block_size=[1, 1, 1],
qoi_k=3.0,
sperr_chunks=[256, 256, 256],
)
Codec providing compression using QPET-SPERR.
Arrays that are higher-dimensional than 3D are encoded by compressing each
3D slice with QPET-SPERR independently. Specifically, the array's shape is
interpreted as [.., depth, height, width]. If you want to compress 3D
slices along three different axes, you can swizzle the array axes
beforehand.
| Parameters: |
|
|---|
Methods:
-
decode–Decode the data in
buf. -
encode–Encode the data in
buf. -
from_config–Instantiate the codec from a configuration
dict. -
get_config–Returns the configuration of the codec.
codec_id
class-attribute
instance-attribute
codec_id = 'qpet-sperr.rs'
decode
decode(buf, out=None)
Decode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
encode
encode(buf)
Encode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
from_config
classmethod
from_config(config)
get_config
get_config()
Returns the configuration of the codec.
numcodecs.registry.get_codec(config)
can be used to reconstruct this codec from the returned config.
| Returns: |
|
|---|