numcodecs_combinators
numcodecs_combinators
Combinator codecs for the numcodecs buffer compression API.
The following combinators, implementing the
CodecCombinatorMixin are
provided:
CodecStack: a stack of codecsFramedCodecStack: a stack of codecs that is framed with array data type and shape informationPickBestCodec: pick the best codec to encode the data
Modules:
-
abc–This module defines the
CodecCombinatorMixinmixin, a common interface for all codec combinator classes. -
best–This module defines the
PickBestCodecclass, which picks the codec that encoded the data best. -
framed–This module defines the
FramedCodecStackclass, which exposes a framed stack of codecs as a combined codec. -
stack–This module defines the
CodecStackclass, which exposes a stack of codecs as a combined codec.
Functions:
-
map_codec–Apply the
mappercallable to thecodecand return the mapped codec.
map_codec
Apply the mapper callable to the codec and return the mapped codec.
If the codec implements the
CodecCombinatorMixin
mixin, the mapper is applied to its inner codecs recursively.
| Parameters: |
|---|
| Returns: |
|
|---|