code wiki / (root) / nx_jpeg_ascii_test.nx

nx_jpeg_ascii_test.nx

buildroot/runtime/nx_jpeg_ascii_test.nx

4461 B135 linesdepth 9pulls 21 transitivereach 0 importersview sourcekind gate/prooftopic jpeg
docsdependenciesstructsconstsfunctions

about

nx_jpeg_ascii_test.nx -- KAT for the JPEG -> luminance ASCII bridge. Builds the same minimal grayscale 8x8 baseline JPEG used by nx_jpeg_decode_test (zero-coefficient block -> every luma sample == 128 after level shift), renders it through nx_jpeg_to_ascii_fb at native 8x8, and verifies: - the bridge returns NX_JPEG_ASCII_OK - the framebuffer is 8x8 grayscale RGBA with every pixel == 128 - nx_paint_fb_ascii_dump maps luminance 128 to 'o' (the 128..191 bucket) for all 64 content cells, with row newlines. expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_paint_solid_rect.nx nx_paint_fb_ascii_dump.nx nx_jpeg_ascii.nx nx_jpeg_ascii_test.nx

imports: nx_syscalls.nxnx_paint_solid_rect.nxnx_paint_fb_ascii_dump.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 _build_gray_jpeg nx_jpeg_to_ascii_fb sys_mmap ↻ nx_jpeg_decode_luma sys_mmap ↻ nx_jpeg_dec_ctx_init sys_mmap ↻ _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 prog_be16 nx_jpeg_prog_decode sys_mmap ↻ prog_be16 ↻ nx_jpeg_dqt_parse nx_jpeg_dht_parse nx_jpeg_dht_build_decode_t nx_jpeg_sos_parse prog_next_marker prog_scan sys_mmap ↻ nx_jpeg_huff_decode_symbol nx_jpeg_ent_extend nx_jpeg_ent_receive prog_refine_nz nx_jpeg_mcu_scratch_init sys_mmap ↻ nx_jpeg_idct_init_cos_tabl nx_jpeg_dequant_un_zigzag sys_mmap ↻ nx_jpeg_zigzag_inverse_tab nx_jpeg_idct_8x8 sys_mmap ↻

structs

none

consts

none

functions

20func _fail(n: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
42func _build_gray_jpeg(jpeg: *u8) -> i64
called by 1: main
94func main() -> i64