code wiki / (root) / nx_img_adapt_gate.nx

nx_img_adapt_gate.nx

buildroot/runtime/nx_img_adapt_gate.nx

2513 B71 linesdepth 10pulls 36 transitivereach 0 importersview sourcekind gate/prooftopic img
docsdependenciesstructsconstsfunctions

about

nx_img_adapt_gate.nx -- unit-tests channel adaptation (nx_img_to_rgb) for every PNG channel count, plus an RGB regression through the unified converter. (Self-encoding gray/RGBA PNGs isn't possible -- nx_png_write is RGB-only -- so the adapter is proven directly; the PNG branch wires it.)

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_img_resample.nx nx_png_decoder.nx nx_seg_store.nx nx_media_convert.nx nx_img_adapt_gate.nx

imports: nx_syscalls.nxnx_img_resample.nxnx_png_decoder.nxnx_seg_store.nxnx_media_convert.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ nx_img_to_rgb nx_media_convert_file sys_mmap ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_png_decode sys_mmap ↻ _png_check_signature _png_read_u32_be nx_crc32 nx_crc32_update nx_crc32_init nx_crc32_table_at _png_n_channels _png_bytes_per_pixel _png_n_channels ↻ _png_a7_expected _png_a7_col0 _png_a7_coli _png_a7_row0

structs

none

consts

none

functions

12func main() -> i64