pub struct BitstreamPacket {
pub data: Vec<u8>,
pub pts: i64,
pub is_keyframe: bool,
}Expand description
A single demuxed NAL unit or access unit.
Fields§
§data: Vec<u8>Compressed bitstream data (Annex B or length-prefixed). Host memory is acceptable — this is codec-compressed (~10 KB/frame).
pts: i64Presentation timestamp in microseconds.
Container-specific time bases are converted at the demux boundary
(for example in rave-ffmpeg) so downstream decode/encode stages
operate on one stable unit.
is_keyframe: boolWhether this packet encodes an IDR/keyframe.
Auto Trait Implementations§
impl Freeze for BitstreamPacket
impl RefUnwindSafe for BitstreamPacket
impl Send for BitstreamPacket
impl Sync for BitstreamPacket
impl Unpin for BitstreamPacket
impl UnsafeUnpin for BitstreamPacket
impl UnwindSafe for BitstreamPacket
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