nx_av1_txfm_gate.nx
buildroot/runtime/nx_av1_txfm_gate.nx
about
nx_av1_txfm_gate.nx -- proves the AV1/AV2 transform primitives.
T1 pins the DIFFERENCE between Round2 and Round2Signed on negatives. They
agree on non-negative input and diverge below zero: Round2(-3,1) is -1,
Round2Signed(-3,1) is -2. Substituting one for the other yields a transform
that is correct on a test pattern of positives and half-wrong on real
signal. The gate asserts the divergence explicitly rather than testing each
in isolation, because testing them separately is exactly what lets the
substitution survive.
T4 pins the cosine table's QUADRANT SIGNS. Only angles 0..64 are stored;
the rest are reflections. A wrong sign in one quadrant inverts half the
basis functions and decodes to a recognisable-but-wrong image -- it does
not look like noise, so it ships easily. The test walks all four quadrants
and asserts the Pythagorean identity holds at 12-bit precision throughout.
T5 round-trips the Walsh-Hadamard pair over pseudo-random vectors --
the lossless path must be EXACTLY invertible, not approximately.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_av1_txfm.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 24 | func g_puts(s: *u8) -> i64 |
| 31 | func g_putn(v: i64) -> i64 |
| 45 | func main() -> i64 |