code wiki / (root) / nx_region_edge_compare_t278.nx

nx_region_edge_compare_t278.nx

buildroot/runtime/nx_region_edge_compare_t278.nx

5059 B81 linesdepth 8pulls 34 transitivereach 0 importersview sourcekind tooltopic region
docsdependenciesstructsconstsfunctions

about

nx_region_edge_compare_t278.nx -- Compares texture regions and their associated data between two binary files for equality.

dependencies 2 imports · 0 importers

nx_nxa_texbake_region_lib.nx nx_png_decoder.nx nx_region_edge_compare_t278.nx

imports: nx_nxa_texbake_region_lib.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 ntr_texr_find ntr_texr_validate nxa_section_entry nxa_magic nxa_check2 nxa_tag4 ec_equal ntr_texr_set ntr_texr_find ↻ nx_png_decode 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 ↻ _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

structs

none

consts

none

functions

4func ec_equal(a:*u8,b:*u8,n:i64)->i64{var i:i64=0;while i<n{if a[i]!=b[i]{return 0};i=i+1};return 1}
called by 1: main
5func ec_h(p:*u8,res:i64,x:i64,y:i64)->i64{let o:i64=(y*res+x)*3;return ntr_h_dec((p[o] as i64)*256+(p[o+1] as i64))}
called by 1: main calls 1: ntr_h_dec
6func ec_sign(v:i64)->i64{if v<0{return 0-1};if v>0{return 1};return 0}
called by 1: main
7func main(argc:i64,argv:*i64)->i64