pub struct SampleTableBox<'a> {Show 20 fields
pub stsd: SampleDescriptionBox<'a>,
pub stts: TimeToSampleBox,
pub ctts: Option<CompositionOffsetBox>,
pub cslg: Option<CompositionToDecodeBox>,
pub stsc: SampleToChunkBox,
pub stsz: Option<SampleSizeBox>,
pub stz2: Option<CompactSampleSizeBox<'a>>,
pub stco: Option<ChunkOffsetBox>,
pub co64: Option<ChunkLargeOffsetBox>,
pub stss: Option<SyncSampleBox>,
pub stsh: Option<ShadowSyncSampleBox>,
pub padb: Option<PaddingBitsBox>,
pub stdp: Option<DegradationPriorityBox>,
pub sdtp: Option<SampleDependencyTypeBox>,
pub sbgp: Vec<SampleToGroupBox>,
pub sgpd: Vec<SampleGroupDescriptionBox<'a>>,
pub subs: Vec<SubSampleInformationBox>,
pub saiz: Vec<SampleAuxiliaryInformationSizesBox<'a>>,
pub saio: Vec<SampleAuxiliaryInformationOffsetsBox>,
pub csgp: Vec<CompactSampleToGroupBox>,
}Expand description
Sample table box
ISO/IEC 14496-12 - 8.5.1
Fields§
§stsd: SampleDescriptionBox<'a>The contained SampleDescriptionBox. (mandatory)
stts: TimeToSampleBoxThe contained TimeToSampleBox. (mandatory)
ctts: Option<CompositionOffsetBox>The contained CompositionOffsetBox. (optional)
cslg: Option<CompositionToDecodeBox>The contained CompositionToDecodeBox. (optional)
stsc: SampleToChunkBoxThe contained SampleToChunkBox. (mandatory)
stsz: Option<SampleSizeBox>The contained SampleSizeBox.
stz2: Option<CompactSampleSizeBox<'a>>The contained CompactSampleSizeBox.
stco: Option<ChunkOffsetBox>The contained ChunkOffsetBox.
co64: Option<ChunkLargeOffsetBox>The contained ChunkLargeOffsetBox.
stss: Option<SyncSampleBox>The contained SyncSampleBox. (optional)
stsh: Option<ShadowSyncSampleBox>The contained ShadowSyncSampleBox. (optional)
padb: Option<PaddingBitsBox>The contained PaddingBitsBox. (optional)
stdp: Option<DegradationPriorityBox>The contained DegradationPriorityBox. (optional)
sdtp: Option<SampleDependencyTypeBox>The contained SampleDependencyTypeBox. (optional)
sbgp: Vec<SampleToGroupBox>The contained SampleToGroupBox. (optional)
sgpd: Vec<SampleGroupDescriptionBox<'a>>The contained SampleGroupDescriptionBox. (optional)
subs: Vec<SubSampleInformationBox>The contained SubSampleInformationBox. (optional)
saiz: Vec<SampleAuxiliaryInformationSizesBox<'a>>The contained SampleAuxiliaryInformationSizesBox. (optional)
saio: Vec<SampleAuxiliaryInformationOffsetsBox>The contained SampleAuxiliaryInformationOffsetsBox. (optional)
csgp: Vec<CompactSampleToGroupBox>The contained CompactSampleToGroupBox. (optional)
Implementations§
Source§impl<'a> SampleTableBox<'a>
impl<'a> SampleTableBox<'a>
Sourcepub fn new(
stsd: SampleDescriptionBox<'a>,
stts: TimeToSampleBox,
stsc: SampleToChunkBox,
stsz: Option<SampleSizeBox>,
stco: ChunkOffsetBox,
) -> Self
pub fn new( stsd: SampleDescriptionBox<'a>, stts: TimeToSampleBox, stsc: SampleToChunkBox, stsz: Option<SampleSizeBox>, stco: ChunkOffsetBox, ) -> Self
Creates a new SampleTableBox with the mandatory boxes and optional boxes set to None.
Trait Implementations§
Source§impl<'a> Debug for SampleTableBox<'a>
impl<'a> Debug for SampleTableBox<'a>
Source§impl<'a> Deserialize<'a> for SampleTableBox<'a>
impl<'a> Deserialize<'a> for SampleTableBox<'a>
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 SampleTableBox<'a>
impl<'a> DeserializeSeed<'a, BoxHeader> for SampleTableBox<'a>
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<'a> IsoBox for SampleTableBox<'a>
impl<'a> IsoBox for SampleTableBox<'a>
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.