Expand description
Unpacking of uncompressed, bit-packed sensor data.
Every kernel has a scalar reference implementation (*_scalar) that is the
specification. Fast paths (word-at-a-time scalar, SSE4.1, NEON, WASM SIMD128)
are tested bit-for-bit against it (see tests and tests/simd_equivalence.rs).
Structs§
- Packed
Layout - Description of a packed raster.
Functions§
- complete_
samples - Samples of
bitsbits whose bits lie entirely within the firstlenbytes of a row packed inorder(word orders need whole words). - unpack
- Unpack
srcintodstrows ofdst_stridesamples. A source too short for every row is an error unlesslenient(recovering truncated data): then complete rows and the complete samples of a partial final row are unpacked, and the remaining samples are left untouched (callers pass zeroed buffers). - unpack_
row - Unpack one row of
dst.len()samples. - unpack_
row_ partial unpack_rowfor a row cut short by truncated input: samples not entirely withinsrcare set to zero instead of being decoded from padding. Returns the number of complete samples.- unpack_
row_ scalar - Reference implementation for every packing (bit pump based).