pub struct DepacketizedFrame {
pub data: Vec<u8>,
pub timestamp: u32,
pub is_keyframe: bool,
pub codec: Codec,
pub payload_type: u8,
pub sequence_number: u16,
pub nal_type: u8,
pub codec_config: CodecConfigState,
}Expand description
Encoded Annex-B H.264/H.265 access unit emitted by RtpDepacketizer.
Fields§
§data: Vec<u8>Annex-B byte stream data including start codes.
timestamp: u32RTP timestamp associated with the access unit.
is_keyframe: boolTrue when the frame contains an IDR/keyframe entry point.
codec: CodecVideo codec for this frame.
payload_type: u8RTP payload type that produced this frame.
sequence_number: u16RTP sequence number of the packet that completed this frame.
nal_type: u8H.264/H.265 NAL unit type for the frame payload.
codec_config: CodecConfigStateDecoder parameter-set state at the time this frame was emitted.
Trait Implementations§
Source§impl Clone for DepacketizedFrame
impl Clone for DepacketizedFrame
Source§fn clone(&self) -> DepacketizedFrame
fn clone(&self) -> DepacketizedFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DepacketizedFrame
impl Debug for DepacketizedFrame
impl Eq for DepacketizedFrame
Source§impl PartialEq for DepacketizedFrame
impl PartialEq for DepacketizedFrame
Source§fn eq(&self, other: &DepacketizedFrame) -> bool
fn eq(&self, other: &DepacketizedFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DepacketizedFrame
Auto Trait Implementations§
impl Freeze for DepacketizedFrame
impl RefUnwindSafe for DepacketizedFrame
impl Send for DepacketizedFrame
impl Sync for DepacketizedFrame
impl Unpin for DepacketizedFrame
impl UnsafeUnpin for DepacketizedFrame
impl UnwindSafe for DepacketizedFrame
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