nx_ppm.nx
buildroot/runtime/nx_ppm.nx
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
imports: syscalls.nxnx_image.nx
imported by: nx_media_run.nxnx_media_run_gate.nx
structs
| none |
consts
| none |
functions
| 15 | func ppm_is_ws(c: i64) -> i64 called by 1: ppm_skip_ws |
| 22 | func ppm_skip_ws(buf: *u8, len: i64, pos: i64) -> i64 |
| 27 | func ppm_read_int(buf: *u8, len: i64, posptr: *i64) -> i64 |
| 39 | func ppm_parse(buf: *u8, len: i64) -> *Image |
| 61 | func ppm_wr_int(fd: i64, v: i64) -> i64 called by 1: ppm_write |
| 75 | func ppm_write(img: *Image, path: *u8) -> i64 |