Crate aztec

Source
Expand description

§AZTEC

A compression algorithm based on: https://ieeexplore.ieee.org/document/4502549

3 bytes get used for each line/slope which means that in the worst case the compressed data will be 1.5 times larger than the original.

Usage:

const THRESHOLD: u16 = 50;
let config = AztecConfigBuilder::new(THRESHOLD)
   .max_slope_line_len(4)
   .build()
   .expect("Invalid Config");

Structs§

AztecConfig
Configuration for the AZTEC compression algorithm. Use AztecConfigBuilder in order to create it.
AztecConfigBuilder
Builder for the AZTEC configuration

Enums§

AztecError

Functions§

compress
Compress the given data
decompress
Decompress the given data