pub struct H265Depacketizer { /* private fields */ }Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
Reassembles RFC 7798 H.265 (HEVC) RTP payloads into Annex-B access units.
The H.265 counterpart to H264Depacketizer, used for ingesting HEVC IP
cameras and encoders over RTSP/WebRTC. It handles the three packetization
modes: single NAL units, aggregation packets (AP, type 48), and fragmentation
units (FU, type 49). The output shape — NAL units each prefixed with a 4-byte
Annex-B start code — matches H264Depacketizer and the codec parsers.
DONL/DOND fields (only present when sprop-max-don-diff > 0 is negotiated in
SDP) are not consumed; the common single-stream profile does not use them.
Implementations§
Source§impl H265Depacketizer
impl H265Depacketizer
Sourcepub fn push(
&mut self,
payload: &[u8],
marker: bool,
timestamp: u32,
sequence: u16,
) -> Result<Option<AccessUnit>, DepacketizeError>
pub fn push( &mut self, payload: &[u8], marker: bool, timestamp: u32, sequence: u16, ) -> Result<Option<AccessUnit>, DepacketizeError>
Push one RTP H.265 payload. Returns a completed AccessUnit when the
marker bit closes the frame (or the timestamp advances to a new one).
Trait Implementations§
Source§impl Debug for H265Depacketizer
impl Debug for H265Depacketizer
Source§impl Default for H265Depacketizer
impl Default for H265Depacketizer
Source§fn default() -> H265Depacketizer
fn default() -> H265Depacketizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for H265Depacketizer
impl RefUnwindSafe for H265Depacketizer
impl Send for H265Depacketizer
impl Sync for H265Depacketizer
impl Unpin for H265Depacketizer
impl UnsafeUnpin for H265Depacketizer
impl UnwindSafe for H265Depacketizer
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