Struct rtp::codecs::vp9::Vp9Packet[][src]

pub struct Vp9Packet {
Show 24 fields pub i: bool, pub p: bool, pub l: bool, pub f: bool, pub b: bool, pub e: bool, pub v: bool, pub picture_id: u16, pub tid: u8, pub u: bool, pub sid: u8, pub d: bool, pub pdiff: Vec<u8>, pub tl0picidx: u8, pub ns: u8, pub y: bool, pub g: bool, pub ng: u8, pub width: Vec<u16>, pub height: Vec<u16>, pub pgtid: Vec<u8>, pub pgu: Vec<bool>, pub pgpdiff: Vec<Vec<u8>>, pub payload: Bytes,
}
Expand description

Vp9Packet represents the VP9 header that is stored in the payload of an RTP Packet

Fields

i: bool

picture ID is present

p: bool

inter-picture predicted frame.

l: bool

layer indices present

f: bool

flexible mode

b: bool

start of frame. beginning of new vp9 frame

e: bool

end of frame

v: bool

scalability structure (SS) present

picture_id: u16

Recommended headers 7 or 16 bits, picture ID.

tid: u8

Conditionally recommended headers Temporal layer ID

u: bool

Switching up point

sid: u8

Spatial layer ID

d: bool

Inter-layer dependency used

pdiff: Vec<u8>

Conditionally required headers Reference index (F=1)

tl0picidx: u8

Temporal layer zero index (F=0)

ns: u8

Scalability structure headers N_S + 1 indicates the number of spatial layers present in the VP9 stream

y: bool

Each spatial layer’s frame resolution present

g: bool

PG description present flag.

ng: u8

N_G indicates the number of pictures in a Picture Group (PG)

width: Vec<u16>height: Vec<u16>pgtid: Vec<u8>

Temporal layer ID of pictures in a Picture Group

pgu: Vec<bool>

Switching up point of pictures in a Picture Group

pgpdiff: Vec<Vec<u8>>

Reference indecies of pictures in a Picture Group

payload: Bytes

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

depacketize parses the passed byte slice and stores the result in the Vp9Packet this method is called upon

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.