code wiki / (root) / nx_jpeg_ppm_dump_test.nx

nx_jpeg_ppm_dump_test.nx

buildroot/runtime/nx_jpeg_ppm_dump_test.nx

2439 B72 linesdepth 9pulls 21 transitivereach 0 importersview sourcekind gate/prooftopic jpeg
docsdependenciesstructsconstsfunctions

about

nx_jpeg_ppm_dump_test.nx -- COLOR proof dumper for the bits-up JPEG decoder. Reads the staged real source.jpg, decodes it to full-resolution RGB via nx_jpeg_decode_rgb (decode + chroma upsample + YCbCr->RGB), and writes a binary PPM (P6) so the Windows GDI+ decode can be diffed against it per-channel. Asserts dims == 239x178, then emits the PPM. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_jpeg_ascii.nx nx_jpeg_ppm_dump_test.nx

imports: nx_syscalls.nxnx_jpeg_ascii.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 ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_jpeg_decode_rgb sys_mmap ↻ nx_jpeg_dec_ctx_init sys_mmap ↻ nx_jpeg_ctx_tables_reset nx_jpeg_ctx_htable_at nx_jpeg_ctx_htable_bind nx_jpeg_ctx_htable_at ↻ nx_jpeg_ctx_qtable_at _jpeg_ascii_probe_sof sys_mmap ↻ nx_jpeg_seg_init nx_jpeg_seg_next nx_jpeg_classify_marker nx_jpeg_marker_is_lengthle nx_jpeg_sof_parse nx_jpeg_is_progressive

structs

none

consts

none

functions

15func _put_dec(buf: *u8, pos: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
27func main() -> i64