#[repr(C)]pub struct VideoFrame {
pub width: u32,
pub height: u32,
pub bytes: U8Vec,
}Expand description
One captured or decoded frame - tightly-packed RGBA8 pixels
(width * height * 4). The unit a capture/decode worker produces, the
set_on_frame hook hands to user code (effects / save / send), and (P8)
azul-meet sends over UDP. Defined here (like crate::audio::AudioFrame)
so it crosses the FFI without azul-layout as a dependency.
Fields§
§width: u32Frame width in px.
height: u32Frame height in px.
bytes: U8VecTightly-packed RGBA8 pixel bytes (width * height * 4).
Implementations§
Trait Implementations§
Source§impl Clone for VideoFrame
impl Clone for VideoFrame
Source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
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 VideoFrame
impl Debug for VideoFrame
Source§impl PartialEq for VideoFrame
impl PartialEq for VideoFrame
Source§fn eq(&self, other: &VideoFrame) -> bool
fn eq(&self, other: &VideoFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoFrame
Auto Trait Implementations§
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl UnsafeUnpin for VideoFrame
impl UnwindSafe for VideoFrame
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