pub struct H265FragmentationUnitPacket { /* private fields */ }
Expand description
H265FragmentationUnitPacket represents a single Fragmentation Unit 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=49) | FU header | DONL (cond) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-| | DONL (cond) | | |-+-+-+-+-+-+-+-+ | | FU payload | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :…OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.3
Implementations§
Source§impl H265FragmentationUnitPacket
impl H265FragmentationUnitPacket
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 payload_header(&self) -> H265NALUHeader
pub fn payload_header(&self) -> H265NALUHeader
payload_header returns the NALU header of the packet.
Sourcepub fn fu_header(&self) -> H265FragmentationUnitHeader
pub fn fu_header(&self) -> H265FragmentationUnitHeader
fu_header returns the Fragmentation Unit Header of the packet.
Trait Implementations§
Source§impl Clone for H265FragmentationUnitPacket
impl Clone for H265FragmentationUnitPacket
Source§fn clone(&self) -> H265FragmentationUnitPacket
fn clone(&self) -> H265FragmentationUnitPacket
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more