nx_jpeg_ascii_test.nx
buildroot/runtime/nx_jpeg_ascii_test.nx
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
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
structs
| none |
consts
| none |
functions
| 20 | func _fail(n: i64) -> i64 |
| 42 | func _build_gray_jpeg(jpeg: *u8) -> i64 called by 1: main |
| 94 | func main() -> i64 |