pub struct DecodeSkipCursor {
pub byte_offset: u64,
pub sample_index: usize,
pub skip_samples: u32,
pub target_pts: i64,
}Expand description
A shared decode-and-skip cursor for sample-accurate seek planning.
Demuxers can return this when the caller must seek to byte_offset,
begin decoding at sample_index, and discard skip_samples decoded
samples before presenting the first target sample.
Fields§
§byte_offset: u64Byte offset of the keyframe/sample where decoding should begin.
sample_index: usize0-based sample index where decoding should begin.
skip_samples: u32Number of decoded samples to discard before presentation.
target_pts: i64Requested target presentation timestamp in track timescale units.
Trait Implementations§
Source§impl Clone for DecodeSkipCursor
impl Clone for DecodeSkipCursor
Source§fn clone(&self) -> DecodeSkipCursor
fn clone(&self) -> DecodeSkipCursor
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 DecodeSkipCursor
impl Debug for DecodeSkipCursor
Source§impl PartialEq for DecodeSkipCursor
impl PartialEq for DecodeSkipCursor
impl Copy for DecodeSkipCursor
impl Eq for DecodeSkipCursor
impl StructuralPartialEq for DecodeSkipCursor
Auto Trait Implementations§
impl Freeze for DecodeSkipCursor
impl RefUnwindSafe for DecodeSkipCursor
impl Send for DecodeSkipCursor
impl Sync for DecodeSkipCursor
impl Unpin for DecodeSkipCursor
impl UnsafeUnpin for DecodeSkipCursor
impl UnwindSafe for DecodeSkipCursor
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