code wiki / _hdl_build / nx_caption_burn_gate.nx

nx_caption_burn_gate.nx

buildroot/runtime/_hdl_build/nx_caption_burn_gate.nx

5149 B103 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic caption
docsdependenciesstructsconstsfunctions

about

nx_caption_burn_gate.nx -- proves the live-translation RENDER vertical end-to-end, NO fake green: EN caption -> nx_mt_phrasetable EN->ES -> nx_caption_burn burns it onto a 320x180 "video" frame. Rows: (1) caption active at t=1000ms, (2) burn sets text pixels, (3) the bottom bar is drawn (bar color), (4) the VIDEO area above the bar is PRESERVED (caption doesn't clobber the frame), (5) neg-control: at t=5000ms NO caption is active (cb_active_at=-1) so nothing burns -> the bar region stays video-colored. Eyeball -> knowledge/nx_caption_burn.png. expect_exit: 0 license_tier: ORIGINAL

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_css_color_decode.nx nx_paint_solid_rect.nx nx_font_bitmap_5x7.nx nx_paint_text.nx nx_caption_burn.nx nx_mt_phrasetable.nx nx_png_write.nx nx_caption_burn_gate.nx

imports: nx_syscalls.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_font_bitmap_5x7.nxnx_paint_text.nxnx_caption_burn.nxnx_mt_phrasetable.nxnx_png_write.nx

imported by: nobody (leaf or entry point)

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

main cg sys_write sys_mmap nx_framebuffer_init nx_framebuffer_clear nx_paint_solid_rect nx_mt_translate sys_mmap ↻ mt_appb mt_es_for mt_tok_eq mt_lc mt_app sys_write ↻ cb_active_at nx_caption_burn nx_paint_solid_rect ↻ nx_paint_text_scaled nx_paint_text _paint_text_glyph nx_font_5x7_glyph_row _paint_text_pixel nx_font_5x7_glyph_row ↻ _paint_text_pixel ↻ cgn sys_write ↻ sys_mmap ↻ nx_framebuffer_get_pixel px_is nx_png_write_rgb sys_openat_wr sys_mmap ↻ sys_write ↻ pw_chunk pw_u32be sys_mmap ↻ sys_write ↻ sys_write ↻ pw_crc_block

structs

none

consts

none

functions

16func cg(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 1: main calls 1: sys_write
17func cgn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
26func px_is(p: *CssColor, r: i64, g: i64, b: i64) -> i64 { if p.r==r { if p.g==g { if p.b==b { return 1 } } } return 0 }
called by 1: main
28func main() -> i64