pub struct LrrEntry {
pub ssrc: u32,
pub sequence_number: u8,
pub payload_type: u8,
pub target_temporal_layer_id: u8,
pub target_layer_id: u8,
pub current: Option<LrrCurrentLayer>,
}Expand description
One FCI entry of an LRR.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Seq nr. |C| Payload Type| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| RES | TTID| TLID | RES | CTID| CLID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Fields§
§ssrc: u32The media sender asked for the refresh.
sequence_number: u8The request’s sequence number: it goes up with each new request, a repetition keeps it.
payload_type: u8The RTP payload type the layer IDs are to be read with, 7 bits.
target_temporal_layer_id: u8The target temporal layer ID (TTID), 3 bits.
target_layer_id: u8The target layer ID (TLID), as the codec’s payload format maps its layer ID to 8 bits.
current: Option<LrrCurrentLayer>The layers decoded now, when the receiver says (the C bit). With it the encoder may refresh only the layers between the current and the target one.
Implementations§
Source§impl LrrEntry
impl LrrEntry
Sourcepub fn vp9(
ssrc: u32,
sequence_number: u8,
payload_type: u8,
target: (u8, u8),
current: Option<(u8, u8)>,
) -> Result<Self>
pub fn vp9( ssrc: u32, sequence_number: u8, payload_type: u8, target: (u8, u8), current: Option<(u8, u8)>, ) -> Result<Self>
An entry for a VP9 stream (RFC 9628 section 5.3): target and, when the receiver says, current temporal and spatial layer IDs. A TID or SID over 7 is refused.
Sourcepub fn av1(
ssrc: u32,
sequence_number: u8,
payload_type: u8,
target: (u8, u8),
current: Option<(u8, u8)>,
) -> Result<Self>
pub fn av1( ssrc: u32, sequence_number: u8, payload_type: u8, target: (u8, u8), current: Option<(u8, u8)>, ) -> Result<Self>
An entry for an AV1 stream (AV1 RTP specification section 8.2): temporal_id and
spatial_id as the bitstream has them, in the VP9 format with the high bit of the SID
0. A spatial ID over 3 or a temporal ID over 7 is refused.
Sourcepub fn target_spatial_id(&self) -> u8
pub fn target_spatial_id(&self) -> u8
The target spatial ID of a VP9 or AV1 entry: the SID bits of the layer field, the reserved bits ignored (RFC 9628 section 5.3).