pub struct LayerFrame {Show 13 fields
pub spatial_id: u8,
pub temporal_id: u8,
pub key_picture: bool,
pub key_frame: bool,
pub temporal_reference: Option<u8>,
pub inter_layer_dependency: bool,
pub referenced_by_upper_layers: bool,
pub discardable: bool,
pub layer_sync: bool,
pub fdiffs: Vec<u16>,
pub dtis: Vec<DecodeTargetIndication>,
pub chain_fdiffs: Vec<u8>,
pub end_of_picture: bool,
}Expand description
One frame of a picture of a ScalabilityPattern: one spatial layer’s frame, with what
it depends on and how it relates to each decode target.
Fields§
§spatial_id: u8The frame’s spatial layer.
temporal_id: u8The frame’s temporal layer.
key_picture: boolThe frame is of a key picture: the picture a coded video sequence starts with.
key_frame: boolThe frame depends on no other frame: a key frame.
temporal_reference: Option<u8>How many pictures back the frame of the same spatial layer this one predicts from is;
None when it predicts from no earlier picture.
inter_layer_dependency: boolThe frame predicts from the frame of the spatial layer below in the same picture.
referenced_by_upper_layers: boolA frame of a spatial layer above, in this picture or a later one, depends on this frame.
discardable: boolNo other frame depends on this one.
layer_sync: boolThe frame depends on frames of temporal layer 0 only (and is not of that layer): a receiver can start its temporal layer here (VP8’s layer sync).
fdiffs: Vec<u16>How many frames back, in the order the pattern gives them, each frame this one depends on is: the Dependency Descriptor’s frame differences.
dtis: Vec<DecodeTargetIndication>The frame’s indication for each decode target (see
ScalabilityPattern::decode_target_layers for their order).
chain_fdiffs: Vec<u8>For each chain (one per spatial layer), how many frames back the previous frame of the chain is; 0 when there is none.
end_of_picture: boolThe frame is its picture’s last.
Implementations§
Source§impl LayerFrame
impl LayerFrame
Sourcepub fn starts_coded_video_sequence(&self) -> bool
pub fn starts_coded_video_sequence(&self) -> bool
Whether the frame starts a coded video sequence: the first frame of a key picture. Its first packet carries the Dependency Descriptor’s structure, and VP9’s scalability structure.
Sourcepub fn dependencies(&self) -> FrameDependencyTemplate
pub fn dependencies(&self) -> FrameDependencyTemplate
The frame as the Dependency Descriptor describes it, for
DependencyDescriptorWriter::next_frame.
Sourcepub fn vp8_info(&self, mode: ScalabilityMode) -> Vp8FrameInfo
pub fn vp8_info(&self, mode: ScalabilityMode) -> Vp8FrameInfo
The frame as the VP8 payload descriptor describes it (RFC 7741 section 4.2), for
Vp8Payloader::payload_frame. VP8
has temporal layers only; mode says whether there is more than one.
Sourcepub fn vp9_info(&self) -> Vp9FrameInfo
pub fn vp9_info(&self) -> Vp9FrameInfo
The frame as the VP9 payload descriptor describes it (RFC 9628 section 4.2), for
Vp9Payloader::payload_layer_frame.
The pattern is the authority on the frame’s dependencies, so they are stated rather
than left to the frame’s header (which an end-to-end encrypted frame hides).