code wiki / (root) / nx_ppm.nx

nx_ppm.nx

buildroot/runtime/nx_ppm.nx

2847 B86 linesdepth 5pulls 6 transitivereach 2 importersview sourcekind librarytopic ppm
docsdependenciesstructsconstsfunctions

about

nx_ppm.nx -- binary PPM (P6) read/write, so organs can ingest and emit REAL image files instead of only synthetic in-memory pixels. The exposure substrate for the MEDIA-STUDIO arc (and reusable by reader/imagegen). P6 = "P6\n<width> <height>\n<maxval>\n<raw RGB bytes>". Comments (#) are not supported (sufficient for files we generate). Pure i64 + syscalls. genealogy_id: netpbm_ppm_p6 (record-hint) lineage_id: ascii_header_parse + raw_rgb_blit license_tier: ORIGINAL

dependencies 2 imports · 2 importers

syscalls.nx nx_image.nx nx_ppm.nx nx_media_run.nx nx_media_run_gate.nx

imports: syscalls.nxnx_image.nx

imported by: nx_media_run.nxnx_media_run_gate.nx

structs

none

consts

none

functions

15func ppm_is_ws(c: i64) -> i64
called by 1: ppm_skip_ws
22func ppm_skip_ws(buf: *u8, len: i64, pos: i64) -> i64
called by 1: ppm_read_int calls 1: ppm_is_ws
27func ppm_read_int(buf: *u8, len: i64, posptr: *i64) -> i64
called by 1: ppm_parse calls 1: ppm_skip_ws
39func ppm_parse(buf: *u8, len: i64) -> *Image
called by 2: mainmain calls 2: ppm_read_intnx_image_alloc
61func ppm_wr_int(fd: i64, v: i64) -> i64
called by 1: ppm_write
75func ppm_write(img: *Image, path: *u8) -> i64
called by 2: mainmain calls 2: sys_openat_wrppm_wr_int