Skip to main content

Module base_index

Module base_index 

Source
Expand description

SegmentBase + sidx: the on-demand profile’s segment ranges (ISO/IEC 23009-1 5.3.9.5.4; ISO/IEC 14496-12:2026 8.14.3).

The Representation is one file; @indexRange locates its sidx box. The sidx offsets are anchored at the first byte after the box (14496-12:2026 8.14.3), so each reference’s byte range follows from the box alone.

Structs§

IndexedSegment
One subsegment described by a sidx.

Functions§

anchor_after
The anchor offset: the first byte after the index box, i.e. indexRange.last + 1.
parse_index
Parse the bytes of @indexRange (the whole sidx box, header included).
segments
The subsegments of sidx, with byte ranges relative to the file start. anchor is anchor_after of the @indexRange.