pub struct H264Depacketizer { /* private fields */ }Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
Reassembles RFC 6184 H.264 RTP payloads into Annex-B access units.
Feed each packet’s payload (the bytes after RtpHeader::payload_offset)
with its marker bit and timestamp to push. When a complete
access unit is ready the method returns Ok(Some(au)), where au is the
concatenated NAL units each prefixed with a 4-byte Annex-B start code —
exactly the shape the codec parsers and annexb_to_avcc expect.
Implementations§
Source§impl H264Depacketizer
impl H264Depacketizer
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.264 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 H264Depacketizer
impl Debug for H264Depacketizer
Source§impl Default for H264Depacketizer
impl Default for H264Depacketizer
Source§fn default() -> H264Depacketizer
fn default() -> H264Depacketizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for H264Depacketizer
impl RefUnwindSafe for H264Depacketizer
impl Send for H264Depacketizer
impl Sync for H264Depacketizer
impl Unpin for H264Depacketizer
impl UnsafeUnpin for H264Depacketizer
impl UnwindSafe for H264Depacketizer
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