pub struct FrameDescriptor { /* private fields */ }Expand description
The Dependency Descriptor of one frame, ready to be written on each of its packets.
Implementations§
Source§impl FrameDescriptor
impl FrameDescriptor
Sourcepub fn frame_number(&self) -> u16
pub fn frame_number(&self) -> u16
The frame’s number.
Sourcepub fn descriptor(&self) -> &DependencyDescriptor
pub fn descriptor(&self) -> &DependencyDescriptor
The frame’s descriptor, without the per-packet fields (start_of_frame,
end_of_frame, the attached structure).
Sourcepub fn starts_coded_video_sequence(&self) -> bool
pub fn starts_coded_video_sequence(&self) -> bool
Whether the frame starts a coded video sequence, so that its first packet carries the structure.
Sourcepub fn packet(&self, first: bool, last: bool) -> Result<Bytes>
pub fn packet(&self, first: bool, last: bool) -> Result<Bytes>
The header extension payload for one packet of the frame: first for the packet whose
payload begins the frame (start_of_frame), last for the frame’s final packet
(end_of_frame). Every packet has the frame’s frame_number and template id; the
structure is on the first packet of a frame that starts a coded video sequence only.
Trait Implementations§
Source§impl Clone for FrameDescriptor
impl Clone for FrameDescriptor
Auto Trait Implementations§
impl Forget for FrameDescriptor
impl Freeze for FrameDescriptor
impl Move for FrameDescriptor
impl RefUnwindSafe for FrameDescriptor
impl Send for FrameDescriptor
impl Sync for FrameDescriptor
impl Unpin for FrameDescriptor
impl UnsafeUnpin for FrameDescriptor
impl UnwindSafe for FrameDescriptor
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