pub struct SampleInfo {
pub index: u32,
pub dts: u64,
pub pts: u64,
pub start_time: f64,
pub duration: u32,
pub rendered_offset: i64,
pub file_offset: u64,
pub size: u32,
pub is_sync: bool,
}Fields§
§index: u320-based sample index
dts: u64Decode time (DTS) in track timescale units
pts: u64Presentation time (PTS) in track timescale units (DTS + composition offset)
start_time: f64Start time in seconds (pts / timescale as f64)
duration: u32Duration in track timescale units (from stts)
rendered_offset: i64Composition/rendered offset in track timescale units (from ctts, may be 0)
file_offset: u64Byte offset in the file (from stsc + stco/co64)
size: u32Sample size in bytes (from stsz)
is_sync: boolWhether this sample is a sync sample / keyframe (from stss)
Trait Implementations§
Source§impl Clone for SampleInfo
impl Clone for SampleInfo
Source§fn clone(&self) -> SampleInfo
fn clone(&self) -> SampleInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SampleInfo
impl Debug for SampleInfo
Auto Trait Implementations§
impl Freeze for SampleInfo
impl RefUnwindSafe for SampleInfo
impl Send for SampleInfo
impl Sync for SampleInfo
impl Unpin for SampleInfo
impl UnwindSafe for SampleInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)