code wiki / _hdl_build / nx_bmp_tiff_gate.nx
nx_bmp_tiff_gate.nx
buildroot/runtime/_hdl_build/nx_bmp_tiff_gate.nx
about
nx_bmp_tiff_gate.nx -- gate for C4 of the codec-chokepoint program (debt 1785903075): BMP READER
(1/8/24-bit, RLE8, bottom-up AND top-down) + baseline TIFF READER (LE+BE, strips, none+PackBits,
gray/RGB/palette) + chokepoint wiring. Fixtures are hand-assembled byte-exact files; the LZW tooth
proves the TIFF reader REFUSES what it cannot decode instead of emitting a wrong image; the BMP
witness is a real on-disk screenshot from the nishi-os lane. Inherits nx_gate_verdict.
license_tier: ORIGINAL expect_exit: 0
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_bmp_decode.nxnx_tiff_decode.nxnx_img_bytes_to_rgb.nxnx_image.nxnx_bmp.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
| 15 | func bt_w16(b: *u8, o: i64, v: i64) -> i64 { b[o]=(v&255) as u8; b[o+1]=((v>>8)&255) as u8; return o+2 } |
| 16 | func bt_w32(b: *u8, o: i64, v: i64) -> i64 { b[o]=(v&255) as u8; b[o+1]=((v>>8)&255) as u8; b[o+2]=((v>>16)&255) as u8; b[o+3]=((v>>24)&255) as u8; return o+4 } |
| 18 | func bt_e16(b: *u8, o: i64, v: i64, le: i64) -> i64 { if le==1 { return bt_w16(b,o,v) } b[o]=((v>>8)&255) as u8; b[o+1]=(v&255) as u8; return o+2 } |
| 19 | func bt_e32(b: *u8, o: i64, v: i64, le: i64) -> i64 { if le==1 { return bt_w32(b,o,v) } b[o]=((v>>24)&255) as u8; b[o+1]=((v>>16)&255) as u8; b[o+2]=((v>>8)&255) as u8; b[o+3]=(v&255) as u8; return o+4 } |
| 21 | func bt_ent(b: *u8, o: i64, tag: i64, ty: i64, cnt: i64, val: i64, le: i64) -> i64 |
| 33 | func bt_bmp_hdr(b: *u8, w: i64, h: i64, bits: i64, comp: i64, data_off: i64, imgsz: i64) -> i64 |
| 51 | func main() -> i64 |