pub struct Sample {
pub stream_id: u32,
pub pts: i64,
pub dts: i64,
pub duration: u64,
pub is_keyframe: bool,
pub is_discard: bool,
pub payload: Bytes,
}Expand description
One compressed sample.
Fields§
§stream_id: u32Track id.
pts: i64Presentation timestamp (media timescale; may be negative after edit-list remap).
dts: i64Decode timestamp (media timescale; may be negative after edit-list remap).
duration: u64Duration.
is_keyframe: boolSync / keyframe.
is_discard: boolOutside the active edit window (decode dependency / padding). Decoders may skip.
payload: BytesPayload bytes.
Trait Implementations§
impl Eq for Sample
impl StructuralPartialEq for Sample
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