pub struct SampleInfo {
pub index: u32,
pub offset: u64,
pub size: u32,
pub dts: u64,
pub cts_offset: i64,
pub pts: i64,
pub duration: u32,
pub is_sync: bool,
pub chunk: u32,
pub description_index: u32,
}Expand description
Location and timing for one sample.
Fields§
§index: u32Zero-based track sample index.
offset: u64Absolute byte offset.
size: u32Sample size in bytes.
dts: u64Decode time in media units.
cts_offset: i64Signed composition-time offset.
pts: i64Presentation time before edit-list mapping.
duration: u32Sample duration in media units.
is_sync: boolWhether this is a random-access sample.
chunk: u32Zero-based chunk index, or fragment index for fragmented input.
description_index: u32One-based sample-description index.
Trait Implementations§
Source§impl Clone for SampleInfo
impl Clone for SampleInfo
impl Copy for SampleInfo
Source§impl Debug for SampleInfo
impl Debug for SampleInfo
impl Eq for SampleInfo
Source§impl PartialEq for SampleInfo
impl PartialEq for SampleInfo
impl StructuralPartialEq 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 UnsafeUnpin for SampleInfo
impl UnwindSafe for SampleInfo
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