code wiki / _hdl_build / nx_caption_burn_gate.nx
nx_caption_burn_gate.nx
buildroot/runtime/_hdl_build/nx_caption_burn_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 16 | func cg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 17 | func cgn(v: i64) -> i64 |
| 26 | func 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 |
| 28 | func main() -> i64 |