code wiki / (root) / nx_legacy_codec_gate.nx

nx_legacy_codec_gate.nx

buildroot/runtime/nx_legacy_codec_gate.nx

11681 B289 linesdepth 10pulls 46 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_legacy_codec_gate.nx -- gate for the 1990s reader set: TGA, PCX, ICO/CUR and PNM, plus their chokepoint wiring. NO THIRD-PARTY FILE OF ANY OF THESE FORMATS EXISTS ANYWHERE UNDER knowledge/ (measured: a full extension census returned zero, and a magic scan over 40,000 files found only our own containers). So the witness is a MATURE INDEPENDENT ENCODER -- PIL/libtga/libpcx wrote every fixture in knowledge/fixtures/legacy_codec, and the expected pixels below are that encoder's OWN read-back, not our assumption about what it wrote. Same standing as the BMP writer/reader round-trip: two independent implementations agreeing byte-exactly. The probe image is 7x5 -- odd, and not a multiple of 8 -- so every stride pad, plane split and row-order bug has somewhere to show. Its pixels vary in BOTH axes, so a vertical flip, a horizontal flip and a transpose are all separately detectable; a symmetric fixture would pass while mirrored. license_tier: ORIGINAL expect_exit: 0

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_tga_decode.nx nx_pcx_decode.nx nx_ico_decode.nx nx_pnm_decode.nx nx_img_bytes_to_rgb.nx nx_legacy_codec_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_tga_decode.nxnx_pcx_decode.nxnx_ico_decode.nxnx_pnm_decode.nxnx_img_bytes_to_rgb.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap gv_head gv_puts sys_write sys_mmap ↻ lg_read sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close tga_decode_rgb tga_b tga_u16 tga_b ↻ sys_mmap ↻ tga_unrle tga_b ↻ tga_px tga_b ↻ tga_u16 ↻ tga_x5 lg_px gv_check gv_puts ↻ pcx_decode_rgb pcx_b pcx_u16 pcx_b ↻ sys_mmap ↻ pcx_row pcx_b ↻ ico_decode_rgb ico_u16 ico_b ico_b ↻ ico_u32

structs

none

consts

27const LG_DIR: i64 = 0

functions

30func lg_px(rgb: *u8, w: i64, x: i64, y: i64, r: i64, g: i64, b: i64) -> i64
called by 1: main
39func lg_read(name: *u8, box: *i64) -> *u8
called by 1: main calls 1: sys_read_file
43func main() -> i64