code wiki / _hdl_build / nx_png_textw.nx
nx_png_textw.nx
buildroot/runtime/_hdl_build/nx_png_textw.nx
about
nx_png_textw.nx -- sovereign PNG tEXt-chunk WRITER. The reader (_pe_pngtext_locate) already
existed; this is its missing twin. Inserts GENREC provenance tEXt chunks (seed / model / sampler
/ steps / generator_host / prompt) into an existing complete PNG, just before its IEND chunk,
each with a correct CRC32 -> the image self-describes its generation factors AND nx_store_ingest
harvests them into the content-addressed gallery store. Used by nx_gen_orchestrator.
license_tier: ORIGINAL
dependencies 1 imports · 3 importers
imports: nx_syscalls.nx
imported by: nx_gen_cid_gate.nxnx_gen_pipeline.nxnx_png_textw_gate.nx
structs
| none |
consts
| none |
functions
| 9 | func pw_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: pw_text |
| 12 | func pw_text(b: *u8, off: i64, kw: *u8, val: *u8) -> i64 |
| 44 | func pw_find_iend(src: *u8, srclen: i64) -> i64 called by 1: png_insert_genrec |
| 63 | func png_insert_genrec(src: *u8, srclen: i64, seed: *u8, model: *u8, sampler: *u8, steps: *u8, host: *u8, prompt: *u8, size: *u8, args: *u8, dst: *u8) -> i64 |