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: boolpicture ID is present
p: boolinter-picture predicted frame.
l: boollayer indices present
f: boolflexible mode
b: boolstart of frame. beginning of new vp9 frame
e: boolend of frame
v: boolscalability structure (SS) present
picture_id: u16Recommended headers 7 or 16 bits, picture ID.
tid: u8Conditionally recommended headers Temporal layer ID
u: boolSwitching up point
sid: u8Spatial layer ID
d: boolInter-layer dependency used
pdiff: Vec<u8>Conditionally required headers Reference index (F=1)
tl0picidx: u8Temporal layer zero index (F=0)
ns: u8Scalability structure headers N_S + 1 indicates the number of spatial layers present in the VP9 stream
y: boolEach spatial layer’s frame resolution present
g: boolPG description present flag.
ng: u8N_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: BytesTrait Implementations
depacketize parses the passed byte slice and stores the result in the Vp9Packet this method is called upon
Auto Trait Implementations
impl RefUnwindSafe for Vp9Packet
impl UnwindSafe for Vp9Packet
Blanket Implementations
Mutably borrows from an owned value. Read more