pub struct Sample {
pub dts: u64,
pub pts: u64,
pub duration: u32,
pub flags: SampleFlags,
pub data: Vec<u8>,
}Expand description
One coded sample: its bytes plus the timing the muxer needs.
Fields§
§dts: u64Decode timestamp, in the stream’s timescale.
pts: u64Presentation timestamp, in the stream’s timescale.
duration: u32Sample duration, in the stream’s timescale.
flags: SampleFlagsFlags describing the sample (keyframe, etc.).
data: Vec<u8>The coded bytes (NAL units, raw frame, …).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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