pub struct SampleInfo {
pub offset: u64,
pub size: u32,
pub dts: i64,
pub pts: i64,
pub duration: i64,
pub sync: bool,
}Expand description
One sample (packet) of a stream as the container’s index records it.
The timestamps are the ones Demuxer::read_packet gives the sample, in
the stream’s time base, with the edit list applied; the edit list itself is
SampleIndex::edit_list. offset and size locate the stored bytes, so
a caller can also read them itself.
Fields§
§offset: u64File offset of the stored sample.
size: u32Stored size in bytes.
dts: i64Decode timestamp.
pts: i64Presentation timestamp.
duration: i64Duration (0 when the container does not say).
sync: boolA sync sample (keyframe): decoding can start here.
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 Forget for SampleInfo
impl Freeze for SampleInfo
impl Move 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