pub struct Packet<T: Pixel> {
pub data: Vec<u8>,
pub rec: Option<Arc<Frame<T>>>,
pub source: Option<Arc<Frame<T>>>,
pub input_frameno: u64,
pub frame_type: FrameType,
pub qp: u8,
pub enc_stats: EncoderStats,
pub opaque: Option<Opaque>,
}
Expand description
Represents a packet.
A packet contains one shown frame together with zero or more additional frames.
Fields§
§data: Vec<u8>
The packet data.
rec: Option<Arc<Frame<T>>>
The reconstruction of the shown frame.
source: Option<Arc<Frame<T>>>
The Reference Frame
input_frameno: u64
The number of the input frame corresponding to the one shown frame in the TU stored in this packet. Since AV1 does not explicitly reorder frames, these will increase sequentially.
frame_type: FrameType
Type of the shown frame.
qp: u8
QP selected for the frame.
enc_stats: EncoderStats
Block-level encoding stats for the frame
opaque: Option<Opaque>
Optional user-provided opaque data
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Packet<T>
impl<T> !RefUnwindSafe for Packet<T>
impl<T> Send for Packet<T>
impl<T> Sync for Packet<T>
impl<T> Unpin for Packet<T>
impl<T> !UnwindSafe for Packet<T>
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