pub struct Vp9ScalabilityStructure {
pub spatial_layers: u8,
pub resolutions: Vec<(u16, u16)>,
pub picture_group: Vec<Vp9PictureGroupEntry>,
}Expand description
The VP9 scalability structure (SS, RFC 9628 section 4.2.1): the number of spatial layers, their resolutions, and for a fixed prediction pattern the picture group (PG).
Fields§
§spatial_layers: u8The number of spatial layers in the stream, 1 to 8 (N_S + 1).
resolutions: Vec<(u16, u16)>Width and height of each spatial layer’s frames, lowest layer first. Empty when the SS
carries no resolutions (Y=0); otherwise one entry per spatial layer.
picture_group: Vec<Vp9PictureGroupEntry>The picture group, in order from the key picture on. Empty when the SS describes none
(G=0): one temporal layer in non-flexible mode, or dependencies given per packet in
flexible mode.
Implementations§
Source§impl Vp9ScalabilityStructure
impl Vp9ScalabilityStructure
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Checks that the structure can be written: 1 to 8 spatial layers, a resolution for each or none, at most 255 pictures in the group with at most three references each, and a first picture in temporal layer 0 (RFC 9628 section 4.2.1).
Sourcepub fn marshal_size(&self) -> usize
pub fn marshal_size(&self) -> usize
The number of octets marshal_to writes.