pub struct Vp9FrameInfo {
pub temporal_id: u8,
pub spatial_id: u8,
pub switching_up_point: bool,
pub inter_layer_dependency: bool,
pub not_reference_for_upper_layers: bool,
pub end_of_picture: bool,
pub key_frame: Option<bool>,
pub inter_picture_predicted: Option<bool>,
pub reference_diffs: Vec<u8>,
}Expand description
What the encoder knows about one VP9 frame (one spatial layer of a picture) and the payload descriptor carries (RFC 9628 section 4.2).
The default describes the only frame of a picture in temporal layer 0: end_of_picture is
set, the rest is 0 / unset.
Fields§
§temporal_id: u8TID, the frame’s temporal layer (0 to 7). Every frame of a picture has the same one,
except in a pattern with shifted temporal layers, which only flexible mode can carry.
spatial_id: u8SID, the frame’s spatial layer (0 to 7). The frames of a picture are sent in
increasing order.
switching_up_point: boolU: pictures of higher temporal layers after this one do not depend on pictures of
higher temporal layers before it.
inter_layer_dependency: boolD: the frame predicts from the frame of spatial layer SID-1 of the same picture.
not_reference_for_upper_layers: boolZ: no frame of a higher spatial layer, in this picture or a later one, depends on
this frame.
end_of_picture: boolThe frame is the picture’s last. The next frame starts a picture with the next picture ID, and the RTP marker belongs on this frame’s last packet (RFC 9628 section 4.1).
key_frame: Option<bool>Whether the frame is a key frame. None reads it from the frame’s uncompressed header;
set it when the payloader cannot (the frame is encrypted end to end).
inter_picture_predicted: Option<bool>P: whether the frame predicts from another picture. None derives it from the
frame’s uncompressed header (the reference slots it reads).
reference_diffs: Vec<u8>Flexible mode’s reference indices (P_DIFF): how many pictures back each picture the
frame predicts from is, at most three values of 1 to 127. Empty derives them from the
frame’s uncompressed header.