Struct rav1e::prelude::Packet

source ·
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§

source§

impl<T: Debug + Pixel> Debug for Packet<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Pixel> Display for Packet<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Pixel> PartialEq for Packet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.