code wiki / (root) / nx_img_convert.nx

nx_img_convert.nx

buildroot/runtime/nx_img_convert.nx

2205 B48 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic img
docsdependenciesstructsconstsfunctions

about

nx_img_convert.nx -- sovereign image CONVERT (resize -> encode), end-to-end. Composes the sovereign resampler (nx_img_scale) + the sovereign PNG encoder (nx_png_write) -- ZERO 3rd-party. This is the "upscaling/downscaling when media is converted" path: pixels in -> scaled -> real PNG out that any viewer can see. Reuses existing organs (DRY #15) rather than rebuilding decode/ encode that a parallel media-stack workstream already shipped. The input-decode side (real PNG/JPEG -> pixels via nx_png_decode / nx_jpeg_decode -> here) is the immediate next rung. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_img_scale.nx nx_png_write.nx nx_img_convert.nx

imports: nx_syscalls.nxnx_img_scale.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 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 nx_img_convert_rgb_to_png sys_mmap ↻ nx_img_scale_bilinear _img_srccoord _img_clamp _img_clamp ↻ nx_png_write_rgb ↻

structs

none

consts

none

functions

19func nx_img_convert_rgb_to_png(src: *u8, sw: i64, sh: i64,
28func main() -> i64