Skip to main content

Module morph_quantize

Module morph_quantize 

Source
Expand description

Morph delta compression via quantization. Compresses morph delta data to fewer bits for efficient storage and transfer.

Structs§

MorphQuantizeConfig
QuantizedDelta
QuantizedMorph

Functions§

apply_quantized_morph
default_morph_quantize_config
dequantize_delta
dequantize_morph
filter_zero_deltas
Remove entries where dx=dy=dz=0
max_quantization_error
merge_quantized_morphs
Merge two quantized morphs (same scale assumed). If vertex appears in both, sum the deltas.
morph_compression_ratio
pack_quantized_morph
Pack to bytes: [name_len: u32][name bytes][scale: f32][original_count: u32][delta_count: u32][deltas...]
quantize_delta
quantize_morph
quantized_delta_count
unpack_quantized_morph
Parse from bytes: returns None if malformed