code wiki / _hdl_build / nx_caption_burn.nx
nx_caption_burn.nx
buildroot/runtime/_hdl_build/nx_caption_burn.nx
about
nx_caption_burn.nx -- burn a caption (e.g. a translated subtitle) onto a video FRAME (Framebuffer): an
opaque caption BAR across the bottom + the caption text centered, integer scale, NO float. Composes the
proven bits-up paint substrate (nx_paint_solid_rect + nx_paint_text_scaled over the 5x7 bitmap font). A
caption TRACK = timestamped [t0,t1) segments; cb_active_at(t) selects the on-screen line (or -1). This is
the live-translation RENDER core -- ASR (speech->text) + open-domain MT are RESEARCHER long-poles; the
phrase-table MT (nx_mt_phrasetable) feeds it translated bytes for the gated R1 vertical. license_tier: ORIGINAL
dependencies 5 imports · 1 importers
imports: nx_syscalls.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_font_bitmap_5x7.nxnx_paint_text.nx
imported by: nx_caption_burn_gate.nx
structs
| none |
consts
| none |
functions
| 14 | func cb_active_at(t0s: *i64, t1s: *i64, nseg: i64, t: i64) -> i64 called by 1: main |
| 25 | func nx_caption_burn(fb: *Framebuffer, text: *u8, len: i64, scale: i64, |