code wiki / _hdl_build / nx_webp_dump.nx

nx_webp_dump.nx

buildroot/runtime/_hdl_build/nx_webp_dump.nx

2383 B49 linesdepth 8pulls 8 transitivereach 0 importersview sourcekind orphan librarytopic webp
docsdependenciesstructsconstsfunctions

about

nx_webp_dump.nx -- LOOK-gate probe: decode _build/kat_vp8l.webp through the REAL consumer entry (nx_webp_decode_rgb) and dump the raw RGB bytes to _build/kat_rgb.bin so an operator/session can render and EYEBALL the result (a multi-colour assert cannot see wrong colours). license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_webp_decode.nx nx_webp_vp8l.nx nx_webp_dump.nx

imports: nx_syscalls.nxnx_webp_decode.nxnx_webp_vp8l.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

9func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
10func pn(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{pw("-\x00" as *u8);m=0-m} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
12func main(argc: i64, argv: *i64) -> i64