Module optimize_bytes

Source
Expand description

A collection of functions used to prepare data for compression.

Constantsยง

SCRATCH_SPACE ๐Ÿ”’

Functionsยง

differences_to_samples
Integrate over all differences to the previous value in order to reconstruct sample values.
interleave_byte_blocks
Interleave the bytes such that the second half of the array is every other byte.
samples_to_differences
Derive over all values in order to produce differences to the previous value.
separate_bytes_fragments
Separate the bytes such that the second half contains every other byte. This performs deinterleaving - the inverse of interleaving.
with_reused_buffer ๐Ÿ”’