code wiki / (root) / nx_img_adapt_gate.nx

nx_img_adapt_gate.nx

buildroot/runtime/nx_img_adapt_gate.nx

2513 B71 linesdepth 10pulls 35 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 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 _png_a7_rowi nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc sys_mmap ↻ _deflate_inflate_block nx_bitstream_read_lsb nx_bitstream_byte_align nx_bitstream_read_byte_ali _deflate_build_static_litl _deflate_build_static_dist _deflate_decode_huffman_bl

structs

none

consts

none

functions

12func main() -> i64