pub struct H265Packet { /* private fields */ }
Expand description
Packet implementation
H265Packet represents a H265 packet, stored in the payload of an RTP packet.
Implementations§
Source§impl H265Packet
impl H265Packet
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(&self) -> &H265Payload
pub fn payload(&self) -> &H265Payload
payload returns the populated payload. Must be casted to one of:
- H265SingleNALUnitPacket
- H265FragmentationUnitPacket
- H265AggregationPacket
- H265PACIPacket
Trait Implementations§
Source§impl Clone for H265Packet
impl Clone for H265Packet
Source§fn clone(&self) -> H265Packet
fn clone(&self) -> H265Packet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for H265Packet
impl Debug for H265Packet
Source§impl Default for H265Packet
impl Default for H265Packet
Source§fn default() -> H265Packet
fn default() -> H265Packet
Returns the “default value” for a type. Read more
Source§impl Depacketizer for H265Packet
impl Depacketizer for H265Packet
Source§fn depacketize(&mut self, payload: &Bytes) -> Result<Bytes>
fn depacketize(&mut self, payload: &Bytes) -> Result<Bytes>
depacketize parses the passed byte slice and stores the result in the H265Packet this method is called upon
Source§fn is_partition_head(&self, _payload: &Bytes) -> bool
fn is_partition_head(&self, _payload: &Bytes) -> bool
is_partition_head checks if this is the head of a packetized nalu stream.
Source§impl PartialEq for H265Packet
impl PartialEq for H265Packet
impl Eq for H265Packet
impl StructuralPartialEq for H265Packet
Auto Trait Implementations§
impl !Freeze for H265Packet
impl RefUnwindSafe for H265Packet
impl Send for H265Packet
impl Sync for H265Packet
impl Unpin for H265Packet
impl UnwindSafe for H265Packet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more