pub struct AccessUnit {
pub data: Bytes,
pub timestamp: u32,
pub keyframe: bool,
}Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
A reassembled coded video frame from the RTP bus.
For the NAL codecs (H.264/H.265) data is the access unit in Annex-B form
(each NAL prefixed with a 4-byte start code); for VP9/AV1 it is the raw coded
frame / temporal unit. keyframe marks a decodable random-access point.
Fields§
§data: BytesThe coded frame bytes (Annex-B NALs for H.26x; raw frame for VP9/AV1).
timestamp: u32RTP media timestamp (90 kHz) of the frame.
keyframe: boolWhether this is a keyframe / random-access point.
Trait Implementations§
Source§impl Clone for AccessUnit
impl Clone for AccessUnit
Source§fn clone(&self) -> AccessUnit
fn clone(&self) -> AccessUnit
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 AccessUnit
impl Debug for AccessUnit
impl Eq for AccessUnit
Source§impl PartialEq for AccessUnit
impl PartialEq for AccessUnit
Source§fn eq(&self, other: &AccessUnit) -> bool
fn eq(&self, other: &AccessUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessUnit
Auto Trait Implementations§
impl !Freeze for AccessUnit
impl RefUnwindSafe for AccessUnit
impl Send for AccessUnit
impl Sync for AccessUnit
impl Unpin for AccessUnit
impl UnsafeUnpin for AccessUnit
impl UnwindSafe for AccessUnit
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