code wiki / _hdl_build / nx_dash_get.nx

nx_dash_get.nx

buildroot/runtime/_hdl_build/nx_dash_get.nx

2844 B61 linesdepth 3pulls 4 transitivereach 1 importersview sourcekind librarytopic dash
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_robust_dl.nx nx_dash_parse.nx nx_dash_get.nx nx_dash_get_gate.nx

imports: nx_syscalls.nxnx_robust_dl.nxnx_dash_parse.nx

imported by: nx_dash_get_gate.nx

structs

17struct DgJob

consts

10const K_MAGIC_262144: i64 = 262144
11const K_MAGIC_4096: i64 = 4096
12const K_MAGIC_2097152: i64 = 2097152
13const K_MAGIC_4095: i64 = 4095

functions

26func dg_download(mpd: *u8, ml: i64, job: *DgJob, outbuf: *u8, outcap: i64) -> i64