nx_img_print.nx
buildroot/runtime/nx_img_print.nx
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
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
structs
| none |
consts
| 21 | const K_MAGIC_2550: i64 = 2550 |
| 22 | const K_MAGIC_3300: i64 = 3300 |
| 23 | const K_MAGIC_2200: i64 = 2200 |
| 24 | const K_MAGIC_2300: i64 = 2300 |
| 25 | const K_MAGIC_10000: i64 = 10000 |
| 26 | const K_MAGIC_262144: i64 = 262144 |
| 27 | const K_MAGIC_4096: i64 = 4096 |
| 28 | const K_MAGIC_131072: i64 = 131072 |
| 29 | const K_MAGIC_2048: i64 = 2048 |
| 30 | const K_MAGIC_32768: i64 = 32768 |
| 31 | const K_MAGIC_1500: i64 = 1500 |
functions
| 33 | func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 34 | func pn(v: i64) -> i64 |
| 43 | func write_all(fd: i64, buf: *u8, len: i64) -> i64 |
| 49 | func main() -> i64 |