#[non_exhaustive]pub enum QueuedVideoFrame {
Pixels(VideoFrame),
Compressed(CompressedFrame<VideoPacketFormat>),
Scatter(ScatterFrame<VideoPacketFormat>),
}Expand description
A video frame a QueuedSender can send.
Each variant owns its complete, nonempty video storage. Cloning copies the bytes into independent allocations; submission moves that storage into the queue until it is collected. Scatter frames retain their separate blocks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pixels(VideoFrame)
An uncompressed frame.
Compressed(CompressedFrame<VideoPacketFormat>)
A compressed frame.
Scatter(ScatterFrame<VideoPacketFormat>)
A compressed frame held in separate owned blocks.
Trait Implementations§
Source§impl Clone for QueuedVideoFrame
impl Clone for QueuedVideoFrame
Source§impl Debug for QueuedVideoFrame
impl Debug for QueuedVideoFrame
Source§impl From<CompressedFrame<VideoPacketFormat>> for QueuedVideoFrame
impl From<CompressedFrame<VideoPacketFormat>> for QueuedVideoFrame
Source§fn from(v: CompressedFrame<VideoPacketFormat>) -> Self
fn from(v: CompressedFrame<VideoPacketFormat>) -> Self
Converts to this type from the input type.
Source§impl From<ScatterFrame<VideoPacketFormat>> for QueuedVideoFrame
impl From<ScatterFrame<VideoPacketFormat>> for QueuedVideoFrame
Source§fn from(frame: ScatterFrame<VideoPacketFormat>) -> Self
fn from(frame: ScatterFrame<VideoPacketFormat>) -> Self
Converts to this type from the input type.
Source§impl From<VideoFrame> for QueuedVideoFrame
impl From<VideoFrame> for QueuedVideoFrame
Source§fn from(v: VideoFrame) -> Self
fn from(v: VideoFrame) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueuedVideoFrame
impl RefUnwindSafe for QueuedVideoFrame
impl Send for QueuedVideoFrame
impl Sync for QueuedVideoFrame
impl Unpin for QueuedVideoFrame
impl UnsafeUnpin for QueuedVideoFrame
impl UnwindSafe for QueuedVideoFrame
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