code wiki / (root) / nx_h264_intra_gate.nx

nx_h264_intra_gate.nx

buildroot/runtime/nx_h264_intra_gate.nx

4546 B112 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_intra_gate.nx -- REFEREE for Intra_4x4 prediction + the FULL reconstruction math chain. Hand-computed exact vectors: Vertical: top=[10,20,30,40] -> every row [10,20,30,40] Horizontal:left=[50,60,70,80] -> row y all = left[y] DC both: top sum100 + left sum260 -> (360+4)>>3 = 45 DC top: (100+2)>>2 = 25 ; DC neither = 128 CAPSTONE: pred=DC45 + residual(level16 DC -> dequant160 -> idct = 3) -> clip(45+3) = 48 for all 16 samples. This is the WHOLE reconstruction math chain minus the entropy decode. Every value PRINTED. stdout + knowledge/status/h264_intra_gate.log. Exit 0/1. Sovereign: nx_syscalls + nx_h264_intra + nx_h264_dequant + nx_h264_idct. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_h264_intra.nx nx_h264_dequant.nx nx_h264_idct.nx nx_h264_intra_gate.nx

imports: nx_syscalls.nxnx_h264_intra.nxnx_h264_dequant.nxnx_h264_idct.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_append gp sys_write sys_mmap nx_intra4x4_pred gn sys_mmap ↻ sys_write ↻ zero16 nx_h264_dequant4x4 nx_dq_posclass nx_dq_normadjust nx_idct4x4 sys_mmap ↻ nx_idct4x4_s asr nx_idct_add_clip sys_close sys_exit

structs

none

consts

none

functions

18func gp(logfd: i64, s: *u8) -> i64
called by 1: main calls 1: sys_write
25func gn(logfd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
39func zero16(d: *i64) -> i64 { var i: i64 = 0; while i < 16 { d[i] = 0; i = i + 1 } return 0 }
called by 1: main
41func main() -> i64