code wiki / _hdl_build / nx_vcodec_color_test.nx

nx_vcodec_color_test.nx

buildroot/runtime/_hdl_build/nx_vcodec_color_test.nx

4203 B84 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_color_test.nx -- gate for the sovereign integer color foundation: RGB<->YCbCr (BT.601) round-trips within rounding error, gray is exact, plane conversion is per-pixel correct. Pure integer, sovereign, no third-party. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_vcodec_color.nx nx_vcodec_color_test.nx

imports: nx_vcodec_color.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts rgb_to_ycbcr clamp8 g_check g_puts ↻ rt_within rgb_to_ycbcr ↻ ycbcr_to_rgb clamp8 ↻ iabs rgb_frame_to_yuv sys_mmap rgb_to_ycbcr ↻ g_pn

structs

none

consts

none

functions

6func g_puts(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_checkmain
7func g_pn(v: i64) -> i64
called by 1: main
16func g_check(name: *u8, cond: i64) -> i64
called by 1: main calls 1: g_puts
20func iabs(v: i64) -> i64 { if v<0 { return 0-v } return v }
called by 1: rt_within
22func rt_within(r: i64, g: i64, b: i64, tol: i64) -> i64
called by 1: main calls 3: rgb_to_ycbcrycbcr_to_rgbiabs
33func main() -> i64