pub struct FrameData {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
A single RGBA8 frame returned by a FrameProvider.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
data: Vec<u8>RGBA8 pixel data (length must equal width * height * 4).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameData
impl RefUnwindSafe for FrameData
impl Send for FrameData
impl Sync for FrameData
impl Unpin for FrameData
impl UnsafeUnpin for FrameData
impl UnwindSafe for FrameData
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