code wiki / (root) / nx_av1_seq_gate.nx

nx_av1_seq_gate.nx

buildroot/runtime/nx_av1_seq_gate.nx

7787 B174 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic av1
docsdependenciesstructsconstsfunctions

about

nx_av1_seq_gate.nx -- proves the AV1/AV2 sequence header by ROUND-TRIP. T3 is the one worth having: the frame dimension is written in a field whose WIDTH is itself coded immediately before it. A parser using a fixed width happens to work near 16-bit sizes and mis-parses everything after the field on any other size, because the bit cursor is then wrong for the whole rest of the header. T3 round-trips dimensions spanning 1 to 65536 -- 1x1, 64x64, 1920x1080, 3840x2160, 65536x65536 -- so a fixed-width reader cannot pass. T5 covers the AVIF shapes specifically: 8/10/12-bit, monochrome, and 4:2:0 vs 4:4:4, since those are what a still image actually carries. NON-VACUITY: T6 covers refusals -- a non-reduced header (unsupported here, and refused rather than half-parsed), a bad profile, 12-bit outside profile 2, and zero dimensions. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_bitstream.nx nx_av1_seq.nx nx_av1_seq_gate.nx

imports: nx_syscalls.nxnx_bitstream.nxnx_av1_seq.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_av1_bits_for sys_mmap nx_av1_bw_new sys_mmap ↻ nx_av1_bw_put nx_av1_bw_bytes nx_av1_seq_write_still nx_av1_bw_new ↻ nx_av1_bw_put ↻ nx_av1_bits_for ↻ nx_av1_bw_bytes ↻ nx_av1_seq_parse nx_bitstream_alloc sys_mmap ↻ nx_bitstream_read_msb nx_bitstream_bits_remainin _bs_peek_byte g_puts sys_write sys_exit g_putn sys_mmap ↻ g_puts ↻ sys_write ↻

structs

none

consts

none

functions

22func g_puts(s: *u8) -> i64
called by 2: g_putnmain calls 1: sys_write
29func g_putn(v: i64) -> i64
called by 1: main calls 3: sys_mmapg_putssys_write
43func main() -> i64