1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Aztec Code (ISO/IEC 24778) encoder and structural decoder.
//!
//! Layout:
//! - [`gf`] — Galois-field arithmetic and Reed–Solomon over GF(16/64/256/1024).
//! - `tables` — the five high-level character sets, codeword sizes and capacities.
//! - `layout` — bullseye, orientation marks, reference grid and the spiral path.
//! - `highlevel` — payload bytes ⇄ mode-switched bit stream, plus bit-stuffing.
//! - `encode` — [`Symbol`] → [`BitMatrix`].
//! - `decode` — [`BitMatrix`] → [`Symbol`].
//!
//! Coverage: compact symbols (1–4 layers) and full-range symbols (1–22 layers) are
//! encoded and structurally decoded. The payload round-trips losslessly (as a single
//! byte segment) and re-encodes byte-for-byte identically. Aztec Runes and ECI/FLG
//! escapes are not implemented.
//!
//! [`Symbol`]: crate::Symbol
//! [`BitMatrix`]: crate::output::BitMatrix
pub use AztecDecoder;
pub use AztecEncoder;
/// Aztec Code has no mandatory quiet zone.
const QUIET_ZONE: usize = 0;
/// The physical side length of a full-range symbol with `layers` layers, including
/// the inserted reference grid.
pub
/// Parameters required to re-encode an Aztec symbol identically (lossless
/// round-trip): the symbol type and its layer count. The high-level encodation is
/// deterministic, so these two fields plus the payload fully pin the matrix.