nx_legacy_codec_gate.nx
buildroot/runtime/nx_legacy_codec_gate.nx
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
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
structs
| none |
consts
| 27 | const LG_DIR: i64 = 0 |
functions
| 30 | func lg_px(rgb: *u8, w: i64, x: i64, y: i64, r: i64, g: i64, b: i64) -> i64 called by 1: main |
| 39 | func lg_read(name: *u8, box: *i64) -> *u8 |
| 43 | func main() -> i64 |