code wiki / _hdl_build / nx_bmp_to_png.nx

nx_bmp_to_png.nx

buildroot/runtime/_hdl_build/nx_bmp_to_png.nx

1985 B46 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic bmp
docsdependenciesstructsconstsfunctions

about

nx_bmp_to_png.nx -- convert a rendered BMP to PNG (top crop) so it can be VIEWED. Reads the styled wiki render, takes the top rows (the visible part), writes a PNG via the sovereign nx_png_write.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_png_write.nx nx_bmp_to_png.nx

imports: nx_syscalls.nxnx_png_write.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_write bp_u32le 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 ↻

structs

none

consts

5const K_MAGIC_5000: i64 = 5000

functions

7func bp_u32le(b: *u8, off: i64) -> i64
called by 1: main
11func main() -> i64