pub struct SampleIndexEntry {
pub pts: i64,
pub byte_offset: u64,
pub is_sync: bool,
}Expand description
A compact index entry describing a single sample within a track.
Used by MultiTrackSeeker to build a per-track PTS→byte-offset index.
Fields§
§pts: i64Presentation timestamp in the track’s timescale ticks.
byte_offset: u64Byte offset of the sample within the container file.
is_sync: boolWhether this sample is a sync (key) sample.
Implementations§
Source§impl SampleIndexEntry
impl SampleIndexEntry
Sourcepub const fn keyframe(pts: i64, byte_offset: u64) -> Self
pub const fn keyframe(pts: i64, byte_offset: u64) -> Self
Creates a new keyframe SampleIndexEntry.
Sourcepub const fn delta(pts: i64, byte_offset: u64) -> Self
pub const fn delta(pts: i64, byte_offset: u64) -> Self
Creates a new non-keyframe SampleIndexEntry.
Trait Implementations§
Source§impl Clone for SampleIndexEntry
impl Clone for SampleIndexEntry
Source§fn clone(&self) -> SampleIndexEntry
fn clone(&self) -> SampleIndexEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SampleIndexEntry
impl Debug for SampleIndexEntry
Source§impl PartialEq for SampleIndexEntry
impl PartialEq for SampleIndexEntry
impl Copy for SampleIndexEntry
impl Eq for SampleIndexEntry
impl StructuralPartialEq for SampleIndexEntry
Auto Trait Implementations§
impl Freeze for SampleIndexEntry
impl RefUnwindSafe for SampleIndexEntry
impl Send for SampleIndexEntry
impl Sync for SampleIndexEntry
impl Unpin for SampleIndexEntry
impl UnsafeUnpin for SampleIndexEntry
impl UnwindSafe for SampleIndexEntry
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