code wiki / _hdl_build / nx_grade.nx

nx_grade.nx

buildroot/runtime/_hdl_build/nx_grade.nx

4949 B97 linesdepth 9pulls 32 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_grade.nx -- run the ecosystem's photoreal grader (ns_assess) on ANY jpeg, print LEVEL + 5 axes. The RED-TEAM harness: feed it real photos, clay renders, and adversarial inputs (noise/flat/checker) to test whether the grader is HONEST or GAMEABLE. Same decode path the corpus grader uses. license_tier: ORIGINAL nx_grade <image.jpg> <label>

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_jpeg_ascii.nx nx_natstat.nx nx_png_decoder.nx nx_grade.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_jpeg_ascii.nxnx_natstat.nxnx_png_decoder.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close g_hw sys_write 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_bits_remainin _bs_peek_byte nx_bitstream_byte_align nx_bitstream_read_byte_ali nx_bitstream_byte_align ↻ _deflate_build_static_litl

structs

none

consts

10const K_65536: i64 = 65536

functions

12func g_hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n+1 } sys_write(1, s, n); return 0 }
called by 2: g_runmain calls 1: sys_write
17func g_pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 2: g_runmain calls 1: nxi_out
20func g_run(fb: *i64, iw: i64, ih: i64, label: *u8) -> i64
43func main(argc: i64, argv: *i64) -> i64