Module rice

Module rice 

Source

Structs§

BitReader
Bit-level reader
BitWriter
Bit-level writer

Functions§

decode
Rice decode to float residuals
decode_i32
Rice decode to integer residuals
encode
Rice encode float residuals (quantizes to 16-bit)
encode_i32
Rice encode integer residuals directly
estimate_rice_parameter
Estimate optimal Rice parameter from float residuals Residuals are expected to be in -1.0 to 1.0 range and will be scaled to 16-bit
estimate_rice_parameter_i32
Estimate Rice parameter from integer residuals Ensures k is large enough that no quotient exceeds 255 during encoding