Skip to main content

Module plan

Module plan 

Source
Expand description

The lazy Segment plan of one Representation within one Period.

Formulas (all integer, i128 microseconds; ticks via @timescale, which defaults to 1):

  • $Number$ with @duration: MPDstart(n) = (n - startNumber) * d, n = startNumber + k - 1 (5.3.9.5.3; the printed (kstart-1) variant is a misprint settled by the real captures, DESIGN section 11 item 1). The last segment of a Period is PeriodEnd - start (A.3.3 case 1); @endNumber caps the count; neither @duration nor a timeline is one segment starting at 0 (A.3.3 case 3).
  • Timeline: $Time$ is the raw S@t (decision D3: the standard’s three statements disagree when @presentationTimeOffset != 0); the Period-relative start is (time - PTO) / timescale (5.3.9.6.1).
  • Availability (dynamic only): crate::timing::availability.

Structs§

DynamicContext
What a dynamic MPD adds to the plan.
PlanInput
Everything SegmentPlan::build needs.
ResourceRef
An Initialization or Index Segment address.
SegmentPlan
The ordered Media Segments of one Representation in one Period.
SegmentRef
One Media Segment.