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: u64The 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: FrameTypeType of the shown frame.
qp: u8QP selected for the frame.
enc_stats: EncoderStatsBlock-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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more