pub struct SegmentIndexBox {
pub full_header: FullBoxHeader,
pub reference_id: u32,
pub timescale: u32,
pub earliest_presentation_time: u64,
pub first_offset: u64,
pub reserved: u16,
pub reference_count: u16,
pub references: Vec<SegmentIndexBoxReference>,
}Expand description
Segment index box
ISO/IEC 14496-12 - 8.16.3
Fields§
§full_header: FullBoxHeaderThe full box header.
reference_id: u32Provides the stream ID for the reference stream; if this SegmentIndexBox is referenced
from a “parent” SegmentIndexBox, the value of reference_ID shall be the same as the value of
reference_ID of the “parent” SegmentIndexBox.
timescale: u32Provides the timescale, in ticks per second, for the time and duration fields within this box; it is recommended that this match the timescale of the reference stream or track; for files based on this document, that is the timescale field of the media header box of the track.
earliest_presentation_time: u64The earliest presentation time of any content in the reference stream in the first subsegment, in the timescale indicated in the timescale field; the earliest presentation time is derived from media in access units, or parts of access units, that are not omitted by an edit list (if any).
first_offset: u64The distance in bytes, in the file containing media, from the anchor point, to the first byte of the indexed material.
reserved: u16Reserved 16 bits, must be set to 0.
reference_count: u16Provides the number of referenced items.
references: Vec<SegmentIndexBoxReference>The referenced items.
Trait Implementations§
Source§impl Debug for SegmentIndexBox
impl Debug for SegmentIndexBox
Source§impl<'a> Deserialize<'a> for SegmentIndexBox
impl<'a> Deserialize<'a> for SegmentIndexBox
Source§fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize<R>(reader: R) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl<'a> DeserializeSeed<'a, BoxHeader> for SegmentIndexBox
impl<'a> DeserializeSeed<'a, BoxHeader> for SegmentIndexBox
Source§fn deserialize_seed<R>(reader: R, _seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
fn deserialize_seed<R>(reader: R, _seed: BoxHeader) -> Result<Self>where
R: ZeroCopyReader<'a>,
Source§impl IsoBox for SegmentIndexBox
impl IsoBox for SegmentIndexBox
Source§fn add_header_size(payload_size: usize) -> usize
fn add_header_size(payload_size: usize) -> usize
Source§fn box_header(&self) -> BoxHeader
fn box_header(&self) -> BoxHeader
BoxHeader for this box.Source§fn serialize_box_header<W>(&self, writer: W) -> Result<()>where
W: Write,
fn serialize_box_header<W>(&self, writer: W) -> Result<()>where
W: Write,
IsoBox::box_header to the given writer.