Skip to main content

Module template

Module template 

Source
Expand description

SegmentTemplate identifier scanning and substitution (ISO/IEC 23009-1 5.3.9.4.4, Table 21).

The scan is strict: a $ that does not enclose a known identifier makes the whole template invalid, which the spec resolves by dropping the containing Representation (5.3.9.4.4 step 2). Format tags are %0<width>d only. Substitution itself is transmux::SegmentTemplate::resolve, so the two crates cannot disagree about widths or $$.

Structs§

TemplateUse
Which identifiers a template contains.

Enums§

TemplateFault
Why a template is invalid.

Functions§

scan
Scan template and report the identifiers it uses.
scan_initialization
Validate an initialization template: neither $Number$ nor $Time$.
scan_media
Validate a media/index template: exactly one of $Number$/$Time$.
substitute
Substitute the identifiers of an already scanned template.