pub struct TrunEntry {
pub duration: Option<u32>,
pub size: Option<u32>,
pub flags: Option<u32>,
pub cts: Option<i32>,
}Expand description
A single sample entry in a trun box.
None fields mean the value was not present in the per-sample trun data.
After decode, callers should resolve None against tfhd defaults
(default_sample_duration, default_sample_size, default_sample_flags)
before using the values. The encoder backfills unresolved None with 0
as a last resort to avoid silently dropping fields that other entries set.
Fields§
§duration: Option<u32>§size: Option<u32>§flags: Option<u32>§cts: Option<i32>Trait Implementations§
impl Eq for TrunEntry
impl StructuralPartialEq for TrunEntry
Auto Trait Implementations§
impl Freeze for TrunEntry
impl RefUnwindSafe for TrunEntry
impl Send for TrunEntry
impl Sync for TrunEntry
impl Unpin for TrunEntry
impl UnsafeUnpin for TrunEntry
impl UnwindSafe for TrunEntry
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