pub struct H265AggregationPacket { /* private fields */ }
Expand description
H265AggregationPacket represents an Aggregation packet. 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr (Type=48) | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | two or more aggregation units | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :…OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
Implementations§
Source§impl H265AggregationPacket
impl H265AggregationPacket
Sourcepub fn with_donl(&mut self, value: bool)
pub fn with_donl(&mut self, value: bool)
with_donl can be called to specify whether or not DONL might be parsed.
DONL may need to be parsed if sprop-max-don-diff
is greater than 0 on the RTP stream.
Sourcepub fn first_unit(&self) -> Option<&H265AggregationUnitFirst>
pub fn first_unit(&self) -> Option<&H265AggregationUnitFirst>
first_unit returns the first Aggregated Unit of the packet.
Sourcepub fn other_units(&self) -> &[H265AggregationUnit]
pub fn other_units(&self) -> &[H265AggregationUnit]
other_units returns the all the other Aggregated Unit of the packet (excluding the first one).
Trait Implementations§
Source§impl Clone for H265AggregationPacket
impl Clone for H265AggregationPacket
Source§fn clone(&self) -> H265AggregationPacket
fn clone(&self) -> H265AggregationPacket
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more