code wiki / (root) / nx_media_convert_jpeg_gate.nx

nx_media_convert_jpeg_gate.nx

buildroot/runtime/nx_media_convert_jpeg_gate.nx

1892 B41 linesdepth 10pulls 35 transitivereach 0 importersview sourcekind gate/prooftopic media
docsdependenciesstructsconstsfunctions

about

nx_media_convert_jpeg_gate.nx -- proves the unified file converter handles real JPEG input (sovereign decode) AND PNG input via one sniff-dispatch entry, and fails closed on unknown formats. Verified by RE-DECODING the output and asserting dimensions -- no image-content rendering needed.

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_media_convert_jpeg_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 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 sys_mmap ↻ _deflate_build_dynamic_tre

structs

none

consts

none

functions

13func _dims_ok(path: *u8, ew: i64, eh: i64) -> i64
26func main() -> i64