pub struct H265SingleNALUnitPacket { /* private fields */ }
Expand description
Single NAL Unit Packet implementation
H265SingleNALUnitPacket represents a NALU packet, containing exactly one NAL unit. 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 | DONL (conditional) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | NAL unit payload data | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :…OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.1
Implementations§
Source§impl H265SingleNALUnitPacket
impl H265SingleNALUnitPacket
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.
Trait Implementations§
Source§impl Clone for H265SingleNALUnitPacket
impl Clone for H265SingleNALUnitPacket
Source§fn clone(&self) -> H265SingleNALUnitPacket
fn clone(&self) -> H265SingleNALUnitPacket
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more