Skip to main content

Module period

Module period 

Source
Expand description

PeriodStart derivation and Period kinds (ISO/IEC 23009-1 5.3.2.1).

The five rules are a plain list in the standard, evaluated here per Period in document order:

  1. @start present: PeriodStart = @start.
  2. @start absent, previous Period has @duration: previous start plus previous duration.
  3. @start absent, first Period of a static MPD: 0.
  4. @start absent, first Period or previous without @duration, dynamic MPD: Early Available Period (no PeriodStart yet).
  5. @duration present and (the next Period has @start or MPD@minimumUpdatePeriod exists): Early Terminated Period.

Structs§

PeriodTiming
A Period’s place on the presentation timeline.

Enums§

PeriodKind
5.3.2.1 Period kind.

Functions§

duration_us
Duration to microseconds.
period_timings
Derive the timing of every Period of mpd, in document order.