code wiki / (root) / nx_img_convert_loop_gate.nx

nx_img_convert_loop_gate.nx

buildroot/runtime/nx_img_convert_loop_gate.nx

2831 B79 linesdepth 8pulls 14 transitivereach 0 importersview sourcekind gate/prooftopic img
docsdependenciesstructsconstsfunctions

about

nx_img_convert_loop_gate.nx -- full sovereign convert loop, gated. Proves the WHOLE pipeline composes correctly with ZERO 3rd-party: gradient -> nx_png_write (encode) -> file -> ss_readall -> nx_png_decode -> ASSERT decoded == original (byte-exact round-trip) -> nx_img_scale the DECODED pixels -> nx_png_write -> re-decode -> ASSERT dimensions. All organs already existed except the scaler/convert (DRY #15 reuse). Returns 0 iff every step holds; a nonzero code pinpoints the first failure.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_img_scale.nx nx_png_write.nx nx_png_decoder.nx nx_seg_store.nx nx_img_convert_loop_gate.nx

imports: nx_syscalls.nxnx_img_scale.nxnx_png_write.nxnx_png_decoder.nxnx_seg_store.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_png_write_rgb sys_openat_wr sys_mmap ↻ sys_write pw_chunk pw_u32be sys_mmap ↻ sys_write ↻ sys_write ↻ pw_crc_block pw_adler32 sys_close ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ nx_png_decode sys_mmap ↻ _png_check_signature _png_read_u32_be nx_crc32 nx_crc32_update nx_crc32_init nx_crc32_table_at _png_n_channels _png_bytes_per_pixel _png_n_channels ↻ _png_a7_expected _png_a7_col0 _png_a7_coli _png_a7_row0 _png_a7_rowi nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻

structs

none

consts

none

functions

16func main() -> i64