pub struct Frame {
pub track_number: u64,
pub timecode: i64,
pub is_keyframe: bool,
pub duration_ticks: Option<u64>,
pub payload: Bytes,
}Expand description
One demuxed SimpleBlock/Block frame.
Fields§
§track_number: u64Owning track’s TrackNumber.
timecode: i64Absolute timecode in TimecodeScale ticks (Cluster timecode +
the block’s signed relative timecode). Laced sub-frames within one
block share this same timecode — Matroska lacing does not encode a
distinct timecode per sub-frame (a real spec property, not a gap here).
is_keyframe: boolKeyframe flag: SimpleBlock’s own flag bit, or (for a BlockGroup’s
Block) the absence of a sibling ReferenceBlock.
duration_ticks: Option<u64>BlockGroup\BlockDuration in TimecodeScale ticks, if present
(None for a bare SimpleBlock, which carries no duration).
payload: BytesFrame payload bytes.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl !Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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