pub struct Packet {
pub stream_index: u32,
pub time_base: TimeBase,
pub pts: Option<i64>,
pub dts: Option<i64>,
pub duration: Option<i64>,
pub flags: PacketFlags,
pub data: Vec<u8>,
}Expand description
A chunk of compressed (encoded) data belonging to one stream.
Fields§
§stream_index: u32Stream index this packet belongs to.
time_base: TimeBaseTime base in which pts and dts are expressed.
pts: Option<i64>Presentation timestamp (display order). None if unknown.
dts: Option<i64>Decode timestamp (decode order). Often equal to pts for intra-only codecs.
duration: Option<i64>Packet duration in time_base units, or None if unknown.
flags: PacketFlagsFlags describing this packet.
data: Vec<u8>Compressed payload.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
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