Skip to main content

Module bitstream_binding

Module bitstream_binding 

Source
Expand description

Python bindings for packing, unpacking, counting, and encoding bitstreams.

Structsยง

BitstreamEncoder
Lfsr16
PyBitstreamAverager

Functionsยง

__pyfunction_batch_encode ๐Ÿ”’ โš 
__pyfunction_batch_encode_numpy ๐Ÿ”’ โš 
__pyfunction_pack_bitstream ๐Ÿ”’ โš 
__pyfunction_pack_bitstream_numpy ๐Ÿ”’ โš 
__pyfunction_popcount ๐Ÿ”’ โš 
__pyfunction_popcount_numpy ๐Ÿ”’ โš 
__pyfunction_unpack_bitstream ๐Ÿ”’ โš 
__pyfunction_unpack_bitstream_numpy ๐Ÿ”’ โš 
batch_encode ๐Ÿ”’
Bernoulli-encode a numpy float64 array into packed bitstream words.
batch_encode_numpy ๐Ÿ”’
Bernoulli-encode a numpy float64 array into a 2-D numpy uint64 array.
pack_bitstream ๐Ÿ”’
Pack a one- or two-dimensional Python bit sequence into 64-bit words.
pack_bitstream_numpy ๐Ÿ”’
Pack a 1-D numpy uint8 array into packed u64 words, returning a numpy array. Zero-copy input, single-allocation output.
popcount ๐Ÿ”’
Count set bits in a one- or two-dimensional collection of packed words.
popcount_numpy ๐Ÿ”’
Popcount on a numpy uint64 array โ€” zero-copy input.
register ๐Ÿ”’
Register bitstream bindings without adding implementation code to the crate root.
unpack_bitstream ๐Ÿ”’
Unpack 64-bit words into their original one- or two-dimensional bit shape.
unpack_bitstream_numpy ๐Ÿ”’
Unpack a numpy uint64 array back to a numpy uint8 array.