code wiki / _hdl_build / nx_dash_get.nx
nx_dash_get.nx
buildroot/runtime/_hdl_build/nx_dash_get.nx
about
nx_dash_get.nx -- the DASH download ORCHESTRATOR (the parallel to nx_hls_get, composing this session's
pieces): dash_parse (.mpd -> segment URLs) -> rdl_fetch_retry (per-segment retry + integrity, so a corrupt
or dropped fragment is re-fetched, never stitched) -> concat (init + media) into one output. Format kind =
RDL_GENERIC (DASH is fMP4/.m4s; the whole-fragment bar is non-empty; a fMP4-box check is a later rung). A
live caller passes a TLS fetch_fn; the gate passes a failure-injecting one. Parallel = wrap pdl_download
(nx_pardl, measured 4x) over the seglist -- a follow-on; this orchestrator is serial-with-retry.
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_robust_dl.nxnx_dash_parse.nx
imported by: nx_dash_get_gate.nx
structs
| 17 | struct DgJob |
consts
| 10 | const K_MAGIC_262144: i64 = 262144 |
| 11 | const K_MAGIC_4096: i64 = 4096 |
| 12 | const K_MAGIC_2097152: i64 = 2097152 |
| 13 | const K_MAGIC_4095: i64 = 4095 |
functions
| 26 | func dg_download(mpd: *u8, ml: i64, job: *DgJob, outbuf: *u8, outcap: i64) -> i64 |