pub struct TrackIndex {
pub seek_index: SeekIndex,
pub codec_delay_samples: u32,
}Expand description
A lightweight index of keyframe positions within a single track.
Used by SampleAccurateSeeker to locate the nearest keyframe before a
target PTS and compute the number of samples that must be decoded and
discarded to reach a sample-accurate position.
Fields§
§seek_index: SeekIndexThe underlying seek index (sorted by DTS).
codec_delay_samples: u32Codec delay in samples (e.g. 512 for Opus, 0 for most video codecs).
Added to the preroll_samples field of the returned SeekResult.
Implementations§
Trait Implementations§
Source§impl Clone for TrackIndex
impl Clone for TrackIndex
Source§fn clone(&self) -> TrackIndex
fn clone(&self) -> TrackIndex
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 moreAuto Trait Implementations§
impl Freeze for TrackIndex
impl RefUnwindSafe for TrackIndex
impl Send for TrackIndex
impl Sync for TrackIndex
impl Unpin for TrackIndex
impl UnsafeUnpin for TrackIndex
impl UnwindSafe for TrackIndex
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