code wiki / (root) / nx_img_print.nx

nx_img_print.nx

buildroot/runtime/nx_img_print.nx

7611 B166 linesdepth 8pulls 26 transitivereach 0 importersview sourcekind tooltopic img
docsdependenciesstructsconstsfunctions

about

nx_img_print.nx -- PRINT A DOCUMENT WITH AN IMAGE, end to end sovereign: generate/Decode a PNG -> grayscale (nx_img_place) -> place on a page with a title (nx_doc_layout + nx_font8x8) -> URF -> Print-Job. Proves the full image pipeline: PNG decode (nx_png_decoder) + luminance + aspect-fit + scale-blit. Outward-facing (paper/toner) -- operator approved live printing. never-brick. license_tier: ORIGINAL genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 14 imports · 0 importers

nx_syscalls.nx nx_png_write.nx nx_png_decoder.nx nx_img_place.nx nx_font8x8.nx nx_doc_layout.nx nx_pwg_rle.nx nx_urf.nx nx_ipp_codec.nx nx_ipp_transport.nx nx_img_print.nx

diagram shows first 10 each side; +4 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_png_write.nxnx_png_decoder.nxnx_img_place.nxnx_font8x8.nxnx_doc_layout.nxnx_pwg_rle.nxnx_urf.nxnx_ipp_codec.nxnx_ipp_transport.nxnx_ipp_submit.nxnx_toner_meter.nxnx_toner_ledger.nxnx_toner_store.nx

imported by: nobody (leaf or entry point)

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

main p sys_write 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 pn sys_write ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ sys_exit 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

structs

none

consts

21const K_MAGIC_2550: i64 = 2550
22const K_MAGIC_3300: i64 = 3300
23const K_MAGIC_2200: i64 = 2200
24const K_MAGIC_2300: i64 = 2300
25const K_MAGIC_10000: i64 = 10000
26const K_MAGIC_262144: i64 = 262144
27const K_MAGIC_4096: i64 = 4096
28const K_MAGIC_131072: i64 = 131072
29const K_MAGIC_2048: i64 = 2048
30const K_MAGIC_32768: i64 = 32768
31const K_MAGIC_1500: i64 = 1500

functions

33func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
34func pn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
43func write_all(fd: i64, buf: *u8, len: i64) -> i64
called by 1: main calls 1: sys_write
49func main() -> i64