forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust375.4 MiB5357ed1Tahinli17 minutes ago4120 commits

mod.rs25 lines, 869 bytesHistoryRawDownload
1//! Reference vectors for the `freq_tables` tests: 500 configurations sampled from the
2//! same `freq_tables()` Python function the project ledger records as checked against a
3//! reference decoder over 6387 configurations; regenerate with
4//! `scripts/aac-tables/sbrtables.py`'s `freq_tables` if that function ever changes.
5
6mod part0;
7mod part1;
8
9/// `(sbr_rate, start_freq, stop_freq, freq_scale, alter_scale, noise_bands,
10/// xover_band, expected)`, `expected` being `(n_master, n_high, n_low, n_q,
11/// f_high, f_low, f_noise)`.
12#[allow(clippy::type_complexity)]
13pub(super) type Vector = (
14 u32,
15 usize,
16 usize,
17 i32,
18 i32,
19 i32,
20 usize,
21 Option<(usize, usize, usize, usize, &'static [i64], &'static [i64], &'static [i64])>,
22);
23
24/// All reference vectors, in two parts.
25pub(super) static VECTORS: &[&[Vector]] = &[part0::PART, part1::PART];