pub struct SegmentIndexBoxReference {
pub reference_type: bool,
pub referenced_size: u32,
pub subsegment_duration: u32,
pub starts_with_sap: bool,
pub sap_type: u8,
pub sap_delta_time: u32,
}Expand description
Reference in a SegmentIndexBox.
Fields§
§reference_type: boolWhen set to 1 indicates that the reference is to a SegmentIndexBox; otherwise the
reference is to media content (e.g., in the case of files based on this document, to a
MovieFragmentBox).
If a separate index segment is used, then entries with reference type 1 are in the index segment,
and entries with reference type 0 are in the media file.
referenced_size: u32The distance in bytes from the first byte of the referenced item to the first byte of the next referenced item, or in the case of the last entry, the end of the referenced material.
subsegment_duration: u32When the reference is to SegmentIndexBox, this field carries the sum of the
subsegment_duration fields in that box; when the reference is to a subsegment, this field carries
the difference between the earliest presentation time of any access unit of the reference stream
in the next subsegment (or the first subsegment of the next segment, if this is the last subsegment
of the segment, or the end presentation time of the reference stream if this is the last subsegment
of the stream) and the earliest presentation time of any access unit of the reference stream in the
referenced subsegment; the duration is in the same units as earliest_presentation_time.
starts_with_sap: boolIndicates whether the referenced subsegments start with a SAP. For the detailed semantics of this field in combination with other fields, see Table 6.
sap_type: u8Indicates a SAP type as specified in Annex I, or the value 0. Other type values are reserved. For the detailed semantics of this field in combination with other fields, see the table below.
sap_delta_time: u32Indicates T_SAP of the first SAP, in decoding order, in the referenced subsegment for the
reference stream. If the referenced subsegments do not contain a SAP, SAP_delta_time is reserved
with the value 0; otherwise SAP_delta_time is the difference between the earliest presentation
time of the subsegment, and the TSAP (this difference may be zero, in the case that the subsegment
starts with a SAP).