pub struct CmafSample {
pub duration: u32,
pub size: u32,
pub flags: SampleFlags,
}Expand description
Per-sample fields written into trun. Each entry produces one row
of (duration, size, flags) in the fragment’s sample table.
Fields§
§duration: u32Sample duration in track timescale ticks.
size: u32Encoded sample size in bytes.
flags: SampleFlagsSample flags (sync / non-sync). The very FIRST sample in a fragment
uses first_sample_flags instead — see build_trun_video.
Trait Implementations§
Source§impl Clone for CmafSample
impl Clone for CmafSample
Source§fn clone(&self) -> CmafSample
fn clone(&self) -> CmafSample
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 moreimpl Copy for CmafSample
Auto Trait Implementations§
impl Freeze for CmafSample
impl RefUnwindSafe for CmafSample
impl Send for CmafSample
impl Sync for CmafSample
impl Unpin for CmafSample
impl UnsafeUnpin for CmafSample
impl UnwindSafe for CmafSample
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