nx_h264_cavlc_rt_gate.nx
buildroot/runtime/nx_h264_cavlc_rt_gate.nx
about
nx_h264_cavlc_rt_gate.nx -- SOVEREIGN round-trip oracle for CAVLC level codec.
No third-party reference: the ENCODER (nx_h264_cavlc_enc) and DECODER
(nx_h264_cavlc_level) are gated as an inverse pair.
(a) BitWriter sanity: write bits, read them back identically.
(b) ANCHOR vs canonical code words: encode(+1,sl0) -> "1" (0x80, 1 bit);
encode(-1,sl0) -> "01" (0x40, 2 bits). Pins the encoder to the spec.
(c) ROUND-TRIP: for many (level, suffixLength) pairs, encode -> decode ->
must recover the exact level. Proves both codecs correct (anchor (b)
rules out a shared wrong table on these entries).
Every value PRINTED. stdout + knowledge/status/h264_cavlc_rt_gate.log. Exit 0/1.
Sovereign: nx_syscalls + nx_h264_bitwriter + nx_h264_cavlc_enc + nx_h264_bits + nx_h264_cavlc_level.
license_tier: ORIGINAL
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_h264_bitwriter.nxnx_h264_cavlc_enc.nxnx_h264_bits.nxnx_h264_cavlc_level.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
| 19 | func gp(logfd: i64, s: *u8) -> i64 |
| 26 | func gn(logfd: i64, v: i64) -> i64 |
| 41 | func main() -> i64 |