#[repr(C)]pub struct ConsumerFrame {
pub consumer: FrameConsumer,
pub frame: VideoFrame,
}Expand description
A frame cut to one consumer’s requested size: the FrameConsumer it
was cut for (so one hook can route by consumer.id) and the resampled
RGBA8 pixels (consumer.width * consumer.height * 4).
Fields§
§consumer: FrameConsumerWhich consumer this frame was cut for.
frame: VideoFrameThe frame at the consumer’s size.
Implementations§
Source§impl ConsumerFrame
impl ConsumerFrame
Sourcepub const fn new(consumer: FrameConsumer, frame: VideoFrame) -> Self
pub const fn new(consumer: FrameConsumer, frame: VideoFrame) -> Self
Pair a cut frame with the consumer it was cut for.
Trait Implementations§
Source§impl Clone for ConsumerFrame
impl Clone for ConsumerFrame
Source§fn clone(&self) -> ConsumerFrame
fn clone(&self) -> ConsumerFrame
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 ConsumerFrame
impl Debug for ConsumerFrame
impl Eq for ConsumerFrame
Source§impl PartialEq for ConsumerFrame
impl PartialEq for ConsumerFrame
impl StructuralPartialEq for ConsumerFrame
Auto Trait Implementations§
impl Freeze for ConsumerFrame
impl RefUnwindSafe for ConsumerFrame
impl Send for ConsumerFrame
impl Sync for ConsumerFrame
impl Unpin for ConsumerFrame
impl UnsafeUnpin for ConsumerFrame
impl UnwindSafe for ConsumerFrame
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