pub struct TrunSample {
pub sample_duration: Option<u32>,
pub sample_size: Option<u32>,
pub sample_composition_time_offset: Option<i32>,
}Available on crate features
decrypt-cenc or sub-vtt only.Expand description
Sample data entry within a track fragment run.
Fields§
§sample_duration: Option<u32>The length of the sample in timescale units.
sample_size: Option<u32>The size of the sample in bytes.
sample_composition_time_offset: Option<i32>The composition time offset of the sample (difference between composition time and decode time), in timescale units.
Trait Implementations§
Source§impl Clone for TrunSample
impl Clone for TrunSample
Source§fn clone(&self) -> TrunSample
fn clone(&self) -> TrunSample
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 moreAuto Trait Implementations§
impl Freeze for TrunSample
impl RefUnwindSafe for TrunSample
impl Send for TrunSample
impl Sync for TrunSample
impl Unpin for TrunSample
impl UnsafeUnpin for TrunSample
impl UnwindSafe for TrunSample
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