pub struct TimeToSampleBox {
pub version: u8,
pub flags: u32,
pub entries: Vec<SttsEntry>,
}Expand description
Time To Sample Box (stts) — ISO/IEC 14496-12:2015 §8.6.1.2.
Maps decode-time deltas to samples. The sum of sample_count * sample_delta
across all entries equals the track media duration.
Fields§
§version: u8§flags: u32§entries: Vec<SttsEntry>Implementations§
Source§impl TimeToSampleBox
impl TimeToSampleBox
Sourcepub fn parse_body(body: &[u8]) -> Result<Self>
pub fn parse_body(body: &[u8]) -> Result<Self>
Parse the body of an stts box (after the 8-byte BoxHeader).
Trait Implementations§
Source§impl Clone for TimeToSampleBox
impl Clone for TimeToSampleBox
Source§fn clone(&self) -> TimeToSampleBox
fn clone(&self) -> TimeToSampleBox
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeToSampleBox
impl Debug for TimeToSampleBox
impl Eq for TimeToSampleBox
Source§impl<'a> Parse<'a> for TimeToSampleBox
impl<'a> Parse<'a> for TimeToSampleBox
Source§impl PartialEq for TimeToSampleBox
impl PartialEq for TimeToSampleBox
Source§impl Serialize for TimeToSampleBox
impl Serialize for TimeToSampleBox
Source§impl Serialize for TimeToSampleBox
impl Serialize for TimeToSampleBox
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for TimeToSampleBox
Auto Trait Implementations§
impl Freeze for TimeToSampleBox
impl RefUnwindSafe for TimeToSampleBox
impl Send for TimeToSampleBox
impl Sync for TimeToSampleBox
impl Unpin for TimeToSampleBox
impl UnsafeUnpin for TimeToSampleBox
impl UnwindSafe for TimeToSampleBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more